Пример #1
0
        public void Core_Object_Fill()
        {
            var testItem  = new MyClass1();
            var fillItem1 = new MyClass2();
            var fillItem2 = new MyClass3();

            fillItem1.Fill(testItem);
            fillItem2.Fill(testItem);
            Assert.IsTrue(testItem.MyProperty == fillItem1.MyProperty);
            Assert.IsTrue(testItem.MyProperty == fillItem2.MyProperty);
            Assert.IsTrue(testItem.MyProperty != new MyClass2().MyProperty);
        }