示例#1
0
        public void Should_compare_null_dates_to_non_null_attributes()
        {
            var stub1 = new ComplexValueObjectStub();
            var stub2 = new ComplexValueObjectStub();

            stub1.Date = DateTime.Now;

            stub1.Should().NotBe(stub2);
            stub2.Should().NotBe(stub1);
        }
示例#2
0
        public void Should_compare_null_attributes_to_non_null_attributes()
        {
            var stub1 = new ComplexValueObjectStub();
            var stub2 = new ComplexValueObjectStub();

            stub1.Address = "123 Main";

            stub1.Should().NotBe(stub2);
            stub2.Should().NotBe(stub1);
        }