コード例 #1
0
        public void TestCaseSensitive()
        {
            io = new IdentifiableObject(new string[] { "id1", "id2" });

            io.AddIdentifier("ID5");
            Assert.AreEqual(io.AreYou("id5"), true);
        }
コード例 #2
0
        public void TestFirstID()
        {
            io = new IdentifiableObject(new string[] { "id1", "id2" });

            StringAssert.IsMatch(io.FirstId, "id1");
        }
コード例 #3
0
        public void TestNotAreYou()
        {
            io = new IdentifiableObject(new string[] { "id1", "id2" });

            Assert.AreEqual(io.AreYou("id5"), false);
        }
コード例 #4
0
        public void TestCreation()
        {
            io = new IdentifiableObject(new string[] { "id1", "id3" });

            Assert.AreNotEqual(io, null);
        }