コード例 #1
0
        public void Game_should_not_be_played_before_started()
        {
            var game = new GameDomainModel()
            {
                DateTimePlayed   = DateTime.Now.AddSeconds(-1),
                DateTimeStarting = DateTime.Now
            };

            Assert.Throws <Exception>(() => game.ErrorCheck());
        }
コード例 #2
0
        public void Game_should_not_have_score_if_not_played()
        {
            var game = new GameDomainModel()
            {
                FirstTeamScore  = 3,
                SecondTeamScore = 2
            };

            Assert.Throws <Exception>(() => game.ErrorCheck());
        }