Example #1
0
        public void CopyProperties()
        {
            AClass a = new AClass(1, 2, 3, 4, 5);
            BClass b = new BClass();

            a.CopyPropertyValues(b);

            _fakeDataCopier.Verify(f => f.CopyProperties(a, b), Times.Once());
        }
Example #2
0
        public void CopyData_AToB()
        {
            AClass a = new AClass(1, 2, 3, 4, 5);
            BClass b = new BClass();

            _unitUnderTest.CopyProperties(a, b);

            Assert.AreEqual(a.A, b.A);
            Assert.AreEqual(a.B, b.B);
            Assert.AreEqual(a.D, b.D);
            Assert.AreEqual(0, b.F);
        }