예제 #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);
 }
예제 #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();
        }
예제 #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();
 }
예제 #4
0
 public void TestString2()
 {
     ParseString parser = new ParseString();
     int accountNumer = parser.getAccountNumberFromString("123456789");
     Assert.AreEqual(123456789, accountNumer);
 }
예제 #5
0
 public void TestString1()
 {
     ParseString parser = new ParseString();
     int accountNumer = parser.getAccountNumberFromString("111111111");
     Assert.AreEqual(111111111,accountNumer);
 }