Beispiel #1
0
        public void TestAddID()
        {
            Identifiable_Object obj = new Identifiable_Object(new string[] { "obj1", "obj2" });

            obj.AddIdentifier("obj3");

            Assert.IsTrue(obj.AreYou("obj3"), "should be true");
        }
Beispiel #2
0
        public void TestCaseSensitive()
        {
            Identifiable_Object obj = new Identifiable_Object(new string[] { "obj1", "obj2" });

            Assert.IsTrue(obj.AreYou("oBj1"), "should be true");
        }
Beispiel #3
0
        public void TestAreYouNot()
        {
            Identifiable_Object obj = new Identifiable_Object(new string[] { "obj1", "obj2" });

            Assert.IsFalse(obj.AreYou("obj5"), "should be false");
        }