public void Equals_ShouldReturnTrue_ReferenceTheSame() { var date = DateTime.Now; var model1 = new MigrationModel("name1", date, 2); var model2 = model1; model1.Should().BeEquivalentTo(model2); }
public void Equals_ShouldReturnFalse_DifferentIds() { var date = DateTime.Now; var model1 = new MigrationModel("name1", date, 2); var model2 = new MigrationModel("name1", date, 3); model1.Should().NotBeEquivalentTo(model2); }
public void Equals_ShouldReturnTrue_AllFieldsAreEqual() { var date = DateTime.Now; var model1 = new MigrationModel("name1", date, 2); var model2 = new MigrationModel("name1", date, 2); model1.Should().BeEquivalentTo(model2); }