diff --git a/MorseTest/MorseAudioAndLightConverters.cs b/MorseTest/MorseAudioAndLightConverters.cs index a042a6d..7640275 100644 --- a/MorseTest/MorseAudioAndLightConverters.cs +++ b/MorseTest/MorseAudioAndLightConverters.cs @@ -103,11 +103,11 @@ public void ConvertToLight() Assert.True(blinkValues.Count > 0); } [Fact] - public void ConvertToLightWithNull() + public async Task ConvertToLightWithNull() { - Assert.Throws(() => + await Assert.ThrowsAsync(async () => { - Morse.GetConverter() + await Morse.GetConverter() .ForLanguage(Language.English) .ToMorse(null) .ToLight() @@ -119,11 +119,11 @@ public void ConvertToLightWithNull() } [Fact] - public void ConvertToLightWithSmallerCharSpeed() + public async Task ConvertToLightWithSmallerCharSpeed() { - Assert.Throws(() => + await Assert.ThrowsAsync(async () => { - Morse.GetConverter() + await Morse.GetConverter() .ForLanguage(Language.English) .ToMorse("Hi") .ToLight() @@ -135,11 +135,11 @@ public void ConvertToLightWithSmallerCharSpeed() } [Fact] - public void ConvertToLightWithoutConversionNull() + public async Task ConvertToLightWithoutConversionNull() { - Assert.Throws(() => + await Assert.ThrowsAsync(async () => { - Morse.GetConverter() + await Morse.GetConverter() .ForLanguage(Language.English) .ToLight(null) .SetBlinkerOptions(25, 25) @@ -150,11 +150,11 @@ public void ConvertToLightWithoutConversionNull() } [Fact] - public void ConvertToLightWithoutConversionSmallerCharSpeed() + public async Task ConvertToLightWithoutConversionSmallerCharSpeed() { - Assert.Throws(() => + await Assert.ThrowsAsync(async () => { - Morse.GetConverter() + await Morse.GetConverter() .ForLanguage(Language.English) .ToLight(".... ..") .SetBlinkerOptions(20, 25)