Пример #1
0
 public VsErcPackage()
 {
     instance = this;
     this.vsHelper = new VsHelper(this);
     this.vsErcLogger = new VsErcLogger(this);
     this.lua = new Lua();
     this.vsErcBindings = new VsErcBindings(this, VsErcBindings.DefaultErcFilePath);
 }
Пример #2
0
        public void SetSite()
        {
            // Create the package
            IVsPackage package = new VsErcPackage() as IVsPackage;
            Assert.IsNotNull(package, "The object does not implement IVsPackage");

            // Create a basic service provider
            OleServiceProvider serviceProvider = OleServiceProvider.CreateOleServiceProviderWithBasicServices();

            // Site the package
            Assert.AreEqual(0, package.SetSite(serviceProvider), "SetSite did not return S_OK");

            // Unsite the package
            Assert.AreEqual(0, package.SetSite(null), "SetSite(null) did not return S_OK");
        }
Пример #3
0
 public VsErcLogger(VsErcPackage package)
 {
     this.package = package;
 }
Пример #4
0
 public void IsIVsPackage()
 {
     VsErcPackage package = new VsErcPackage();
     Assert.IsNotNull(package as IVsPackage, "The object does not implement IVsPackage");
 }
Пример #5
0
 public void CreateInstance()
 {
     VsErcPackage package = new VsErcPackage();
 }