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


            Assert.IsNotNull(obj, "should have 2 objects");
        }
Example #2
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");
        }
Example #3
0
        public void TestCaseSensitive()
        {
            Identifiable_Object obj = new Identifiable_Object(new string[] { "obj1", "obj2" });

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

            Assert.AreEqual("obj1", obj.FirstId(), "should be obj1");
        }
Example #5
0
        public void TestAreYouNot()
        {
            Identifiable_Object obj = new Identifiable_Object(new string[] { "obj1", "obj2" });

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