Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<PackageVersion Include="BenchmarkDotNet" Version="$(BenchmarkDotNetVersion)" />
<PackageVersion Include="Ceras" Version="4.1.7" />
<PackageVersion Include="ConsoleAppFramework" Version="4.2.4" />
<PackageVersion Include="FluentAssertions" Version="6.12.0" />
<PackageVersion Include="Shouldly" Version="4.2.1" />
<PackageVersion Include="FsPickler" Version="5.3.2" />
<PackageVersion Include="Hyperion" Version="0.12.2" />
<PackageVersion Include="IsExternalInit" Version="1.0.3" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Shouldly" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing.XUnit" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.XUnit" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" />
Expand Down
4 changes: 2 additions & 2 deletions tests/MessagePack.Tests/MessagePack.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
<PackageReference Include="xunit.runner.visualstudio" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Xunit.SkippableFact" />
<PackageReference Include="FluentAssertions" />
<PackageReference Include="Shouldly" />
</ItemGroup>
<ItemGroup>
<Using Include="Xunit" />
<Using Include="Xunit.Abstractions" />
<Using Include="FluentAssertions" />
<Using Include="Shouldly" />
<Using Include="MessagePack" />
</ItemGroup>
<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions tests/MessagePack.Tests/NewCollectionTypesTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ public void OrderedDictionaryTest()

var v2 = Convert(v);

v.AsEnumerable().Should().Equal(v2.AsEnumerable());
v.AsEnumerable().ShouldBe(v2.AsEnumerable());
}

[Fact]
public void ReadOnlySetTest()
{
var v = new ReadOnlySet<int>(new HashSet<int>() { 1, 2, 5, 3, 9, 7 });
var v2 = Convert(v);
v2.Should().Equal(v);
v2.ShouldBe(v);
}
}

Expand Down
6 changes: 3 additions & 3 deletions tests/MessagePack.Tests/NewStandardClassTypesTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void RuneTest()
Rune v = Rune.GetRuneAt("あ", 0);
var bin = MessagePackSerializer.Serialize(v);
var v2 = MessagePackSerializer.Deserialize<Rune>(bin);
v2.Should().Be(v);
v2.ShouldBe(v);
}

// NET7
Expand All @@ -36,7 +36,7 @@ public void Int128Test(ulong upper, ulong lower)
var i = new Int128(upper, lower);
var bin = MessagePackSerializer.Serialize(i);
var i2 = MessagePackSerializer.Deserialize<Int128>(bin);
i.Should().Be(i2);
i.ShouldBe(i2);
}

[Theory]
Expand All @@ -50,7 +50,7 @@ public void UInt128Test(ulong upper, ulong lower)
var i = new UInt128(upper, lower);
var bin = MessagePackSerializer.Serialize(i);
var i2 = MessagePackSerializer.Deserialize<UInt128>(bin);
i.Should().Be(i2);
i.ShouldBe(i2);
}
}
#endif
Loading