Beispiel #1
0
        public void LayoutLengthEqualsWithObject()
        {
            tlog.Debug(tag, $"LayoutLengthEqualsWithObject START");

            var testingTarget = new LayoutLength(10.0f);

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <LayoutLength>(testingTarget, "Should be an instance of LayoutLength type.");

            object obj = new LayoutLength(10.0f);

            Assert.IsTrue(testingTarget.Equals(obj), "Should be equal.");

            object obj2 = new Size(100, 150);

            Assert.IsFalse(testingTarget.Equals(obj2), "Should be equal.");

            tlog.Debug(tag, $"LayoutLengthEqualsWithObject END (OK)");
        }
Beispiel #2
0
        public void LayoutLengthEqualsWithLayoutLength()
        {
            tlog.Debug(tag, $"LayoutLengthEqualsWithLayoutLength START");

            var testingTarget = new LayoutLength(10.0f);

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <LayoutLength>(testingTarget, "Should be an instance of LayoutLength type.");

            Assert.IsTrue(testingTarget.Equals(new LayoutLength(10.0f)), "Should be equal.");

            tlog.Debug(tag, $"LayoutLengthEqualsWithLayoutLength END (OK)");
        }