public FormatterTestData(T value, SupportedFormat format, byte precision, string expectedOutput) { Value = value; Format = format; Precision = precision; ExpectedOutput = expectedOutput; PassedInBufferLength = expectedOutput.Length; }
// // Used to disable automatic generation of ParserTestData from FormatterTestData // public static bool IsParsingImplemented(this SupportedFormat f, Type t) { if (IntegerTypes.Contains(t) && (f.Symbol == 'N' || f.Symbol == 'n')) { return(false); } return(true); }
public static bool IsParsingImplemented <T>(this SupportedFormat f) => f.IsParsingImplemented(typeof(T));
// // Used to disable automatic generation of ParserTestData from FormatterTestData. Useful for bringing up new // formats as you can use this shutoff valve to bring up formatting without having to bring up parsing at the same time. // public static bool IsParsingImplemented(this SupportedFormat f, Type t) { return(true); }