public void SolutionRuleSetsInformationProvider_Ctor_ArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => new SolutionRuleSetsInformationProvider(null, new Mock <ILogger>().Object, new MockFileSystem()));
 }
Example #2
0
 public void SolutionRuleSetsInformationProvider_Ctor_ArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => new SolutionRuleSetsInformationProvider(null));
 }
Example #3
0
 public void RuleSetSerializer_LoadRuleSet_ArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => this.testSubject.LoadRuleSet(null));
     Exceptions.Expect <ArgumentNullException>(() => this.testSubject.LoadRuleSet(""));
     Exceptions.Expect <ArgumentNullException>(() => this.testSubject.LoadRuleSet("\t\n"));
 }
Example #4
0
 public void SourceControlledFileSystem_ArgCheck()
 {
     Exceptions.Expect <ArgumentNullException>(() => new SourceControlledFileSystem(null, logger));
     Exceptions.Expect <ArgumentNullException>(() => new SourceControlledFileSystem(this.serviceProvider, null));
 }
 public void SolutionBindingInformationProvider_ArgCheck()
 {
     Exceptions.Expect <ArgumentNullException>(() => new SolutionBindingInformationProvider(null));
 }
Example #6
0
 public void IEnumerableExtensions_AllEqual_NullArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => IEnumerableExtensions.AllEqual(null, EqualityComparer <object> .Default));
     Exceptions.Expect <ArgumentNullException>(() => IEnumerableExtensions.AllEqual(new object[0], null));
 }
Example #7
0
 public void PackageCommandManager_Ctor_NullArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => new PackageCommandManager(null));
 }
 public void ProgressNotificationListener_ArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => new ProgressNotificationListener(null, new Mock <ILogger>().Object));
     Exceptions.Expect <ArgumentNullException>(() => new ProgressNotificationListener(new ConfigurableProgressEvents(), null));
 }
 public void RuleSetInspector_Ctor_ArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => new RuleSetInspector(null, new Mock <ILogger>().Object));
     Exceptions.Expect <ArgumentNullException>(() => new RuleSetInspector(new ConfigurableServiceProvider(), null, "dir"));
 }
 public void Language_ForProject_KnownLanguage_ArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => Language.ForProject(null));
 }
 public void SolutionBindingSerializer_ArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => new SolutionBindingSerializer(null));
     Exceptions.Expect <ArgumentNullException>(() => new SolutionBindingSerializer(this.serviceProvider, null));
 }
Example #12
0
 public void CreateConnectionInformation_ArgCheck()
 {
     Exceptions.Expect <ArgumentNullException>(() => BoundSonarQubeProjectExtensions.CreateConnectionInformation(null));
 }
Example #13
0
 public void ErrorListInfoBarController_ArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => new ErrorListInfoBarController(null));
 }
 public void ProgressNotificationListener_ArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => new ProgressNotificationListener(null, new ConfigurableProgressEvents()));
     Exceptions.Expect <ArgumentNullException>(() => new ProgressNotificationListener(new ConfigurableServiceProvider(), null));
 }
 public void RuleSetInspector_Ctor_ArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => new RuleSetInspector(null));
     Exceptions.Expect <ArgumentNullException>(() => new RuleSetInspector(null, "dir"));
 }
Example #16
0
 public void Mapper_ForProject_KnownLanguage_ArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => ProjectToLanguageMapper.GetLanguageForProject(null));
 }
 public void SonarQubeServiceWrapper_Ctor_ArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => new SonarQubeServiceWrapper(null));
 }
Example #18
0
 public void PackageCommandManager_Ctor_MissingMenuService_ThrowsException()
 {
     Exceptions.Expect <ArgumentException>(() => new PackageCommandManager(new ConfigurableServiceProvider(false)));
 }
Example #19
0
 public void BoundSolutionAnalyzer_ArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => new BoundSolutionAnalyzer(null));
 }
Example #20
0
 public void ProjectSystemHelper_ArgCheck()
 {
     Exceptions.Expect <ArgumentNullException>(() => new ProjectSystemHelper(null));
 }
        public void Mapper_GetLanguage_KnownLanguage_ArgChecks()
        {
#pragma warning disable CS0618 // Type or member is obsolete
            Exceptions.Expect <ArgumentNullException>(() => ProjectToLanguageMapper.GetLanguageForProject(null));
#pragma warning restore CS0618 // Type or member is obsolete
        }
Example #22
0
 public void ProjectSystemHelper_GetIVsHierarchy_ArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => this.testSubject.GetIVsHierarchy(null));
 }
 public void ConnectionInformation_Ctor_ArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => new ConnectionInformation(null));
     Exceptions.Expect <ArgumentNullException>(() => new ConnectionInformation(null, "user", "pwd".ToSecureString()));
 }
Example #24
0
 public void ProjectSystemHelper_ClearProjectProperty_ArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => testSubject.ClearProjectProperty(null, "prop"));
     Exceptions.Expect <ArgumentNullException>(() => testSubject.ClearProjectProperty(new ProjectMock("a.proj"), null));
     Exceptions.Expect <ArgumentNullException>(() => testSubject.ClearProjectProperty(new ProjectMock("a.proj"), string.Empty));
 }
 public void UriExtensions_NullArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => UriExtensions.EnsureTrailingSlash(null));
 }
Example #26
0
 public void ProjectSystemHelper_GetAggregateProjectKinds_ArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => this.testSubject.GetAggregateProjectKinds(null).FirstOrDefault());
 }
        public void ConflictsManager_Ctor()
        {
            Exceptions.Expect <ArgumentNullException>(() => new ConflictsManager(null, new Mock <ILogger>().Object));

            testSubject.Should().NotBeNull("Avoid code analysis warning when testSubject is unused");
        }
 public void RuleSetInspector_FixConflictingRules_ArgChecks()
 {
     Exceptions.Expect <ArgumentNullException>(() => this.testSubject.FixConflictingRules(null, "notnull", "notnull"));
     Exceptions.Expect <ArgumentNullException>(() => this.testSubject.FixConflictingRules("notnull", null, "notnull"));
 }
 public void QualityProfileBackgroundProcessor_ArgChecks()
 {
     // Act + Assert
     Exceptions.Expect <ArgumentNullException>(() =>
                                               new ErrorListInfoBarController.QualityProfileBackgroundProcessor(null));
 }
 public void SourceControlledFileSystem_ArgCheck()
 {
     Exceptions.Expect <ArgumentNullException>(() => new SourceControlledFileSystem(null));
 }