Пример #1
0
        public void ExtentsAssign()
        {
            tlog.Debug(tag, $"ExtentsAssign START");

            var testingTarget = new Extents();

            Assert.IsNotNull(testingTarget, "should be not null");
            Assert.IsInstanceOf <Extents>(testingTarget, "should be an instance of testing target class!");

            Assert.AreEqual(0, testingTarget.Top, "Should be equal!");

            using (Extents extents = new Extents(20, 20, 20, 20))
            {
                testingTarget.Assign(extents);
                Assert.AreEqual(20, testingTarget.Top, "Should be equal!");
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"ExtentsAssign END (OK)");
        }