Beispiel #1
0
        public void When_ValueObjectEqualCalls_Then_EqualCoreInvoked()
        {
            var a = new TestValueObjectA();

            a.Equals(a);
            Assert.True(a.equalsCalled);
        }
Beispiel #2
0
        public void When_Compare2DifferentTypesOfValueType_Then_False()
        {
            var a = new TestValueObjectA();
            var b = new TestValueObjectB();

            Assert.False(a.Equals(b));
        }
Beispiel #3
0
        public void When_CompareValueObjectWithItself_Then_False()
        {
            var a = new TestValueObjectA();

            Assert.False(a.Equals(null));
        }