Skip to content

Commit e3121e8

Browse files
committed
Use equivalence check in It_respects_opt_outs
Equal requires the same order which we don't need.
1 parent 73e8c09 commit e3121e8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/Microsoft.NET.Build.Tests/GivenThatWeWantToControlGeneratedAssemblyInfo.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
#nullable disable
55

6-
using Microsoft.VisualBasic;
7-
86
namespace Microsoft.NET.Build.Tests
97
{
108
public class GivenThatWeWantToControlGeneratedAssemblyInfo : SdkTest
@@ -81,7 +79,7 @@ public void It_respects_opt_outs(string attributeToOptOut)
8179
var assemblyPath = Path.Combine(buildCommand.GetOutputDirectory(ToolsetInfo.CurrentTargetFramework, "Release").FullName, "HelloWorld.dll");
8280
var actualInfo = AssemblyInfo.Get(assemblyPath);
8381

84-
actualInfo.Should().Equal(expectedInfo);
82+
actualInfo.Should().BeEquivalentTo(expectedInfo);
8583
}
8684

8785
[Fact]
@@ -237,7 +235,7 @@ public void It_includes_source_revision_id_if_available__version_with_plus()
237235
command.GetValues().Should().BeEquivalentTo(new[] { "1.2.3+abc.xyz" });
238236
}
239237

240-
[WindowsOnlyTheory]
238+
[Theory]
241239
[InlineData(ToolsetInfo.CurrentTargetFramework)]
242240
[InlineData("net45")]
243241
public void It_respects_version_prefix(string targetFramework)

0 commit comments

Comments
 (0)