Exemplo n.º 1
0
            public void DestinationIsNull()
            {
                var         source      = new DummyObject();
                DummyObject destination = null;

                converter.TestGuard(source, ref destination);

                destination.Should().NotBeNull();
            }
Exemplo n.º 2
0
            public void DestinationIsNotNull()
            {
                const int    EXPECTEDID   = 1;
                const string EXPECTEDNAME = "Thingy";

                var source      = new DummyObject();
                var destination = new DummyObject {
                    Id = EXPECTEDID, Name = EXPECTEDNAME
                };

                converter.TestGuard(source, ref destination);

                destination.Should().NotBeNull();
                destination.Id.Should().Be(EXPECTEDID);
                destination.Name.Should().BeEquivalentTo(EXPECTEDNAME);
            }