We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9f77c6 commit ca5a7ebCopy full SHA for ca5a7eb
tests/LinkDotNet.StringBuilder.UnitTests/ValueStringBuilder.Replace.Tests.cs
@@ -58,7 +58,7 @@ public void ShouldReplaceAllText()
58
}
59
60
[Fact]
61
- public void ShouldReplacePart()
+ public void ShouldReplacePartThatIsShorter()
62
{
63
using var builder = new ValueStringBuilder("Hello World");
64
@@ -67,6 +67,16 @@ public void ShouldReplacePart()
67
builder.ToString().Should().Be("Ha World");
68
69
70
+ [Fact]
71
+ public void ShouldReplacePartThatIsLonger()
72
+ {
73
+ using var builder = new ValueStringBuilder("Hello World");
74
+
75
+ builder.Replace("Hello", "Hallöchen");
76
77
+ builder.ToString().Should().Be("Hallöchen World");
78
+ }
79
80
[Theory]
81
[InlineData("", "word")]
82
[InlineData("word", "")]
0 commit comments