示例#1
0
        public void GetFileResultTest()
        {
            // Arrage
            Calculator calc = new Calculator();

            // Act
            calc.CalculateFile(Directory.GetCurrentDirectory() + "\\TestFile.txt", Directory.GetCurrentDirectory() + "\\TestFileResult.txt");

            string[] actual   = File.ReadAllLines(Directory.GetCurrentDirectory() + "\\TestFileResult.txt");
            string[] expected = File.ReadAllLines(Directory.GetCurrentDirectory() + "\\RightFileResult.txt");

            //Assert
            CollectionAssert.AreEqual(expected, actual);
        }