public static void OpenFile(FilePath file) { Session.GlobalInvoke("MonoDevelop.Ide.IdeApp.Workbench.OpenDocument", (FilePath)file, true); Assert.AreEqual(file, Ide.GetActiveDocumentFilename()); }