Пример #1
0
 public void SerializationTests_ThatSerializeAndDeserializeWereInvoked()
 {
     var data = new FakeSerialized { SomeData = "some data" };
     SerializationManager.RoundTripSerializationForTesting(data);
     Assert.True(FakeSerializer.SerializeCalled);
     Assert.True(FakeSerializer.DeserializeCalled);
 }
Пример #2
0
        public void SerializationTests_CustomSerializerIsSupportedType()
        {
            var data = new FakeSerialized { SomeData = "some data" };
            SerializationManager.RoundTripSerializationForTesting(data);

            Assert.True(FakeSerializer.IsSupportedTypeCalled, "type discovery failed");
        }
Пример #3
0
 public void SerializationTests_ThatCopyWasInvoked()
 {
     var data = new FakeSerialized { SomeData = "some data" };
     SerializationManager.DeepCopy(data);
     Assert.True(FakeSerializer.DeepCopyCalled);
 }