public void Equals_CompareToString_ReturnsFalse() { // arrange Place testPlace = new Place(0, 0, "testPlace"); // act bool result = testPlace.Equals("testString"); // assert Assert.IsFalse(result, "Comparison with other type should always return false."); }
public void Equals_CompareToSamePlace_ReturnsTrue() { // arrange Place testPlace = new Place(0, 0, "testPlace"); // act bool result = testPlace.Equals(testPlace); // assert Assert.IsTrue(result, "Comparison with same place should return true."); }
public void Equals_CompareToPlaceWithSameIdButDifferentTokenCount_ReturnsFalse() { // arrange Place testPlace = new Place(0, 0, "testPlace"); Place differentPlace = new Place(0, 0, "testPlace"); differentPlace.ChangeTokenCount(5, testCallback); // act bool result = testPlace.Equals(differentPlace); // assert Assert.IsFalse(result, "Comparison with place with different tokenCount should return false."); }
public void Equals_CompareToPlaceWithSameIdAndTokenCount_ReturnsTrue() { // arrange Place testPlace = new Place(0, 0, "testPlace"); testPlace.ChangeTokenCount(4, testCallback); Place differentPlace = new Place(0, 0, "testPlace"); differentPlace.ChangeTokenCount(4, testCallback); // act bool result = testPlace.Equals(differentPlace); // assert Assert.IsTrue(result, "Comparison with place with same id and same tokenCount should return true."); }
public void Equals_CompareToNull_ReturnsFalse() { // arrange Place testPlace = new Place(0, 0, "testPlace"); // act bool result = testPlace.Equals(null); // assert Assert.IsFalse(result, "Comparison with null should always return false."); }
public void Equals_CompareToDifferentArc_ReturnsFalse() { // arrange Place testPlace = new Place(0, 0, "testPlace"); Place differentPlace = new Place(0, 0, "differentPlace"); // act bool result = testPlace.Equals(differentPlace); // assert Assert.IsFalse(result, "Comparison with place with different id should return false."); }