Esempio n. 1
0
    public void IncorrectFileNameTest()
    {
        NameSorter nameSorter = new NameSorter();

        nameSorter.FileName = "xtx.txt";
        Assert.Throws <FileNotFoundException>(() => nameSorter.NameSorterProcessor());
    }
Esempio n. 2
0
        static void Main(string[] args)
        {
            NameSorter nameSorter = new NameSorter();

            Console.WriteLine("Enter File Name: ");
            nameSorter.FileName = Console.ReadLine();
            nameSorter.NameSorterProcessor();
        }