Пример #1
0
        public static void NotEqualsOpRightIAutoIncrement_GivenObjectsWithDifferentIncrement_ReturnsTrue()
        {
            const int initialValue = 12345;
            const int increment    = 9876;
            var       a            = new AutoIncrement(initialValue, increment);
            var       b            = new FakeAutoIncrement(initialValue, 6789);

            Assert.That(a != b, Is.True);
        }
Пример #2
0
        public static void EqualsOpLeftIAutoIncrement_GivenObjectsWithDifferentIncrement_ReturnsFalse()
        {
            const int initialValue = 12345;
            const int increment    = 9876;
            var       a            = new FakeAutoIncrement(initialValue, increment);
            var       b            = new AutoIncrement(initialValue, 6789);

            Assert.That(a == b, Is.False);
        }
Пример #3
0
        public static void NotEqualsOpRightIAutoIncrement_GivenObjectsWithEqualInputs_ReturnsFalse()
        {
            const int initialValue = 12345;
            const int increment    = 9876;
            var       a            = new AutoIncrement(initialValue, increment);
            var       b            = new FakeAutoIncrement(initialValue, increment);

            Assert.That(a != b, Is.False);
        }
Пример #4
0
        public static void EqualsOpLeftIAutoIncrement_GivenObjectsWithEqualInputs_ReturnsTrue()
        {
            const int initialValue = 12345;
            const int increment    = 9876;
            var       a            = new FakeAutoIncrement(initialValue, increment);
            var       b            = new AutoIncrement(initialValue, increment);

            Assert.That(a == b, Is.True);
        }