public void moveright_Test() { var playermove = new playermovement(); var d_button = 1; var exectedDirction = 1; var rightDirction = playermove.moveUp(d_button); Assert.That(exectedDirction, Is.EqualTo(rightDirction)); }
public void moveDown_Test() { var playermove = new playermovement(); var s_button = -1; var exectedDirction = -1; var downDirction = playermove.moveUp(s_button); Assert.That(exectedDirction, Is.EqualTo(downDirction)); }
public void moveLeft_Test() { var playermove = new playermovement(); var a_button = -1; var exectedDirction = -1; var leftDirction = playermove.moveUp(a_button); Assert.That(exectedDirction, Is.EqualTo(leftDirction)); }
public void moveUp_Test() { var playermove = new playermovement(); var w_button = 1; var exectedDirction = 1; var upDirction = playermove.moveUp(w_button); Assert.That(exectedDirction, Is.EqualTo(upDirction)); }