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 MyTestCleanup()
 {
     this.taskUnderTest = null;
     this.taskUnderTestShell = null;
     this.taskUnderTest = null;
 }