public void TestDigit9() { string fileName = @"C:\Users\Olivier\Documents\Visual Studio 2013\Projects\ConsoleApplication1\TestFile9.txt"; ParseString parser = new ParseString(); string accountString = parser.getAccountNumberFromFile(fileName); Assert.AreEqual("999999999", accountString); }
static void Main(string[] args) { string InputfileName = @"C:\Users\Olivier\Documents\Visual Studio 2013\Projects\ConsoleApplication1\TestFile_Complete.txt"; string OutputFileName = @"C:\Users\Olivier\Documents\Visual Studio 2013\Projects\ConsoleApplication1\TranscoTestFileComplete.txt"; ParseString parser = new ParseString(); parser.writeAccountNumberFromFile(InputfileName, OutputFileName); //Console.WriteLine(accountString); //Console.ReadKey(); }
public void TestString2() { ParseString parser = new ParseString(); int accountNumer = parser.getAccountNumberFromString("123456789"); Assert.AreEqual(123456789, accountNumer); }
public void TestString1() { ParseString parser = new ParseString(); int accountNumer = parser.getAccountNumberFromString("111111111"); Assert.AreEqual(111111111,accountNumer); }