|
|
|
@ -187,6 +187,14 @@ namespace System |
|
|
|
"Https://abp.io".RemovePreFix(StringComparison.OrdinalIgnoreCase, "https://").ShouldBe("abp.io"); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
public void ReplaceFirst_Tests() |
|
|
|
{ |
|
|
|
"Test string".ReplaceFirst("s", "X").ShouldBe("TeXt string"); |
|
|
|
"Test test test".ReplaceFirst("test", "XX").ShouldBe("Test XX test"); |
|
|
|
"Test test test".ReplaceFirst("test", "XX", StringComparison.OrdinalIgnoreCase).ShouldBe("XX test test"); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
public void ToEnum_Test() |
|
|
|
{ |
|
|
|
|