public void RunRecipe(Dictionary <string, object> arguments) { //check if the recipe needs a customization project this.Init(GetDTE()); if (NotSandboxSupported) { if (CurrentTestIsSandboxed()) { return; } } Microsoft.Practices.Common.ExecutionResult exResult = guidancePackage.Execute(recipeName, arguments); Assert.IsTrue(exResult == Microsoft.Practices.Common.ExecutionResult.Finish); if (GetDTE().Solution.IsDirty) { GetDTE().Solution.SaveAs(GetDTE().Solution.FullName); } GetDTE().Documents.CloseAll(EnvDTE.vsSaveChanges.vsSaveChangesNo); }