Esempio n. 1
0
        public void TestAddId()
        {
            _testableObject.AddIdentifier("wilma");
            bool actual = _testableObject.AreYou("wilma");

            Assert.IsTrue(actual, "Calling are you");
        }
Esempio n. 2
0
 public void TestAddID()
 {
     _testObject.AddIdentifier("wilma");
     Assert.IsTrue(_testObject.AreYou("fred"));
     Assert.IsTrue(_testObject.AreYou("bob"));
     Assert.IsTrue(_testObject.AreYou("wilma"));
 }
Esempio n. 3
0
        public void TestAddID(string id)
        {
            identobj.AddIdentifier(id);
            var result = identobj.AreYou(id);

            Assert.IsTrue(result);
        }
        public void TestAddID()
        {
            IdentifiableObject TestObject = new IdentifiableObject (new string[] {"fred", "bob"});

            TestObject.AddIdentifier ("wilma");

            Assert.IsTrue (TestObject.AreYou("fred"));
            Assert.IsTrue (TestObject.AreYou("bob"));
            Assert.IsTrue (TestObject.AreYou("wilma"));
        }
Esempio n. 5
0
        [Test] // Whether AddId will add passed identifier to the list
        public void AddIdentifierTest()
        {
            IdentifiableObject testIdentifiableObject = new IdentifiableObject(new string[] { "fred", "bob" });

            testIdentifiableObject.AddIdentifier("james");
            bool actual   = testIdentifiableObject.AreYou("james");
            bool expected = true;

            Assert.AreEqual(expected, actual, "AddIdentifier() has not added an Identifier to the list.");
        }
        public void TestAddID()
        {
            IdentifiableObject TestObject = new IdentifiableObject(new string[] { "fred", "bob" });

            TestObject.AddIdentifier("wilma");

            Assert.IsTrue(TestObject.AreYou("fred"));
            Assert.IsTrue(TestObject.AreYou("bob"));
            Assert.IsTrue(TestObject.AreYou("wilma"));
        }