コード例 #1
0
        public void ShouldNotBeAbleToSendStringValuesInIssuedBallots()
        {
            var voting = new Voting();

            voting.SetIssuedBallots("abba");
            voting.SendReport();
            Assert.IsTrue(voting.IsErrorMessagePresent());
        }
コード例 #2
0
        public void ShouldNotBeAbleToSendNegativeValuesInInvalidVotes()
        {
            var voting = new Voting();

            voting.SetInvalidVotes("-10");
            voting.SendReport();
            Assert.IsTrue(voting.IsErrorMessagePresent());
        }