Пример #1
0
        public void IsSameIdentity_Test()
        {
            Guid testGuid = Guid.NewGuid();
            Box target1 = new Box(testGuid);
            Box target2 = new Box(Guid.NewGuid());
            Box target3 = new Box(testGuid);
            Box target4 = new Box();

            bool expected1 = false;
            bool expected2 = true;
            bool expected3 = false;

            bool actual1;
            bool actual2;
            bool actual3;

            actual1 = target1.IsSameIdentity(target2);
            actual2 = target1.IsSameIdentity(target3);
            actual3 = target1.IsSameIdentity(target4);

            Assert.AreEqual(expected1, actual1);
            Assert.AreEqual(expected2, actual2);
            Assert.AreEqual(expected3, actual3);
        }