public void TestAddID() { io = new IdentifiableObject(new string[] { "id1", "id2" }); io.AddIdentifier("Id5"); Assert.AreEqual(io.AreYou("id5"), true); Assert.AreEqual(io.AreYou("id2"), true); Assert.AreEqual(io.AreYou("id1"), true); }
public void TestNotAreYou() { io = new IdentifiableObject(new string[] { "id1", "id2" }); Assert.AreEqual(io.AreYou("id5"), false); }