public void Test_XmlSerialization()
        {
            GameDefinition gd1 = new GameDefinition();

            gd1.MinPlayers      = 2;
            gd1.MaxPlayers      = 2;
            gd1.BetsCountLimits = new int[] { 4, 4, 4, 4 };
            gd1.BetStructure    = new double[] { 1, 1, 2, 2 };

            StringBuilder sb = new StringBuilder();

            using (TextWriter tw = new StringWriter(sb))
            {
                gd1.XmlSerialize(tw);
            }

            Console.WriteLine(sb.ToString());

            GameDefinition gd2;

            using (TextReader textReader = new StringReader(sb.ToString()))
            {
                XmlSerializerExt.Deserialize(out gd2, textReader);
            }

            Assert.IsNotNull(gd2);
        }