//[TestMethod] public void ShouldWriteToFile() { //Arrange var filePath = ConfigurationManager.AppSettings["ServiceLogPath"]; var fileName = "ShipStation_Logs"; var serviceMethod = "TestServiceMethod"; var logText = "Texgdf fsdsdsdf s fsdf"; //Act LogToFile.CreateLog(serviceMethod, logText, filePath, fileName); //Asert //Assert.IsTrue(File.Exists(filePath + @"\" + fileName + ".txt"), "File was not created."); }