public void Use_StringFormat_As_Default()
        {
            const string fmt              = "{0:N0} {1:N0}";
            const int    Million          = 1000 * 1000;
            string       millionFormatted = String.Format(fmt, Million, Million);

            OutputStringWriter.CsvOutput = false;
            Assert.AreEqual(millionFormatted, OutputStringWriter.Format(fmt, Million, Million));
        }
        public void Separate_Columns_By_Tabs_When_CSV_Output_Enabled()
        {
            const string fmt              = "{0:N0} {1:N0}";
            const int    Million          = 1000 * 1000;
            string       millionFormatted = String.Format(fmt, Million, Million);

            OutputStringWriter.CsvOutput = true;
            Assert.AreEqual("1000000\t1000000", OutputStringWriter.Format(fmt, Million, Million));
        }
 public void Throw_On_Null_Fmt()
 {
     Assert.ThrowsException <ArgumentNullException>(() => OutputStringWriter.Format(null, " "));
 }