public void Comparing_value_objects_of_different_types_returns_false()
        {
            var vo1 = new VO1("1");
            var vo2 = new VO2("1");

            vo1.Equals(vo2).Should().BeFalse();
        }
Example #2
0
        public void Comparing_value_objects_of_different_types_throws_an_exception()
        {
            var vo1 = new VO1("1");
            var vo2 = new VO2("2");

            Action action = () => vo1.Equals(vo2);

            action.ShouldThrow <ArgumentException>();
        }