public void Serialization()
        {
            var innerEndPoint = new SerializableCollectionEndPointFake();
            var listener      = new SerializableVirtualEndPointStateUpdateListenerFake();
            var instance      = new StateUpdateRaisingCollectionEndPointDecorator(innerEndPoint, listener);

            var deserializedInstance = FlattenedSerializer.SerializeAndDeserialize(instance);

            Assert.That(deserializedInstance.InnerEndPoint, Is.Not.Null);
            Assert.That(deserializedInstance.Listener, Is.Not.Null);
        }
Beispiel #2
0
        public void Serialization()
        {
            var innerFactory = new SerializableRelationEndPointFactoryFake();
            var listener     = new SerializableVirtualEndPointStateUpdateListenerFake();
            var decorator    = new StateUpdateRaisingRelationEndPointFactoryDecorator(innerFactory, listener);

            var deserializedInstance = Serializer.SerializeAndDeserialize(decorator);

            Assert.That(deserializedInstance.InnerFactory, Is.Not.Null);
            Assert.That(deserializedInstance.Listener, Is.Not.Null);
        }