public void TestFormatRegex(string input, Type expected) { Processors.Format format = new Processors.Format(); format.MatchRegexIndex(input); Type result = format.Processor.DynamicParameter.GetType(); Assert.AreEqual(expected, result); }