Exemplo n.º 1
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());
 }
Exemplo n.º 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());
        }