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); }
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); }
public void Should_copy_one_object_to_another() { var initialObject = new ComplexValueObjectStub { Address = "Address", Age = 18, Name = "Name", Date = DateTime.Now }; var destinationObject = new ComplexValueObjectStub(); initialObject.CopyTo(destinationObject); initialObject.Equals(destinationObject).Should().BeTrue(); }