Ejemplo n.º 1
0
        public void PropertyKeyNotEqualToWithInt()
        {
            tlog.Debug(tag, $"PropertyKeyNotEqualToWithInt START");

            var testingTarget = new PropertyKey(20);

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

            var result = testingTarget.NotEqualTo(30);

            Assert.IsNotNull(result, "The result should not be null");
            Assert.IsTrue(result);

            testingTarget.Dispose();
            tlog.Debug(tag, $"PropertyKeyNotEqualToWithInt END (OK)");
        }
Ejemplo n.º 2
0
        public void PropertyKeyNotEqualToWithPropertyKey()
        {
            tlog.Debug(tag, $"PropertyKeyNotEqualToWithPropertyKey START");

            var pKey1 = new PropertyKey(20);

            Assert.IsNotNull(pKey1, "should be not null");
            Assert.IsInstanceOf <PropertyKey>(pKey1, "should be an instance of PropertyKey class!");

            var pKey2 = new PropertyKey(30);

            Assert.IsNotNull(pKey2, "should be not null");
            Assert.IsInstanceOf <PropertyKey>(pKey2, "should be an instance of PropertyKey class!");

            var result = pKey1.NotEqualTo(pKey2);

            Assert.IsNotNull(result, "The result should not be null");
            Assert.IsTrue(result);

            pKey2.Dispose();
            pKey1.Dispose();
            tlog.Debug(tag, $"PropertyKeyNotEqualToWithPropertyKey END (OK)");
        }