public void CreateInstance() { PythonProjectPackage package = new PythonProjectPackage(); MockILocalRegistry3.LocalRegistryRoot = "Software\\Microsoft\\VisualStudio\\9.0Exp"; ((IServiceContainer)package).AddService(typeof(SLocalRegistry), (ILocalRegistry3)MockILocalRegistry3.GetInstance()); Assert.IsNotNull(new PythonProjectFactory(package)); }
public PythonProjectNode(PythonProjectPackage pkg) { this.package = pkg; this.CanFileNodesHaveChilds = true; this.OleServiceProvider.AddService(typeof(VSLangProj.VSProject), new OleServiceProvider.ServiceCreatorCallback(this.CreateServices), false); this.SupportsProjectDesigner = true; //Store the number of images in ProjectNode so we know the offset of the python icons. ImageOffset = this.ImageHandler.ImageList.Images.Count; foreach (Image img in PythonImageList.Images) { this.ImageHandler.AddImage(img); } InitializeCATIDs(); }
public EditorFactory(PythonProjectPackage package) { this.package = package; }
/// <summary> /// Constructor for PythonProjectFactory /// </summary> /// <param name="package">the package who created this object</param> public PythonProjectFactory(PythonProjectPackage package) : base(package) { }
public void CreateInstance() { PythonProjectPackage package = new PythonProjectPackage(); Assert.IsNotNull(package); }