public IComponent CreateComponent(Type componentClass, string name)
		{
			CreatedComponent c = new CreatedComponent(componentClass.FullName, name);
			createdComponents.Add(c);
			
			object instance = componentClass.Assembly.CreateInstance(componentClass.FullName);
			Control control = instance as Control;
			return (IComponent)instance;
		}
        public IComponent CreateComponent(Type componentClass, string name)
        {
            CreatedComponent c = new CreatedComponent(componentClass.FullName, name);

            createdComponents.Add(c);

            object  instance = componentClass.Assembly.CreateInstance(componentClass.FullName);
            Control control  = instance as Control;

            return((IComponent)instance);
        }
		public void SetUpFixture()
		{
			WixDocument doc = new WixDocument();
			doc.LoadXml(GetWixXml());
			CreatedComponents.Clear();
			WixDialog wixDialog = doc.CreateWixDialog("WelcomeDialog", new MockTextFileReader());
			using (Form dialog = wixDialog.CreateDialog(this)) {
				formComponent = CreatedComponents[0];
				formName = dialog.Name;
			}
		}