[Test] public void realTime_LogFilePath() { var tmpFolder = "logFolder".tempDir(); TM_StartUp.Current.trackingApplication().realTime_LogFilePath().assert_Null(); new TM_Server().RealTime_Logs = false; new Tracking_Application(tmpFolder).RealTime_LogFilePath.assert_Null(); PublicDI.log.LogRedirectionTarget.assert_Instance_Of <Logger_DiagnosticsDebug>(); new TM_Server().RealTime_Logs = true; var tracking = new Tracking_Application(tmpFolder); tracking.RealTime_LogFilePath.assert_Not_Null(); PublicDI.log.LogRedirectionTarget.assert_Instance_Of <Logger_File_Append>(); var realTime_LogFilePath = tracking.realTime_LogFilePath(); realTime_LogFilePath.assert_File_Not_Exists(); var testMessage = "Info Test".add_5_RandomLetters().info(); realTime_LogFilePath.fileContents().assert_Contains(testMessage); Files.delete_Folder_Recursively(tmpFolder).assert_True(); new TM_Server().RealTime_Logs = false; TM_StartUp.Current.trackingApplication().realTime_LogFilePath().assert_Null(); }