public void SerializationTests_ThatSerializeAndDeserializeWereInvoked() { var data = new FakeSerialized { SomeData = "some data" }; SerializationManager.RoundTripSerializationForTesting(data); Assert.True(FakeSerializer.SerializeCalled); Assert.True(FakeSerializer.DeserializeCalled); }
public void SerializationTests_CustomSerializerIsSupportedType() { var data = new FakeSerialized { SomeData = "some data" }; SerializationManager.RoundTripSerializationForTesting(data); Assert.True(FakeSerializer.IsSupportedTypeCalled, "type discovery failed"); }
public void SerializationTests_ThatCopyWasInvoked() { var data = new FakeSerialized { SomeData = "some data" }; SerializationManager.DeepCopy(data); Assert.True(FakeSerializer.DeepCopyCalled); }