コード例 #1
0
        public void ApplyScoreChangesForVotingRoundTest()
        {
            TestDb = DataBaseMock();
            TestDb.Setup(m => m.ChangeScore("ToAdd", 1, "1234")).Verifiable();
            TestDb.Setup(m => m.ChangeScore("ToSub", -1, "1234")).Verifiable();

            var knockoutTest = new KnockOutHandler(1234, TestDb.Object);

            knockoutTest.ApplyScoreChangesForVotingRound("ToAdd", "ToSub");

            Assert.DoesNotThrow(() => TestDb.Verify());
        }