public void CheckResult() { //All the possible outcomes of rock, paper, scissors Assert.AreEqual(ResultEnum.Loss, _paper.GetResult(_scissors)); Assert.AreEqual(ResultEnum.Win, _paper.GetResult(_rock)); Assert.AreEqual(ResultEnum.Drawer, _paper.GetResult(_paper)); Assert.AreEqual(ResultEnum.Loss, _scissors.GetResult(_rock)); Assert.AreEqual(ResultEnum.Win, _scissors.GetResult(_paper)); Assert.AreEqual(ResultEnum.Drawer, _scissors.GetResult(_scissors)); Assert.AreEqual(ResultEnum.Loss, _rock.GetResult(_paper)); Assert.AreEqual(ResultEnum.Win, _rock.GetResult(_scissors)); Assert.AreEqual(ResultEnum.Drawer, _rock.GetResult(_rock)); }
public void SameMovementIsATie() { Scissors p = new Scissors(); Assert.AreEqual(RoundResult.Tie, p.GetResult(new Scissors())); }
public void ScissorsBeatsPaper() { Scissors s = new Scissors(); Assert.AreEqual(RoundResult.AWins, s.GetResult(new Paper())); }
public void ScissorsLosesToRock() { Scissors p = new Scissors(); Assert.AreEqual(RoundResult.BWins, p.GetResult(new Rock())); }