public void TestMakerSplayerinDragonQueue() { //expected string DragonSPlayer = "<splayer-dragon>"; string colorxml = "<color>blue</color>"; DragonSPlayer += colorxml; // (0, 1, 2, 3, 4, 5, 6, 7), id 1 // (0, 4, 1, 5, 2, 6, 3, 7), id 9 string tiles = "<tile><connect><n>0</n><n>1</n></connect><connect><n>2</n><n>3</n></connect><connect><n>4</n><n>5</n></connect><connect><n>6</n><n>7</n></connect></tile><tile><connect><n>0</n><n>4</n></connect><connect><n>1</n><n>5</n></connect><connect><n>2</n><n>6</n></connect><connect><n>3</n><n>7</n></connect></tile>"; string setoftiles = "<set>" + tiles + "</set>"; DragonSPlayer += setoftiles; DragonSPlayer += "</splayer-dragon>"; XDocument expected_doc = XDocument.Parse(DragonSPlayer); RandomPlayer jim = new RandomPlayer("jim"); Player randBlue = new Player(jim, "blue"); randBlue.AddTiletoHand(new Tile(1, new List <int> { 0, 1, 2, 3, 4, 5, 6, 7 })); randBlue.AddTiletoHand(new Tile(9, new List <int> { 0, 4, 1, 5, 2, 6, 3, 7 })); Assert.IsTrue(XNode.DeepEquals(expected_doc.FirstNode, maker.DragonSPlayerXML(randBlue))); }