public void TxtProcessor_ProcessFile_TxtFile_SuccessedProcessedFile() { TxtProcessor txtProcessor = new TxtProcessor(); string testFile = Path.Combine ( Directory.GetCurrentDirectory(), @"TestFiles\TxtProcessor_ProcessFile_TxtFile_SuccessedProcessedFile\TxtProcessor_ProcessFile_TxtFile_SuccessedProcessedFile.txt" ); tempFile = Path.Combine ( Directory.GetCurrentDirectory(), @"TestFiles\TxtProcessor_ProcessFile_TxtFile_SuccessedProcessedFile\Expected_TxtProcessor_ProcessFile_TxtFile_SuccessedProcessedFile_Temp.txt" ); string expectedFile = Path.Combine ( Directory.GetCurrentDirectory(), @"TestFiles\TxtProcessor_ProcessFile_TxtFile_SuccessedProcessedFile\Expected_TxtProcessor_ProcessFile_TxtFile_SuccessedProcessedFile.txt" ); File.Copy(testFile, tempFile, true); txtProcessor.ProcessFile(tempFile); var tempFileBytes = File.ReadAllBytes(tempFile); var expectedFileBytes = File.ReadAllBytes(expectedFile); Assert.AreEqual(expectedFileBytes, tempFileBytes); }