public void TestSmartCompareRegex()
{
string input = "jeff12.3test98lks-0-jeff-te,st.blah,5,000.2-";
string[] expected = {
"jeff",
"12.3",
"test",
"98",
"lks",
"-0",
"-jeff-te,st.blah,",
"5,000.2",
"-"
};
MatchCollection matches = StringHelper.SmartComparer.NumericSeparatorRegex.Matches(input);
Assert.AreEqual(expected.Length, matches.Count,
"Wrong number of regex matches: " + StringHelper.Join(matches));
for (int x = 0; x < expected.Length; x++)
{
Assert.AreEqual(expected[x], matches[x].Value, "Match " + x + " was incorrect.");
}
}