public void JsSplitWithStringAndLimitWorks() { Assert.AreDeepEqual(new[] { "a", "ax" }, StringPrototype.Split("abcaxbcabce", "bc", 2)); }
public void SplitWithCharAndLimitWorks() { Assert.AreDeepEqual(new[] { "a", "ca" }, StringPrototype.Split("abcabcabc", 'b', 2)); }
public void SplitWithStringWorks() { Assert.AreDeepEqual(new[] { "a", "ca", "ca", "c" }, StringPrototype.Split("abcabcabc", "b")); }
public void SplitWorks() { Assert.AreDeepEqual(new[] { "abcabcabc" }, StringPrototype.Split("abcabcabc")); }