Exemplo n.º 1
0
        public void TestCreation()
        {
            Identifiable_Object obj = new Identifiable_Object(new string[] { "obj1", "obj2" });


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

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

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

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