private static ViolationInfo_Accessor CreateDummyViolationInfo()
        {
            ViolationInfo_Accessor violation = new ViolationInfo_Accessor()
            {
                File = @"c:\MyFile.cs", LineNumber = 666, Description = "My Description"
            };

            return(violation);
        }
Exemple #2
0
        public void MyTestInitialize()
        {
            // Creating a package wil lset the facoctory service provider.
            this.package = new StyleCopVSPackage();

            this.mockServiceProvider = new Mock <IServiceProvider>();
            this.violation           = CreateDummyViolationInfo();

            StyleCopVSPackage_Accessor.AttachShadow(this.package).Core.DisplayUI = false;
            this.taskUnderTest      = new ViolationTask_Accessor(this.package, violation);
            this.taskUnderTestShell = ErrorTask_Accessor.AttachShadow(this.taskUnderTest.Target);
        }
        public void MyTestInitialize()
        {
            // Creating a package wil lset the facoctory service provider.
            this.package = new StyleCopVSPackage();

            this.mockServiceProvider = new Mock<IServiceProvider>();
            this.violation = CreateDummyViolationInfo();

            StyleCopVSPackage_Accessor.AttachShadow(this.package).Core.DisplayUI = false;
            this.taskUnderTest = new ViolationTask_Accessor(this.package, violation);
            this.taskUnderTestShell = ErrorTask_Accessor.AttachShadow(this.taskUnderTest.Target);
        }
        private static ViolationInfo_Accessor CreateDummyViolationInfo()
        {
            ViolationInfo_Accessor violation = new ViolationInfo_Accessor() { File = @"c:\MyFile.cs", LineNumber = 666, Description = "My Description" };

            return violation;
        }