public void SetUp() { _empty = new CodeFormatterCollection(); _csFormatter = new CSharpCodeFormatter(); _defaultFormatter = new PlainTextCodeFormatter(); _filled = new CodeFormatterCollection(); _filled.Register(_csFormatter, "cs"); _filled.Register(_defaultFormatter, "txt"); return; }
/// <summary> /// Build and initialises GeneralCodeFormatter. /// </summary> public GeneralCodeFormatter() { _formatters = new CodeFormatterCollection(); _formatters.Register(new CSharpCodeFormatter(), "cs"); _default = new PlainTextCodeFormatter(); return; }