Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void TestException(string? message, bool innerException)
Assert.Equal(message, thrownException.Message);
}

[Theory]
[ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsBinaryFormatterSupported))]
[InlineData("Test Message")]
[InlineData(null)]
public void TestSerialization(string? message)
Expand All @@ -55,8 +55,9 @@ public void TestSerialization(string? message)
Assert.Null(deserializedException.InnerException);
}

[Fact]
public void TestSerializationDefaultConstructor() {
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsBinaryFormatterSupported))]
public void TestSerializationDefaultConstructor()
{
var exception = new HostAbortedException();
using var serializationStream = new MemoryStream();

Expand Down