public void Package_SetSite() { // Create the package IVsPackage package = new CommentatorPackage() 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"); }
public CommentatorService(CommentatorPackage package) { this.package = package; }
public void Package_IsIVsPackage() { CommentatorPackage package = new CommentatorPackage(); Assert.IsNotNull(package as IVsPackage, "The object does not implement IVsPackage"); }
public void Package_CreateInstance() { CommentatorPackage package = new CommentatorPackage(); }