public void ProcessData_Create_New_File_With_Data() { //arrage var dataManager = new FileDataManager { OutputFile = AppDomain.CurrentDomain.BaseDirectory + @"..\..\..\files\resultTest.txt" }; //act dataManager.ProcessData(new DataStruct { From = NumericSystem.Decimal, To = NumericSystem.Hexadecimal, Value = "10", Result = "a" }); var first = System.IO.File.ReadAllLines(AppDomain.CurrentDomain.BaseDirectory + @"..\..\..\files\resultTest.txt")[0]; //assert Assert.Equal("10|10|16|a", first); }