public void Equals_DoesNotMatchNull() { // Arrange var infoIdentifier = new InfoIdentifier("test"); // Act var result = infoIdentifier.Equals(null); // Arrange Assert.That(result, Is.False); }
public void Equals_MatchEqualObject(string firstId, string secondId, bool expectedResult) { // Arrange var firstInfoIdentifier = new InfoIdentifier(firstId); var secondInfoIdentifier = new InfoIdentifier(secondId); // Act bool result = firstInfoIdentifier.Equals(secondInfoIdentifier); // Assert Assert.That(result, Is.EqualTo(expectedResult)); }
public void Equals_DoesMatchString() { // Arrange var infoIdentifier = new InfoIdentifier("test"); // Act var result = infoIdentifier.Equals("test"); // Arrange Assert.That(result, Is.True); }