public void CreateExtensionReturnsAPackageItem() { // Arrange var provider = CreateInstalledProvider(); IPackage package = PackageUtility.CreatePackage("A", "1.0"); // Act IVsExtension extension = provider.CreateExtension(package); // Asssert Assert.IsInstanceOfType(extension, typeof(PackageItem)); Assert.AreEqual("A", extension.Name); Assert.AreEqual("_Uninstall", ((PackageItem)extension).CommandName); }
public void CreateExtensionReturnsAPackageItem() { // Arrange var provider = CreateUpdatesProvider(); IPackage package = PackageUtility.CreatePackage("A", "1.0"); // Act IVsExtension extension = provider.CreateExtension(package); // Asssert Assert.IsType(typeof(PackageItem), extension); Assert.Equal("A", extension.Name); Assert.Equal("_Update", ((PackageItem)extension).CommandName); }