Example #1
0
    public void Test1()
    {
        List <int> expected = new List <int> {
            4, 1, 2, 5
        };
        List <int> actual = digit.getNumbers(filePath1);

        Assert.AreEqual(expected, actual);
    }
Example #2
0
        static void Main(string[] args)
        {
            string filePath =
                   System.IO.Path.GetFullPath(@"..\..\..\files\file1.txt");

            DigitUtils digit = new DigitUtils();

            var list = digit.getNumbers(filePath);

            foreach (var num in list)
            {
                Console.Write($"{num}\t");
            }

            Console.Read();
        }