Skip to content

Commit

Permalink
Fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
belav committed Jan 21, 2025
1 parent f034978 commit c184844
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Src/CSharpier.Cli.Tests/CliTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -464,11 +464,14 @@ public async Task Check_Should_Not_Fail_On_Mismatched_MSBuild_With_No_Check()
{
await this.WriteFileAsync(
"Test.csproj",
@"<Project Sdk=""Microsoft.NET.Sdk"">
<ItemGroup>
<PackageReference Include=""CSharpier.MsBuild"" Version=""99"" />
</ItemGroup>
</Project>"
"""
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<PackageReference Include="CSharpier.MsBuild" Version="99" />
</ItemGroup>
</Project>
"""
);

var result = await new CsharpierProcess()
Expand All @@ -477,7 +480,7 @@ await this.WriteFileAsync(

result.ErrorOutput.Should().BeEmpty();
result.ExitCode.Should().Be(0);
result.Output.Should().StartWith("Formatted 0 files in ");
result.Output.Should().StartWith("Formatted 1 files in ");
}

[Test]
Expand Down

0 comments on commit c184844

Please sign in to comment.