コード例 #1
0
 /// <summary>
 /// Adds the attribute filter
 /// </summary>
 /// <param name="settings">The settings.</param>
 /// <param name="attributeFilter">The filter.</param>
 /// <returns>The same <see cref="DotCoverAnalyseSettings"/> instance so that multiple calls can be chained.</returns>
 public static DotCoverAnalyseSettings WithAttributeFilter(this DotCoverAnalyseSettings settings, string attributeFilter)
 {
     if (settings == null)
     {
         throw new ArgumentNullException("settings");
     }
     settings.AttributeFilters.Add(attributeFilter);
     return(settings);
 }
コード例 #2
0
 /// <summary>
 /// Adds the scope.
 /// </summary>
 /// <param name="settings">The settings.</param>
 /// <param name="scope">The scope.</param>
 /// <returns>The same <see cref="DotCoverAnalyseSettings"/> instance so that multiple calls can be chained.</returns>
 public static DotCoverAnalyseSettings WithScope(this DotCoverAnalyseSettings settings, string scope)
 {
     if (settings == null)
     {
         throw new ArgumentNullException("settings");
     }
     settings.Scope.Add(scope);
     return(settings);
 }