FluentAssertion 3.1.229を使用して、2 つの異なるコンテンツをどのように比較しますMemoryStream
か?
書き込むactualStream.Should().Be(expectedStream);
と、次のエラーが発生します。
System.IO.MemoryStream
{
CanRead = True
CanSeek = True
CanTimeout = False
CanWrite = True
Capacity = 8
Length = 8
Position = 0
ReadTimeout = "[Property 'ReadTimeout' threw an exception: 'Exception has been thrown by the target of an invocation.']"
WriteTimeout = "[Property 'WriteTimeout' threw an exception: 'Exception has been thrown by the target of an invocation.']"
}, but found
System.IO.MemoryStream
{
CanRead = True
CanSeek = True
CanTimeout = False
CanWrite = True
Capacity = 8
Length = 8
Position = 0
ReadTimeout = "[Property 'ReadTimeout' threw an exception: 'Exception has been thrown by the target of an invocation.']"
WriteTimeout = "[Property 'WriteTimeout' threw an exception: 'Exception has been thrown by the target of an invocation.']"
}.
はい、NUnit を使用できますAssert.That(actualStream, Is.EqualTo(expectedStream));
が、FluentAssertions では可能ですか?
ありがとう。