public void VerifyAssertions() { Assert.IsNotNull(_regex); var input = StringGenerator.GenerateString(); Assert.IsNotNullOrEmpty(input); Assert.True(input.Contains("\r")); Assert.True(input.Contains("\r\n")); Assert.True(input.Contains("\n")); Benchmark(); Assert.IsNotNull(_result); Assert.AreEqual(10, _result.Length); }
public void Benchmark() { var input = StringGenerator.GenerateString(); _result = _regex.Split(input); }
public void Benchmark() { var input = StringGenerator.GenerateString(); _result = input.Split(new[] { "\r\n", "\r", "\n" }, StringSplitOptions.None); }
public void Benchmark() { var input = StringGenerator.GenerateString(); _result = Regex.Split(input, "\r\n|\r|\n"); }