public void PropertyKeyConstructorWithInt() { tlog.Debug(tag, $"PropertyKeyConstructorWithInt START"); var testingTarget = new PropertyKey(7); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <PropertyKey>(testingTarget, "should be an instance of testing target class!"); testingTarget.Dispose(); tlog.Debug(tag, $"PropertyKeyConstructorWithInt END (OK)"); }
public void PropertyKeyTypeWithInt() { tlog.Debug(tag, $"PropertyKeyTypeWithInt START"); var testingTarget = new PropertyKey(1); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <PropertyKey>(testingTarget, "should be an instance of testing target class!"); Assert.IsTrue(PropertyKey.KeyType.Index == testingTarget.Type); testingTarget.Dispose(); tlog.Debug(tag, $"PropertyKeyTypeWithInt END (OK)"); }
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)"); }
public void PropertyKeyStringKey() { tlog.Debug(tag, $"PropertyKeyStringKey START"); var testingTarget = new PropertyKey("aKey"); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <PropertyKey>(testingTarget, "should be an instance of testing target class!"); Assert.IsTrue("aKey" == testingTarget.StringKey); testingTarget.StringKey = "bKey"; Assert.IsTrue("bKey" == testingTarget.StringKey); testingTarget.Dispose(); tlog.Debug(tag, $"PropertyKeyStringKey END (OK)"); }
public void PropertyKeyIndexKey() { tlog.Debug(tag, $"PropertyKeyIndexKey START"); var testingTarget = new PropertyKey(30); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <PropertyKey>(testingTarget, "should be an instance of testing target class!"); Assert.IsTrue(30 == testingTarget.IndexKey); testingTarget.IndexKey = 20; Assert.IsTrue(20 == testingTarget.IndexKey); testingTarget.Dispose(); tlog.Debug(tag, $"PropertyKeyIndexKey END (OK)"); }
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)"); }
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)"); }