public void ParsingInvalidSoundQualitiesThrowsException(string parameters) { var parser = new SoundCommandParser(); Action act = () => parser.Parse(parameters); act.Should().Throw <Exception>(); }
public void SoundQualitiesWithBigNumbersThrowsOverflowException(string parameters) { var parser = new SoundCommandParser(); Action act = () => parser.Parse(parameters); act.Should().Throw <OverflowException>(); }
public static void ParsingSoundQualitiesReturnsNullWhenInputIsNull() { var parser = new SoundCommandParser(); parser.Parse(null).Should().BeNull(); }
public void ParsingValidSoundQualities(string parameters) { var parser = new SoundCommandParser(); parser.Parse(parameters).Should().BeOfType(typeof(SoundCommand)); }