public void pickWinnerTest()
        {
            Sweepstakes sweepstakes = new Sweepstakes("Test Sweepstake");

            List<Contestant> expected = new List<Contestant>();

            List<Contestant> actual = sweepstakes.contestantList;

            //generates Random Number need to find work-around
        }
        public void PrintContestantInfoTest()
        {
            Sweepstakes sweepstakes = new Sweepstakes("Test Sweepstake");

            Contestant TestContestant = new Contestant("TestyMcgee", 100, "TestTown");
            string expected = String.Format("Name: {0}, Age: {1} ,HomeTown: {2}", TestContestant.name, TestContestant.age, TestContestant.homeTown);

            sweepstakes.PrintContestantInfo(TestContestant);
            string actual = sweepstakes.ContestantInformation;

            Assert.AreEqual(expected, actual);

        }
        public void RegisterContestantTest()
        {
            Sweepstakes sweepstakes = new Sweepstakes("Test Sweepstake");

            Contestant TestContestant = new Contestant("TestyMcgee", 100, "TestTown");
            sweepstakes.RegisterContestant(TestContestant);
            List<Contestant> actual = sweepstakes.contestantList;

            List<Contestant> expected = new List<Contestant>();
            expected.Add(TestContestant);

            Assert.IsTrue(expected.SequenceEqual(actual));
        }
        public void InsertSweepstakesTest()
        {
            SweepstakeQueManager queManager = new SweepstakeQueManager();
            Sweepstakes sweep = new Sweepstakes("testSweep");
            Queue<Sweepstakes> testQueActual = new Queue<Sweepstakes>();
            Queue<Sweepstakes> testQueExpected = new Queue<Sweepstakes>();

            testQueExpected.Enqueue(sweep);

            queManager.InsertSweepstakes(sweep);

            testQueActual = queManager.sweepstakesQue;

            Queue<Sweepstakes> actual = testQueActual;
            Queue<Sweepstakes> expected = testQueExpected;

            Assert.IsTrue(expected.SequenceEqual(actual));

        }
        public void GetNextSweepstakesWinnerTest()
        {
            SweepstakeQueManager queManager = new SweepstakeQueManager();
            Sweepstakes sweep = new Sweepstakes("testSweep");

            Queue<Sweepstakes> ControlQue = new Queue<Sweepstakes>();
            ControlQue.Enqueue(sweep);
            ControlQue.Dequeue();
            Queue<Sweepstakes> actualQue = queManager.sweepstakesQue;
            queManager.sweepstakesQue.Enqueue(sweep);
            queManager.GetNextSweepstakesWinner();



            Queue<Sweepstakes> expected = ControlQue;
            Queue<Sweepstakes> actual = actualQue;

            Assert.IsTrue(expected.SequenceEqual(actual));


        }
 public void InsertSweepstakes(Sweepstakes sweepstake)
  {
      sweepstakesStack.Push(sweepstake);
  }
 public void InsertSweepstakes(Sweepstakes sweepstake)
 {
     sweepstakesQue.Enqueue(sweepstake);
 }