コード例 #1
0
        public void GetStringTranscription_IncorrectNumber_Exception(char number, Cases caseVal, Genders genderVal)
        {
            //arrange
            var dozens = new Dozens();

            //act
            TestDelegate result = () => dozens.GetStringTranscription(number, caseVal, genderVal);

            //assert
            Assert.Throws <InvalidDataException>(result);
        }
コード例 #2
0
        public void GetStringTranscription_CorrectNumber_CorrectString(char number, string resultTest, Cases caseVal, Genders genderVal)
        {
            //arrange
            var dozens = new Dozens();

            //act
            var result = dozens.GetStringTranscription(number, caseVal, genderVal);

            //assert
            Assert.That(result, Is.EqualTo(resultTest));
        }