public void NoData() { string[] lines = { }; List <Move> moves = GameParser.ParseGameMoves(lines); Assert.AreEqual(0, moves.Count); }
public void InvalidData() { string[] lines = { "TurnAround" }; GameParser.ParseGameMoves(lines); }
public void EmptyData() { string[] lines = { "" }; GameParser.ParseGameMoves(lines); }
public void Success() { string[] lines = { "Move", "Rotate", "Move", "Move", "Move", "Move", "Rotate", "Move", "Move" }; List <Move> moves = GameParser.ParseGameMoves(lines); Assert.AreEqual(9, moves.Count); }