示例#1
0
 public void AddToY_WorksWithNegatives()
 {
     testCoordinate = new Coordinate(1, 1);
     testCoordinate.AddToY(-3);
     Assert.AreEqual(-2, testCoordinate.Y);
 }
示例#2
0
 public void AddToY_WorksWithPositiveNumber()
 {
     testCoordinate = new Coordinate(1, 1);
     testCoordinate.AddToY(1);
     Assert.AreEqual(2, testCoordinate.Y);
 }