Example #1
0
        public void TestEqualsFetchIdMustReturnTrueSameReference()
        {
            FetchId fetchId    = new FetchId(42);
            bool    mustBeTrue = fetchId.Equals(fetchId);

            Assert.IsTrue(mustBeTrue, "Expected 'Equals' call to be true.");
        }
Example #2
0
        public void TestEqualsObjIsNull()
        {
            FetchId fetchId     = new FetchId(42);
            bool    mustBeFalse = fetchId.Equals(null);

            Assert.IsFalse(mustBeFalse, "Expected 'Equals' call to be false.");
        }
Example #3
0
        public void TestEqualsFetchIdMustReturnTrueNewInstance()
        {
            FetchId fetchId        = new FetchId(42);
            FetchId anotherFetchId = new FetchId(42);
            bool    mustBeTrue     = fetchId.Equals(anotherFetchId);

            Assert.IsTrue(mustBeTrue, "Expected 'Equals' call to be true.");
        }
Example #4
0
        public void TestEqualsFetchIdMustReturnFalse()
        {
            FetchId fetchId        = new FetchId(42);
            FetchId anotherFetchId = new FetchId(15);
            bool    mustBeFalse    = fetchId.Equals(anotherFetchId);

            Assert.IsFalse(mustBeFalse, "Expected 'Equals' call to be false.");
        }