예제 #1
0
        public void SameIdentityAs_should_return_false_for_not_equals_Names()
        {
            var nick1 = new Nick(_user, "name1");
            var nick2 = new Nick(_user, "name");

            Assert.IsFalse(nick1.SameIdentityAs(nick2));
            Assert.IsFalse(nick1.SameIdentityAs(null));
        }
예제 #2
0
        public void SameIdentityAs_should_return_true_for_equals_Names()
        {
            var nick1 = new Nick(_user, "name");
            var nick2 = new Nick(_user, "NamE");

            Assert.IsTrue(nick1.SameIdentityAs(nick2));
            Assert.IsTrue(nick2.SameIdentityAs(nick1));
        }