Skip to content

Commit

Permalink
Disable most BinaryFormatter tests in wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabYourPitchforks committed Jul 14, 2020
1 parent 4900453 commit d4f16b9
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public abstract partial class IEnumerable_Generic_Tests<T> : TestBase<T>
{
[Theory]
[MemberData(nameof(ValidCollectionSizes))]
[PlatformSpecific(~TestPlatforms.Browser)] // BinaryFormatter not supported in browser
public void IGenericSharedAPI_SerializeDeserialize(int count)
{
IEnumerable<T> expected = GenericIEnumerableFactory(count);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public abstract partial class IEnumerable_NonGeneric_Tests : TestBase
{
[Theory]
[MemberData(nameof(ValidCollectionSizes))]
[PlatformSpecific(~TestPlatforms.Browser)] // BinaryFormatter not supported in browser
public void IGenericSharedAPI_SerializeDeserialize(int count)
{
IEnumerable expected = NonGenericIEnumerableFactory(count);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ namespace System.Collections.Generic.Tests
public abstract partial class ComparersGenericTests<T>
{
[Fact]
[PlatformSpecific(~TestPlatforms.Browser)] // BinaryFormatter not supported in browser
public void EqualityComparer_SerializationRoundtrip()
{
var bf = new BinaryFormatter();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ private static IDictionary<T, T> CreateDictionary<T>(int size, Func<int, T> keyV
}

[Fact]
[PlatformSpecific(~TestPlatforms.Browser)] // BinaryFormatter not supported in browser
public void ComparerSerialization()
{
// Strings switch between randomized and non-randomized comparers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ public void Remove_NonDefaultComparer_ComparerUsed(int capacity)
#region Serialization

[Fact]
[PlatformSpecific(~TestPlatforms.Browser)] // BinaryFormatter not supported in browser
public void ComparerSerialization()
{
// Strings switch between randomized and non-randomized comparers,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

namespace System.Runtime.Serialization.Formatters.Tests
{
[PlatformSpecific(~TestPlatforms.Browser)] // BinaryFormatter not supported in browser
public partial class BinaryFormatterTests : FileCleanupTestBase
{
// On 32-bit we can't test these high inputs as they cause OutOfMemoryExceptions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public void BindToName_NullDefaults()
}

[Fact]
[PlatformSpecific(~TestPlatforms.Browser)] // BinaryFormatter not supported in browser
public void BindToType_AllValuesTracked()
{
var s = new MemoryStream();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace System.Runtime.Serialization.Formatters.Tests
{
[PlatformSpecific(~TestPlatforms.Browser)] // BinaryFormatter not supported in browser
public static class SerializationGuardTests
{
[Fact]
Expand Down

0 comments on commit d4f16b9

Please sign in to comment.