@@ -28,19 +28,21 @@ public class StringColorExtensionTests {
2828 yield return ( ) => ( "#5BCEFA" , "91, 206, 250" ) ;
2929 }
3030
31+ // ReSharper disable StringLiteralTypo
3132 public static IEnumerable < Func < string ? > > InvalidDataSources ( ) {
3233 yield return ( ) => null ;
33- yield return ( ) => ( "" ) ;
34- yield return ( ) => ( " " ) ;
35- yield return ( ) => ( "#" ) ;
36- yield return ( ) => ( "#F" ) ;
37- yield return ( ) => ( "#FF" ) ;
38- yield return ( ) => ( "#FFFF" ) ;
39- yield return ( ) => ( "#FFFFF" ) ;
40- yield return ( ) => ( "#FFFFFFF" ) ;
41- yield return ( ) => ( "#GG0000" ) ;
42- yield return ( ) => ( "GGGGGG" ) ;
34+ yield return ( ) => "" ;
35+ yield return ( ) => " " ;
36+ yield return ( ) => "#" ;
37+ yield return ( ) => "#F" ;
38+ yield return ( ) => "#FF" ;
39+ yield return ( ) => "#FFFF" ;
40+ yield return ( ) => "#FFFFF" ;
41+ yield return ( ) => "#FFFFFFF" ;
42+ yield return ( ) => "#GG0000" ;
43+ yield return ( ) => "GGGGGG" ;
4344 }
45+ // ReSharper enable StringLiteralTypo
4446
4547 [ Test ]
4648 [ MethodDataSource < StringColorExtensionTests > ( nameof ( ValidDataSources ) ) ]
@@ -54,12 +56,12 @@ public async Task ConvertToRgbValues_ValidHexColors_ReturnsRgbString(string inpu
5456
5557 [ Test ]
5658 [ MethodDataSource < StringColorExtensionTests > ( nameof ( InvalidDataSources ) ) ]
57- public async Task ConvertToRgbValues_InvalidInput_ThrowsArgumentException ( string ? input ) {
59+ public Task ConvertToRgbValues_InvalidInput_ThrowsArgumentException ( string ? input ) {
5860 // Act & Assert
5961 Assert . Throws < ArgumentException > ( ( ) => input . ConvertToRgbValues ( ) ) ;
62+ return Task . CompletedTask ;
6063 }
61-
62-
64+
6365 [ Test ]
6466 [ MethodDataSource < StringColorExtensionTests > ( nameof ( ValidDataSources ) ) ]
6567 public async Task TryConvertToRgbValues_ValidHexColors_ReturnsTrue ( string input , string expected ) {
0 commit comments