public void VsAnalysisHelperConstructorTest()
 {
     IServiceProvider serviceProvider = new MockServiceProvider();
     StyleCopCore core = new StyleCopCore();
     FileAnalysisHelper_Accessor specificTarget = new FileAnalysisHelper_Accessor(serviceProvider, core);
     AnalysisHelper_Accessor target = FileAnalysisHelper_Accessor.AttachShadow(specificTarget.Target);
     Assert.IsNotNull(target, "Unable to instantiate the AnalysisHelper class");
     Assert.IsNotNull(target.Core, "AnalysisHelper.Core was null");
 }
示例#2
0
        public void VsAnalysisHelperConstructorTest()
        {
            IServiceProvider            serviceProvider = new MockServiceProvider();
            StyleCopCore                core            = new StyleCopCore();
            FileAnalysisHelper_Accessor specificTarget  = new FileAnalysisHelper_Accessor(serviceProvider, core);
            AnalysisHelper_Accessor     target          = FileAnalysisHelper_Accessor.AttachShadow(specificTarget.Target);

            Assert.IsNotNull(target, "Unable to instantiate the AnalysisHelper class");
            Assert.IsNotNull(target.Core, "AnalysisHelper.Core was null");
        }