chore(deps): update dependency fluentassertions to v6.7.0 (#148)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
This commit is contained in:
renovate[bot] 2022-06-29 17:09:54 -07:00 коммит произвёл GitHub
Родитель 10eef321f6
Коммит 29d02b805b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 14 добавлений и 14 удалений

Просмотреть файл

@ -11,7 +11,7 @@
<PackageVersion Include="CommandLineParser" Version="2.9.1"/>
<PackageVersion Include="coverlet.msbuild" Version="2.9.0"/>
<PackageVersion Include="Docker.DotNet" Version="3.125.5"/>
<PackageVersion Include="FluentAssertions" Version="6.1.0"/>
<PackageVersion Include="FluentAssertions" Version="6.7.0"/>
<PackageVersion Include="Microsoft.AspNet.WebApi.Client" Version="5.2.9"/>
<PackageVersion Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.0"/>
<PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="3.1.26" />

Просмотреть файл

@ -13,7 +13,7 @@ namespace Microsoft.ComponentDetection.Common.Tests
[TestCategory("Governance/All")]
[TestCategory("Governance/ComponentDetection")]
public class DependencyScopeComparerTests
{
{
[TestMethod]
public void GetMergedDependencyScope_returnNull_IfBothNull()
{
@ -26,7 +26,7 @@ namespace Microsoft.ComponentDetection.Common.Tests
DependencyScope randomDependencyScope = Faker.Enum.Random<DependencyScope>();
GetMergedDependencyScope(null, randomDependencyScope)
.Should()
.Equals(randomDependencyScope);
.Be(randomDependencyScope);
}
[TestMethod]
@ -35,29 +35,29 @@ namespace Microsoft.ComponentDetection.Common.Tests
DependencyScope randomDependencyScope = Faker.Enum.Random<DependencyScope>();
GetMergedDependencyScope(randomDependencyScope, null)
.Should()
.Equals(randomDependencyScope);
.Be(randomDependencyScope);
}
[TestMethod]
public void GetMergedDependencyScope_WhenBothNonNull_higherPriorityEnumsReturned()
{
// compare with compile
GetMergedDependencyScope(DependencyScope.MavenRuntime, DependencyScope.MavenCompile).Should().Equals(DependencyScope.MavenCompile);
GetMergedDependencyScope(DependencyScope.MavenProvided, DependencyScope.MavenCompile).Should().Equals(DependencyScope.MavenCompile);
GetMergedDependencyScope(DependencyScope.MavenSystem, DependencyScope.MavenCompile).Should().Equals(DependencyScope.MavenCompile);
GetMergedDependencyScope(DependencyScope.MavenTest, DependencyScope.MavenCompile).Should().Equals(DependencyScope.MavenCompile);
GetMergedDependencyScope(DependencyScope.MavenRuntime, DependencyScope.MavenCompile).Should().Be(DependencyScope.MavenCompile);
GetMergedDependencyScope(DependencyScope.MavenProvided, DependencyScope.MavenCompile).Should().Be(DependencyScope.MavenCompile);
GetMergedDependencyScope(DependencyScope.MavenSystem, DependencyScope.MavenCompile).Should().Be(DependencyScope.MavenCompile);
GetMergedDependencyScope(DependencyScope.MavenTest, DependencyScope.MavenCompile).Should().Be(DependencyScope.MavenCompile);
// compare with runtime
GetMergedDependencyScope(DependencyScope.MavenProvided, DependencyScope.MavenRuntime).Should().Equals(DependencyScope.MavenRuntime);
GetMergedDependencyScope(DependencyScope.MavenSystem, DependencyScope.MavenRuntime).Should().Equals(DependencyScope.MavenRuntime);
GetMergedDependencyScope(DependencyScope.MavenTest, DependencyScope.MavenRuntime).Should().Equals(DependencyScope.MavenRuntime);
GetMergedDependencyScope(DependencyScope.MavenProvided, DependencyScope.MavenRuntime).Should().Be(DependencyScope.MavenRuntime);
GetMergedDependencyScope(DependencyScope.MavenSystem, DependencyScope.MavenRuntime).Should().Be(DependencyScope.MavenRuntime);
GetMergedDependencyScope(DependencyScope.MavenTest, DependencyScope.MavenRuntime).Should().Be(DependencyScope.MavenRuntime);
// compare with provided
GetMergedDependencyScope(DependencyScope.MavenSystem, DependencyScope.MavenProvided).Should().Equals(DependencyScope.MavenProvided);
GetMergedDependencyScope(DependencyScope.MavenTest, DependencyScope.MavenProvided).Should().Equals(DependencyScope.MavenProvided);
GetMergedDependencyScope(DependencyScope.MavenSystem, DependencyScope.MavenProvided).Should().Be(DependencyScope.MavenProvided);
GetMergedDependencyScope(DependencyScope.MavenTest, DependencyScope.MavenProvided).Should().Be(DependencyScope.MavenProvided);
// compare with system
GetMergedDependencyScope(DependencyScope.MavenSystem, DependencyScope.MavenTest).Should().Equals(DependencyScope.MavenSystem);
GetMergedDependencyScope(DependencyScope.MavenSystem, DependencyScope.MavenTest).Should().Be(DependencyScope.MavenSystem);
}
}
}