Skip to content

Commit feaa2d1

Browse files
committed
added method in StringOperations.cs
1 parent 4746326 commit feaa2d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/TestableIO.System.IO.Abstractions.TestingHelpers/StringOperations.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ public StringOperations(bool caseSensitive)
3737
/// </summary>
3838
public bool Equals(string x, string y) => string.Equals(x, y, comparison);
3939
/// <summary>
40+
/// Determines whether the given strings are equal using the given comparison type.
41+
/// </summary>
42+
public bool Equals(string x, string y, StringComparison comparison) => string.Equals(x, y, comparison);
43+
/// <summary>
4044
/// Determines whether the given characters are equal.
4145
/// </summary>
4246
public bool Equals(char x, char y) => caseSensitive ? x == y : char.ToUpper(x) == char.ToUpper(y);

0 commit comments

Comments
 (0)