コード例 #1
0
        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);
        }
コード例 #2
0
        public void TestNotAreYou()
        {
            io = new IdentifiableObject(new string[] { "id1", "id2" });

            Assert.AreEqual(io.AreYou("id5"), false);
        }