Skip to content

Commit d2f44be

Browse files
Mohammad DehghanMohammad Dehghan
authored andcommitted
Add static field denoting default RuntimeConfig file name
1 parent 2491959 commit d2f44be

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

SG.CodeCoverage.Recorder/InjectedConstants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static class InjectedConstants
2121
/// </summary>
2222
public static readonly string RuntimeConfigFileName = "CodeCoverageRecorderRuntimeConfig.cfg";
2323
/// <summary>
24-
/// The path to store the RuntimeConfig file. If the path is null or empty,the file
24+
/// The path to store the RuntimeConfig file. If the path is null or empty, the file
2525
/// will be stored in the path that the Recorder assembly (this assembly) is loaded from.
2626
/// </summary>
2727
public static readonly string RuntimeConfigOutputPath = "";

SG.CodeCoverage/Instrumentation/InstrumentationOptions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ public InstrumentationOptions(
3939
ControllerPortNumber = controllerPortNumber;
4040
}
4141

42+
public static readonly string DefaultRuntimeConfigFileName = InjectedConstants.RuntimeConfigFileName;
43+
4244
/// <summary>
4345
/// Full path of the assemblies to instrument.
4446
/// </summary>
@@ -64,7 +66,7 @@ public InstrumentationOptions(
6466
/// Name of the Runtime Config file. Used to store listening port of the controller server.
6567
/// Default value: "CodeCoverageRecorderRuntimeConfig.cfg"
6668
/// </summary>
67-
public string RuntimeConfigFileName { get; set; } = InjectedConstants.RuntimeConfigFileName;
69+
public string RuntimeConfigFileName { get; set; } = DefaultRuntimeConfigFileName;
6870
/// <summary>
6971
/// Path to store Runtime Config file.
7072
/// If not specified or empty, the file will be stored in the same directory as where the recorder assembly

0 commit comments

Comments
 (0)