Exemple #1
0
        public void When_integers_are_equal_equaloperator_should_return_true()
        {
            var result = new EqualsCheck().Check(1, 1);

            Assert.IsTrue(result);
        }
Exemple #2
0
        public void When_strings_are_equal_equaloperator_should_return_true()
        {
            var result = new EqualsCheck().Check("test", "test");

            Assert.IsTrue(result);
        }
Exemple #3
0
        public void When_strings_differ_equaloperator_should_return_false()
        {
            var result = new EqualsCheck().Check("test", "anotherstring");

            Assert.IsFalse(result);
        }
Exemple #4
0
        public void When_integers_differ_equaloperator_should_return_false()
        {
            var result = new EqualsCheck().Check(1, 2);

            Assert.IsFalse(result);
        }