Example #1
0
        public void MenuTest_ReturnValue()
        {
            FakeWriterClass writer      = new FakeWriterClass();
            FakeUserInput   userInput   = new FakeUserInput(writer);
            PlayersHand     playersHand = new PlayersHand(writer, userInput);
            ShowPlayers     showPlayers = new ShowPlayers(writer);
            Deal            deal        = new Deal();
            Menu            menu        = new Menu(writer, deal, playersHand, showPlayers, userInput);


            var mockList = new List <Player>();

            mockList.Add(new Player("Test", 0));
            mockList.Add(new Player("Test1", 1));
            mockList.Add(new Player("Test2", 2));
            var mockDeck = new List <KeyValuePair <string, string> >();

            mockDeck.Add(new KeyValuePair <string, string>("Key1", "Value1"));
            mockDeck.Add(new KeyValuePair <string, string>("Key2", "Value2"));
            mockDeck.Add(new KeyValuePair <string, string>("Key3", "Value3"));
            menu.GameMenu(mockList, mockDeck);
        }
Example #2
0
 public FakeUserInput(FakeWriterClass writer)
 {
 }