@@ -594,7 +594,7 @@ public static void DoesNotContain(string substring, string value, string? messag
594
594
/// </exception>
595
595
public static void DoesNotContain ( string substring , string value , [ StringSyntax ( StringSyntaxAttribute . CompositeFormat ) ] string ? message ,
596
596
params object ? [ ] ? parameters )
597
- => DoesNotContain ( substring , value , message , StringComparison . Ordinal , parameters ) ;
597
+ => DoesNotContain ( substring , value , StringComparison . Ordinal , message , parameters ) ;
598
598
599
599
/// <summary>
600
600
/// Tests whether the specified string contains the specified substring
@@ -641,7 +641,7 @@ public static void DoesNotContain(string substring, string value, StringComparis
641
641
/// or <paramref name="value"/> does not contain <paramref name="substring"/>.
642
642
/// </exception>
643
643
public static void DoesNotContain ( string substring , string value , StringComparison comparisonType , string ? message )
644
- => DoesNotContain ( substring , value , message , comparisonType , string . Empty ) ;
644
+ => DoesNotContain ( substring , value , comparisonType , message , null ) ;
645
645
646
646
/// <summary>
647
647
/// Tests whether the specified string contains the specified substring
0 commit comments