コード例 #1
0
        public void ParsingInvalidSoundQualitiesThrowsException(string parameters)
        {
            var    parser = new SoundCommandParser();
            Action act    = () => parser.Parse(parameters);

            act.Should().Throw <Exception>();
        }
コード例 #2
0
        public void SoundQualitiesWithBigNumbersThrowsOverflowException(string parameters)
        {
            var    parser = new SoundCommandParser();
            Action act    = () => parser.Parse(parameters);

            act.Should().Throw <OverflowException>();
        }
コード例 #3
0
        public static void ParsingSoundQualitiesReturnsNullWhenInputIsNull()
        {
            var parser = new SoundCommandParser();

            parser.Parse(null).Should().BeNull();
        }
コード例 #4
0
        public void ParsingValidSoundQualities(string parameters)
        {
            var parser = new SoundCommandParser();

            parser.Parse(parameters).Should().BeOfType(typeof(SoundCommand));
        }