Hi @Lin ,
Please try the following code:
public void TestMethod1()
{
StringBuilder expected = new StringBuilder("боб ");
string line = "боб бобик бублик боб бибка. биба боба боб! боб?";
StringBuilder result = DoStrings.DoOne(line);
string result1 = result.ToString();
string expected1 = expected.ToString();
Assert.AreEqual(expected1, result1);
}
Assert.AreEqual method tests whether the strings are equal.
Sincerely,
Anna
*
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.