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