public void SplitIncludeDelimiters_Matches_Core_Split_With_Same_Option() { string input = "123xx456yy789"; string[] delimiters = { "xx", "yy" }; string[] expected = { "123", "xx", "456", "yy", "789" }; var coreSplit = RegexUtility.Split(input, delimiters, splitOptions: SplitOptions.IncludeDelimiters); var result = RegexUtility.SplitIncludeDelimiters(input, delimiters); result.ShouldBe(coreSplit); result.ShouldBe(expected); }