public void Equals_returns_false_with_different_name() { // arrange TagInt target; TagInt other; bool actual; target = new TagInt("Alpha", 1073741823); other = new TagInt("Beta", 1073741823); // act actual = target.Equals(other); // assert Assert.False(actual); }
public void Equals_returns_false_with_different_value() { // arrange TagInt target; TagInt other; bool actual; target = new TagInt(string.Empty, 1073741823); other = new TagInt(string.Empty, 536870911); // act actual = target.Equals(other); // assert Assert.False(actual); }
public void Equals_returns_true_for_matching_tag() { // arrange TagInt target; TagInt other; bool actual; target = new TagInt("alpha", 1073741823); other = new TagInt("alpha", 1073741823); // act actual = target.Equals(other); // assert Assert.True(actual); }