public void ToSting_1Row() { const string expectedString = "A,1"; var table1 = new Table(expectedString); var result = table1.ToString(); Assert.That(result, Is.EqualTo(expectedString)); }
/// <summary> /// Run the instance of application. /// </summary> public void Run() { try { if (_file1 == null && _file2 == null) GetFilesFromArgumets(); var table1 = new Table(FileHandler.ReadFile(_file1)); var table2 = new Table(FileHandler.ReadFile(_file2)); table2.MapValuesFrom(table1); FileHandler.WriteFile(_file2, table2.ToString()); } catch (ApplicationException ex) { Console.Write(ex.Message); return; } catch (Exception ex) { Console.WriteLine("Unexpected error occured: {0}", ex); return; } Console.Write("Values were successfully mapped from <{0}> to <{1}>", _file1, _file2); }