mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-09 08:41:34 +00:00
Use FluentAssertions.Analyzers (#3314)
This commit is contained in:
parent
b9911206ac
commit
938176b700
@ -14,6 +14,10 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="FluentAssertions" Version="6.11.0" />
|
<PackageReference Include="FluentAssertions" Version="6.11.0" />
|
||||||
|
<PackageReference Include="FluentAssertions.Analyzers" Version="0.21.0">
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
</PackageReference>
|
||||||
<PackageReference Include="Microsoft.Identity.Client" Version="4.52.0" />
|
<PackageReference Include="Microsoft.Identity.Client" Version="4.52.0" />
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.2" />
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.2" />
|
||||||
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
<PackageReference Include="System.Net.Http" Version="4.3.4" />
|
||||||
|
@ -17,6 +17,12 @@
|
|||||||
"System.Configuration.ConfigurationManager": "4.4.0"
|
"System.Configuration.ConfigurationManager": "4.4.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"FluentAssertions.Analyzers": {
|
||||||
|
"type": "Direct",
|
||||||
|
"requested": "[0.21.0, )",
|
||||||
|
"resolved": "0.21.0",
|
||||||
|
"contentHash": "5CprzHStF627DqPytBnjRMXT2dvmXrP4XwVK4+jRllU5JH8SC6tytyyuOOd06tzjDPHU8YbDZ7/JtgJSiMb8RA=="
|
||||||
|
},
|
||||||
"Microsoft.Identity.Client": {
|
"Microsoft.Identity.Client": {
|
||||||
"type": "Direct",
|
"type": "Direct",
|
||||||
"requested": "[4.52.0, )",
|
"requested": "[4.52.0, )",
|
||||||
|
@ -49,7 +49,7 @@ public abstract class AgentCommandsTestsBase : FunctionTestBase {
|
|||||||
|
|
||||||
var pendingNodeCommand = BodyAs<PendingNodeCommand>(result);
|
var pendingNodeCommand = BodyAs<PendingNodeCommand>(result);
|
||||||
pendingNodeCommand.Envelope.Should().NotBeNull();
|
pendingNodeCommand.Envelope.Should().NotBeNull();
|
||||||
pendingNodeCommand.Envelope?.Command.Should().BeEquivalentTo(command);
|
pendingNodeCommand.Envelope!.Command.Should().BeEquivalentTo(command);
|
||||||
pendingNodeCommand.Envelope?.MessageId.Should().Be(messageId);
|
pendingNodeCommand.Envelope.MessageId.Should().Be(messageId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,10 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="FluentAssertions" Version="6.11.0" />
|
<PackageReference Include="FluentAssertions" Version="6.11.0" />
|
||||||
|
<PackageReference Include="FluentAssertions.Analyzers" Version="0.21.0">
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
</PackageReference>
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.2" />
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.2" />
|
||||||
<PackageReference Include="Moq" Version="4.18.4" />
|
<PackageReference Include="Moq" Version="4.18.4" />
|
||||||
<PackageReference Include="System.Security.Cryptography.Pkcs" Version="7.0.2" />
|
<PackageReference Include="System.Security.Cryptography.Pkcs" Version="7.0.2" />
|
||||||
|
@ -17,6 +17,12 @@
|
|||||||
"System.Configuration.ConfigurationManager": "4.4.0"
|
"System.Configuration.ConfigurationManager": "4.4.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"FluentAssertions.Analyzers": {
|
||||||
|
"type": "Direct",
|
||||||
|
"requested": "[0.21.0, )",
|
||||||
|
"resolved": "0.21.0",
|
||||||
|
"contentHash": "5CprzHStF627DqPytBnjRMXT2dvmXrP4XwVK4+jRllU5JH8SC6tytyyuOOd06tzjDPHU8YbDZ7/JtgJSiMb8RA=="
|
||||||
|
},
|
||||||
"Microsoft.NET.Test.Sdk": {
|
"Microsoft.NET.Test.Sdk": {
|
||||||
"type": "Direct",
|
"type": "Direct",
|
||||||
"requested": "[17.6.2, )",
|
"requested": "[17.6.2, )",
|
||||||
|
@ -5,6 +5,10 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<PackageReference Include="FluentAssertions.Analyzers" Version="0.21.0">
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
</PackageReference>
|
||||||
<PackageReference Include="FsCheck" Version="2.16.5" />
|
<PackageReference Include="FsCheck" Version="2.16.5" />
|
||||||
<PackageReference Include="FsCheck.Xunit" Version="2.16.5" />
|
<PackageReference Include="FsCheck.Xunit" Version="2.16.5" />
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.2" />
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.2" />
|
||||||
|
@ -39,8 +39,8 @@ public class TruncationTests {
|
|||||||
|
|
||||||
var truncatedEvent = eventCrashReported.Truncate(3) as EventCrashReported;
|
var truncatedEvent = eventCrashReported.Truncate(3) as EventCrashReported;
|
||||||
truncatedEvent.Should().NotBeNull();
|
truncatedEvent.Should().NotBeNull();
|
||||||
truncatedEvent?.Report.Executable.Should().Be("SOM");
|
truncatedEvent!.Report.Executable.Should().Be("SOM");
|
||||||
truncatedEvent?.Report.CallStack.Count.Should().Be(0);
|
truncatedEvent.Report.CallStack.Count.Should().Be(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
@ -17,6 +17,12 @@
|
|||||||
"System.Configuration.ConfigurationManager": "4.4.0"
|
"System.Configuration.ConfigurationManager": "4.4.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"FluentAssertions.Analyzers": {
|
||||||
|
"type": "Direct",
|
||||||
|
"requested": "[0.21.0, )",
|
||||||
|
"resolved": "0.21.0",
|
||||||
|
"contentHash": "5CprzHStF627DqPytBnjRMXT2dvmXrP4XwVK4+jRllU5JH8SC6tytyyuOOd06tzjDPHU8YbDZ7/JtgJSiMb8RA=="
|
||||||
|
},
|
||||||
"FsCheck": {
|
"FsCheck": {
|
||||||
"type": "Direct",
|
"type": "Direct",
|
||||||
"requested": "[2.16.5, )",
|
"requested": "[2.16.5, )",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user