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