public void Test_ListCommonCharacters() { CopyBinariesToTestDirectory (); var starter = new ProcessStarter (); var text = "The quick brown fox jumped over the lazy dog"; starter.Start ("mono neuronic.exe read-text \"" + text + "\" --data neuronic-data"); starter.Start ("mono neuronic.exe list-common-characters --data neuronic-data"); Assert.IsFalse (starter.IsError); }
public void Test_Read() { CopyBinariesToTestDirectory (); var starter = new ProcessStarter (); var text = "The quick brown fox jumped over the lazy dog"; starter.Start ("mono neuronic.exe read-text \"" + text + "\" --data neuronic-data"); Assert.IsFalse (starter.IsError); // TODO: add more checks }
public void Test_ReadFile() { CopyBinariesToTestDirectory (); var starter = new ProcessStarter (); var text = "The quick brown fox jumped over the lazy dog"; var fileName = "textfile.txt"; var filePath = Path.GetFullPath (fileName); File.WriteAllText (filePath, text); starter.Start ("mono neuronic.exe read-text-file \"" + fileName + "\" --data neuronic-data"); Assert.IsFalse (starter.IsError); // TODO: add more checks }