Exemplo n.º 1
0
 public void StartsWithNullThrows()
 {
     using (var buffer = new StringBuffer())
     {
         Action action = () => buffer.StartsWithOrdinal(null);
         action.ShouldThrow<ArgumentNullException>();
     }
 }
Exemplo n.º 2
0
 public void StartsWithOrdinal(string source, string value, bool expected)
 {
     using (var buffer = new StringBuffer(source))
     {
         buffer.StartsWithOrdinal(value).Should().Be(expected);
     }
 }