Пример #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);
        }