Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 4
0
 public void TestString2()
 {
     ParseString parser = new ParseString();
     int accountNumer = parser.getAccountNumberFromString("123456789");
     Assert.AreEqual(123456789, accountNumer);
 }
Exemplo n.º 5
0
 public void TestString1()
 {
     ParseString parser = new ParseString();
     int accountNumer = parser.getAccountNumberFromString("111111111");
     Assert.AreEqual(111111111,accountNumer);
 }