示例#1
0
 public ExplicitThisAnalyzerTests()
 {
     OptionsHelper.GetPropertiesImplementation = (analyzerOptions) =>
     {
         PropertyBag properties = CreatePolicyThatDisablesAllAnalysis();
         properties.SetProperty(OptionsHelper.BuildDefaultEnabledProperty(ExplicitThisAnalyzer.AnalyzerName), true);
         return(properties);
     };
 }
示例#2
0
 public PlaceImportsOutsideNamespaceTests()
 {
     OptionsHelper.GetPropertiesImplementation = (analyzerOptions) =>
     {
         PropertyBag properties = CreatePolicyThatDisablesAllAnalysis();
         properties.SetProperty(OptionsHelper.BuildDefaultEnabledProperty(PlaceImportsOutsideNamespaceAnalyzer.AnalyzerName), true);
         return(properties);
     };
 }
示例#3
0
        protected PropertyBag CreatePolicyThatDisablesAllAnalysis()
        {
            PropertyBag propertyBag = OptionsHelper.BuildDefaultPropertyBag();

            foreach (string analyzerName in OptionsHelper.AllAnalyzerNames)
            {
                propertyBag.SetProperty(OptionsHelper.BuildDefaultEnabledProperty(analyzerName), false);
            }
            return(propertyBag);
        }