Exemplo n.º 1
0
        public void ParsingInvalidSoundQualitiesThrowsException(string parameters)
        {
            var    parser = new SoundCommandParser();
            Action act    = () => parser.Parse(parameters);

            act.Should().Throw <Exception>();
        }
Exemplo n.º 2
0
        public void SoundQualitiesWithBigNumbersThrowsOverflowException(string parameters)
        {
            var    parser = new SoundCommandParser();
            Action act    = () => parser.Parse(parameters);

            act.Should().Throw <OverflowException>();
        }
Exemplo n.º 3
0
        public static void ParsingSoundQualitiesReturnsNullWhenInputIsNull()
        {
            var parser = new SoundCommandParser();

            parser.Parse(null).Should().BeNull();
        }
Exemplo n.º 4
0
        public void ParsingValidSoundQualities(string parameters)
        {
            var parser = new SoundCommandParser();

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