public void Then_ValidOffset_ValidMovedOffset() { //Arrange var sut = new Offset(-1, 1); //Act var result = sut.Then(Offset.BottomBy(2)).Then(Offset.RightBy(1)); //Assert Assert.Equal((0, -1), (result.X, result.Y)); }
public void BottomBy_NegativeValue_PositiveY() { //Arrange var sut = Offset.BottomBy(-1); //Act var(x, y) = sut; //Assert Assert.Equal(0, x); Assert.Equal(1, y); }