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

            var testingTarget = new PropertyKey("hello world");

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

            Assert.IsTrue(testingTarget.EqualTo("hello world"));
            testingTarget.Dispose();

            tlog.Debug(tag, $"PropertyKeyEqualToWithString END (OK)");
        }
Ejemplo n.º 2
0
        public void PropertyKeyEqualToWithInt()
        {
            tlog.Debug(tag, $"PropertyKeyEqualToWithInt 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.EqualTo(20);

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"PropertyKeyEqualToWithInt END (OK)");
        }
Ejemplo n.º 3
0
        public void PropertyKeyEqualToWithPropertyKey()
        {
            tlog.Debug(tag, $"PropertyKeyEqualToWithPropertyKey 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  = pkey1;
            var result = pkey1.EqualTo(pkey2);

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

            pkey2.Dispose();
            pkey1.Dispose();
            tlog.Debug(tag, $"PropertyKeyEqualToWithPropertyKey END (OK)");
        }