public void EqualsReturnsFalseWhenDifferent() { ReplacerEntry entry1 = new ReplacerEntry("o", "m"); ReplacerEntry entry2 = new ReplacerEntry("o", "t"); Assert.That(entry1.Equals(entry2), Is.False); ReplacerEntry entry3 = new ReplacerEntry("t", "m"); Assert.That(entry1.Equals(entry3), Is.False); }
public void EqualsReturnsTrueWhenEqual() { ReplacerEntry entry1 = new ReplacerEntry("o", "m"); ReplacerEntry entry2 = new ReplacerEntry("o", "m"); Assert.That(entry1.Equals(entry2), Is.True); }
public void EqualsObjReturnsFalseWhenDifferentType() { ReplacerEntry entry1 = new ReplacerEntry("o", "m"); Assert.That(entry1.Equals(5), Is.False); }