public void TestClass_ProbabilityStrategy()
 {
     var adapter = new ProbabilityStrategyTestContract(new ProbabilityStrategy(GameRepository).SetGameCount(4));
     Assert.IsTrue(adapter.ExpectThrowIfFirstTeamIsNotValid());
     Assert.IsTrue(adapter.ExpectThrowIfSecondTeamIsNotValid());
     Assert.AreEqual(0.5f, adapter.ShouldReturn50ForEqualTeams());
 }
Beispiel #2
0
        public void TestClass_ProbabilityStrategy()
        {
            var adapter = new ProbabilityStrategyTestContract(new ProbabilityStrategy(GameRepository).SetGameCount(4));

            Assert.IsTrue(adapter.ExpectThrowIfFirstTeamIsNotValid());
            Assert.IsTrue(adapter.ExpectThrowIfSecondTeamIsNotValid());
            Assert.AreEqual(0.5f, adapter.ShouldReturn50ForEqualTeams());
        }