From 2d556a572194520a9993cd8883aedf9af9c0938f Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Fri, 17 Jul 2020 15:00:40 +0200 Subject: [PATCH] [TouchRunner] Fix network logging to log if we're logging to a file even if EnableNetwork is false. (#79) The property should probably be renamed, but that's for another time. --- NUnitLite/TouchRunner/TouchOptions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NUnitLite/TouchRunner/TouchOptions.cs b/NUnitLite/TouchRunner/TouchOptions.cs index e1418c5..ab48dd7 100644 --- a/NUnitLite/TouchRunner/TouchOptions.cs +++ b/NUnitLite/TouchRunner/TouchOptions.cs @@ -132,7 +132,7 @@ public TouchOptions () public string LogFile { get; set; } public bool ShowUseNetworkLogger { - get { return (EnableNetwork && !String.IsNullOrWhiteSpace (HostName) && (HostPort > 0 || Transport == "FILE")); } + get { return (EnableNetwork && !String.IsNullOrWhiteSpace (HostName) && (HostPort > 0)) || Transport == "FILE"; } } public bool SortNames { get; set; }