public void Serialize_AsyncObserverArgumentType() { Assert.NotNull(this.fixture.SerializationManager.GetSerializer(typeof(AsyncObserverArg))); //No serializer generated for argument type of async observer var original = new AsyncObserverArg("A", 1); var obj = this.fixture.SerializationManager.RoundTripSerializationForTesting(original); Assert.Equal(original, obj); //Objects of type AsyncObserverArg aren't equal after serialization roundtrip }
public void Serialize_AsyncObserverArgumentType() { Assert.IsNotNull(SerializationManager.GetSerializer(typeof(AsyncObserverArg)), "No serializer generated for argument type of async observer"); var original = new AsyncObserverArg("A", 1); var obj = SerializationManager.RoundTripSerializationForTesting(original); Assert.AreEqual(original, obj, "Objects of type AsyncObserverArg aren't equal after serialization roundtrip"); }