public void TestGetAnswer()
 {
     Bee test = new Bee();
     AddQuestions(test, 2);
     AddContestants(test, 2);
     test.InitializeBee();
     Assert.AreSame("Austin", test.GetAnswer());
 }
 public void TestAskQuestion()
 {
     Bee test = new Bee();
     AddQuestions(test, 2);
     AddContestants(test, 2);
     test.InitializeBee();
     Assert.AreSame("Texas", test.AskQuestion());
 }
 public void TestEliminateNone()
 {
     Bee test = new Bee();
     AddQuestions(test, 2);
     AddContestants(test, 2);
     test.InitializeBee();
     test.RecordAnswer(false);
     test.RecordAnswer(false);
     Assert.IsTrue(test.CurrentContestant().current_answer_correct == true);
 }
 public void TestEliminateOne()
 {
     Bee test = new Bee();
     AddQuestions(test, 3);
     AddContestants(test, 3);
     test.InitializeBee();
     test.RecordAnswer(false);
     test.RecordAnswer(true);
     test.RecordAnswer(true);
     Assert.AreEqual(2, test.ContestantList.Count());
 }
 public void TestNextContestant()
 {
     Bee test = new Bee();
     AddQuestions(test, 2);
     AddContestants(test, 2);
     test.InitializeBee();
     test.RecordAnswer(true);
     test.RecordAnswer(true);
     Assert.AreSame(names[0], test.CurrentContestant().name);
 }
 public void TestWinner()
 {
     Bee test = new Bee();
     AddQuestions(test, 6);
     AddContestants(test, 3);
     test.InitializeBee();
     test.RecordAnswer(true);
     test.RecordAnswer(false);
     Assert.IsTrue(test.RecordAnswer(false) == true);
 }
 public void TestTooFewQuestionsNextRound()
 {
     Bee test = new Bee();
     AddQuestions(test, 3);
     AddContestants(test, 3);
     test.InitializeBee();
     test.RecordAnswer(false);
     test.RecordAnswer(true);
     test.RecordAnswer(true);
     Assert.IsTrue(test.SufficientQuestions() == false);
 }
 public void TestTooFewQuestions()
 {
     Bee test = new Bee();
     AddQuestions(test, 1);
     AddContestants(test, 2);
     Assert.AreEqual(2, test.InitializeBee());
 }
 public void TestSkipEliminatedContest()
 {
     Bee test = new Bee();
     AddQuestions(test, 6);
     AddContestants(test, 3);
     test.InitializeBee();
     test.RecordAnswer(false);
     test.RecordAnswer(true);
     test.RecordAnswer(true);
     string con_name = test.CurrentContestant().name;
     Assert.AreSame(names[1], con_name);
 }