//[ExpectedException(typeof(WrongEncodedArrayFormat))]
        public void MustRaiseFormatErrorWithNoRound()
        {
            var encodedArray = new StringBuilder();

            encodedArray.Append("[");
            encodedArray.Append("       [");
            encodedArray.Append("           [\"Armando\", \"P\"],[\"Dave\", \"S\"]");
            encodedArray.Append("       ],");
            encodedArray.Append("       [");
            encodedArray.Append("           [\"Richard\", \"R\"],[\"Michael\", \"S\"]");
            encodedArray.Append("       ],");
            encodedArray.Append("       [");
            encodedArray.Append("           [\"Allen\", \"S\"],[\"Omer\", \"P\"]");
            encodedArray.Append("       ],");
            encodedArray.Append("       [");
            encodedArray.Append("           [\"David E.\", \"R\"],[\"Richard X.\", \"P\"]");
            encodedArray.Append("       ]");
            encodedArray.Append("]");

            try
            {
                var tournament = TournamentFactory.Parse(encodedArray.ToString());
            }
            catch (Exception ex)
            {
                Assert.AreEqual(typeof(WrongEncodedArrayFormat), ex.GetType());
            }
        }
        //[ExpectedException(typeof(WrongPlayerStructureError))]
        public void MustCheckStructureOfPlayerNode()
        {
            var encodedArray = new StringBuilder();

            encodedArray.Append("[");
            encodedArray.Append("   [");
            encodedArray.Append("       [");
            encodedArray.Append("           [\"Armando\", \"P\"],[\"Dave\", \"S\"]");
            encodedArray.Append("       ],");
            encodedArray.Append("       [");
            encodedArray.Append("           [\"Richard\", \"R\"],[\"Michael\", \"S\"]");
            encodedArray.Append("       ],");
            encodedArray.Append("   ],");
            encodedArray.Append("   [");
            encodedArray.Append("       [");
            encodedArray.Append("           [\"Allen\", \"S\"],[\"Omer\", \"P\"]");
            encodedArray.Append("       ],");
            encodedArray.Append("       [");
            encodedArray.Append("           [\"David E.\", \"R\"],[\"Richard X.\", \"P\", \"AAA\"]");
            encodedArray.Append("       ]");
            encodedArray.Append("   ]");
            encodedArray.Append("]");

            try
            {
                var tournament = TournamentFactory.Parse(encodedArray.ToString());
            }
            catch (Exception ex)
            {
                Assert.AreEqual(typeof(WrongPlayerStructureError), ex.GetType());
            }
        }
        //[ExpectedException(typeof(WrongNumberOfTournamentRounds))]
        public void MustCheckNumberOfInicialRounds()
        {
            var encodedArray = new StringBuilder();

            encodedArray.Append("[");
            encodedArray.Append("   [");
            encodedArray.Append("       [");
            encodedArray.Append("           [\"Armando\", \"P\"],[\"Dave\", \"S\"]");
            encodedArray.Append("       ],");
            encodedArray.Append("       [");
            encodedArray.Append("           [\"Richard\", \"R\"],[\"Michael\", \"S\"]");
            encodedArray.Append("       ],");
            encodedArray.Append("   ],");
            encodedArray.Append("   [");
            encodedArray.Append("       [");
            encodedArray.Append("           [\"Allen\", \"S\"],[\"Omer\", \"P\"]");
            encodedArray.Append("       ],");
            encodedArray.Append("       [");
            encodedArray.Append("           [\"David E.\", \"R\"],[\"Richard X.\", \"P\"]");
            encodedArray.Append("       ]");
            encodedArray.Append("   ],");
            encodedArray.Append("   [");
            encodedArray.Append("       [");
            encodedArray.Append("           [\"Batman\", \"S\"],[\"Joker\", \"P\"]");
            encodedArray.Append("       ],");
            encodedArray.Append("       [");
            encodedArray.Append("           [\"Luke\", \"R\"],[\"Vader\", \"S\"]");
            encodedArray.Append("       ]");
            encodedArray.Append("   ]");
            encodedArray.Append("]");

            try
            {
                var tournament = TournamentFactory.Parse(encodedArray.ToString());
            }
            catch (Exception ex)
            {
                Assert.AreEqual(typeof(WrongNumberOfTournamentRounds), ex.GetType());
            }
        }