Exemplo n.º 1
0
        public void NotBeEqualIfSomePropertiesDiffer(int intProperty1, int intProperty2, string stringProperty1, string stringProperty2, bool boolProperty1, bool boolProperty2)
        {
            var valueObject1 = new ValueObjectImpl(intProperty1, stringProperty1, boolProperty1);
            var valueObject2 = new ValueObjectImpl(intProperty2, stringProperty2, boolProperty2);

            valueObject1.Should().NotBe(valueObject2);
        }
Exemplo n.º 2
0
        public void BeEqualIfAllPropertiesAreEqual(int intProperty, string stringProperty, bool boolProperty)
        {
            var valueObject1 = new ValueObjectImpl(intProperty, stringProperty, boolProperty);
            var valueObject2 = new ValueObjectImpl(intProperty, stringProperty, boolProperty);

            valueObject1.Should().Be(valueObject2);
        }