public void ShouldBeCreatedCorrectly() { //arange & act Components.Point point = new Components.Point(2, 3, 'a'); //assert Assert.Equal(2, point.X); Assert.Equal(3, point.Y); Assert.Equal('a', point.Symbol); }
public void ShouldClearSymbol() { //arange Components.Point point = new Components.Point(2, 3, 'a'); //act point.Clear(); //assert Assert.Equal(' ', point.Symbol); }
public void ShouldReturnTrueWithDifferentSymbol() { //arange Components.Point point = new Components.Point(2, 3, 'a'); Components.Point isHitPoint = new Components.Point(2, 3, 'b'); //act bool result = point.IsHit(isHitPoint); //assert Assert.True(result); }
public void ShouldReturnFalse() { //arange Components.Point point = new Components.Point(2, 2, 'a'); Components.Point isHitPoint = new Components.Point(2, 3, 'b'); //act bool result = point.IsHit(isHitPoint); //assert Assert.False(result); }
public void ShouldReturnTrue() { //arange Components.Walls walls = Components.Walls.Instance; Components.Point point = new Components.Point(78, 23, 'd'); // act bool result = walls.IsHit(point); //assert Assert.True(result); }