Skip to content

Commit c244885

Browse files
committed
Avoid two more odd test failures
- missed two tests in #109 / 86f6078
1 parent 86f6078 commit c244885

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/System.Net.Http.Formatting.Test/Formatting/XmlMediaTypeFormatterTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ public async Task ReadFromStream_AsyncRoundTripsWriteToStreamUsingDataContractSe
484484
}
485485
}
486486

487+
#if !NETCOREAPP2_0 // DBNull not serializable on .NET Core 2.0.
487488
[Fact]
488489
public async Task ReadFromStreamAsync_RoundTripsWriteToStreamAsyncUsingDataContractSerializer_DBNull()
489490
{
@@ -515,6 +516,7 @@ public async Task ReadFromStreamAsync_RoundTripsWriteToStreamAsyncUsingDataContr
515516
// Lower levels convert DBNull.Value to empty string on read
516517
Assert.Equal(String.Empty, readObj);
517518
}
519+
#endif
518520

519521
public override Task ReadFromStreamAsync_UsesCorrectCharacterEncoding(string content, string encoding, bool isDefaultEncoding)
520522
{

0 commit comments

Comments
 (0)