コード例 #1
0
 public static CoverletSettings SetFormat(this CoverletSettings toolSettings, IEnumerable <CoverletOutputFormat> format)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.FormatInternal = format.ToList();
     return(toolSettings);
 }
コード例 #2
0
 public static CoverletSettings SetThreshold(this CoverletSettings toolSettings, int?threshold)
 {
     toolSettings           = toolSettings.NewInstance();
     toolSettings.Threshold = threshold;
     return(toolSettings);
 }
コード例 #3
0
 public static CoverletSettings AddTargetArgs(this CoverletSettings toolSettings, IEnumerable <string> targetArgs)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TargetArgsInternal.AddRange(targetArgs);
     return(toolSettings);
 }
コード例 #4
0
 public static CoverletSettings SetOutput(this CoverletSettings toolSettings, string output)
 {
     toolSettings        = toolSettings.NewInstance();
     toolSettings.Output = output;
     return(toolSettings);
 }
コード例 #5
0
 public static CoverletSettings SetTarget(this CoverletSettings toolSettings, string target)
 {
     toolSettings        = toolSettings.NewInstance();
     toolSettings.Target = target;
     return(toolSettings);
 }
コード例 #6
0
 public static CoverletSettings SetTargetArgs(this CoverletSettings toolSettings, IEnumerable <string> targetArgs)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TargetArgsInternal = targetArgs.ToList();
     return(toolSettings);
 }
コード例 #7
0
 public static CoverletSettings AddInclude(this CoverletSettings toolSettings, IEnumerable <string> include)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.IncludeInternal.AddRange(include);
     return(toolSettings);
 }
コード例 #8
0
 public static CoverletSettings SetAssembly(this CoverletSettings toolSettings, string assembly)
 {
     toolSettings          = toolSettings.NewInstance();
     toolSettings.Assembly = assembly;
     return(toolSettings);
 }
コード例 #9
0
 public static CoverletSettings SetInclude(this CoverletSettings toolSettings, IEnumerable <string> include)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.IncludeInternal = include.ToList();
     return(toolSettings);
 }
コード例 #10
0
 public static CoverletSettings AddInclude(this CoverletSettings toolSettings, params string[] include)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.IncludeInternal.AddRange(include);
     return(toolSettings);
 }
コード例 #11
0
 public static CoverletSettings SetInclude(this CoverletSettings toolSettings, params string[] include)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.IncludeInternal = include.ToList();
     return(toolSettings);
 }
コード例 #12
0
 public static CoverletSettings ResetThresholdType(this CoverletSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ThresholdType = null;
     return(toolSettings);
 }
コード例 #13
0
 public static CoverletSettings SetThresholdType(this CoverletSettings toolSettings, CoverletThresholdType thresholdType)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ThresholdType = thresholdType;
     return(toolSettings);
 }
コード例 #14
0
 public static CoverletSettings SetMergeWith(this CoverletSettings toolSettings, string mergeWith)
 {
     toolSettings           = toolSettings.NewInstance();
     toolSettings.MergeWith = mergeWith;
     return(toolSettings);
 }
コード例 #15
0
 public static CoverletSettings SetExcludeByFile(this CoverletSettings toolSettings, IEnumerable <string> excludeByFile)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ExcludeByFileInternal = excludeByFile.ToList();
     return(toolSettings);
 }
コード例 #16
0
 public static CoverletSettings ResetMergeWith(this CoverletSettings toolSettings)
 {
     toolSettings           = toolSettings.NewInstance();
     toolSettings.MergeWith = null;
     return(toolSettings);
 }
コード例 #17
0
 public static CoverletSettings AddExcludeByFile(this CoverletSettings toolSettings, IEnumerable <string> excludeByFile)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ExcludeByFileInternal.AddRange(excludeByFile);
     return(toolSettings);
 }
コード例 #18
0
 public static CoverletSettings ResetAssembly(this CoverletSettings toolSettings)
 {
     toolSettings          = toolSettings.NewInstance();
     toolSettings.Assembly = null;
     return(toolSettings);
 }
コード例 #19
0
 public static CoverletSettings ClearExcludeByFile(this CoverletSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ExcludeByFileInternal.Clear();
     return(toolSettings);
 }
コード例 #20
0
 public static CoverletSettings SetTargetArgs(this CoverletSettings toolSettings, params string[] targetArgs)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TargetArgsInternal = targetArgs.ToList();
     return(toolSettings);
 }
コード例 #21
0
 public static CoverletSettings SetVersion(this CoverletSettings toolSettings, bool?version)
 {
     toolSettings         = toolSettings.NewInstance();
     toolSettings.Version = version;
     return(toolSettings);
 }
コード例 #22
0
 public static CoverletSettings AddTargetArgs(this CoverletSettings toolSettings, params string[] targetArgs)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TargetArgsInternal.AddRange(targetArgs);
     return(toolSettings);
 }
コード例 #23
0
 public static CoverletSettings ResetVersion(this CoverletSettings toolSettings)
 {
     toolSettings         = toolSettings.NewInstance();
     toolSettings.Version = null;
     return(toolSettings);
 }
コード例 #24
0
 public static CoverletSettings ClearTargetArgs(this CoverletSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.TargetArgsInternal.Clear();
     return(toolSettings);
 }
コード例 #25
0
 public static CoverletSettings DisableVersion(this CoverletSettings toolSettings)
 {
     toolSettings         = toolSettings.NewInstance();
     toolSettings.Version = false;
     return(toolSettings);
 }
コード例 #26
0
 public static CoverletSettings ResetOutput(this CoverletSettings toolSettings)
 {
     toolSettings        = toolSettings.NewInstance();
     toolSettings.Output = null;
     return(toolSettings);
 }
コード例 #27
0
 public static CoverletSettings ToggleVersion(this CoverletSettings toolSettings)
 {
     toolSettings         = toolSettings.NewInstance();
     toolSettings.Version = !toolSettings.Version;
     return(toolSettings);
 }
コード例 #28
0
 public static CoverletSettings AddFormat(this CoverletSettings toolSettings, IEnumerable <CoverletOutputFormat> format)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.FormatInternal.AddRange(format);
     return(toolSettings);
 }
コード例 #29
0
 public static CoverletSettings ClearFormat(this CoverletSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.FormatInternal.Clear();
     return(toolSettings);
 }