public void TestCreation() { Identifiable_Object obj = new Identifiable_Object(new string[] { "obj1", "obj2" }); Assert.IsNotNull(obj, "should have 2 objects"); }
public void TestAddID() { Identifiable_Object obj = new Identifiable_Object(new string[] { "obj1", "obj2" }); obj.AddIdentifier("obj3"); Assert.IsTrue(obj.AreYou("obj3"), "should be true"); }
public void TestCaseSensitive() { Identifiable_Object obj = new Identifiable_Object(new string[] { "obj1", "obj2" }); Assert.IsTrue(obj.AreYou("oBj1"), "should be true"); }
public void TestFirstID() { Identifiable_Object obj = new Identifiable_Object(new string[] { "obj1", "obj2" }); Assert.AreEqual("obj1", obj.FirstId(), "should be obj1"); }
public void TestAreYouNot() { Identifiable_Object obj = new Identifiable_Object(new string[] { "obj1", "obj2" }); Assert.IsFalse(obj.AreYou("obj5"), "should be false"); }