public void Equals_StudiesWithSameUIDAreNotEqual() { // Arrange var study1 = new StudyInfo { StudyInstanceUID = new InfoIdentifier("123") }; var study2 = new StudyInfo { StudyInstanceUID = new InfoIdentifier("321") }; // Act var result = study1.Equals(study2); // Assert Assert.That(result, Is.False); }
public void Equals_WithNull_ReturnsFalse() { // Arrange var infoIdentifier = new InfoIdentifier("123"); var study = new StudyInfo { StudyInstanceUID = infoIdentifier }; // Act var result = study.Equals(null); // Assert Assert.That(result, Is.False); }
public void Equals_WithDifferentType_ReturnsFalse() { var infoIdentifier = new InfoIdentifier("123"); var study = new StudyInfo { StudyInstanceUID = infoIdentifier }; // Act var result = study.Equals(new object()); // Assert Assert.That(result, Is.False); }
public void Equals_WithItself_ReturnsTrue() { // Arrange var infoIdentifier = new InfoIdentifier("123"); var study = new StudyInfo { StudyInstanceUID = infoIdentifier }; // Act var result = study.Equals(study); // Assert Assert.That(result, Is.True); }