Exemplo n.º 1
0
 public void TrimEnd(string content, char[] trimChars, string expected)
 {
     // We want equivalence with built-in string behavior
     using (var buffer = new StringBuffer(content))
     {
         buffer.TrimEnd(trimChars);
         Assert.Equal(expected, buffer.ToString());
     }
 }