public MockedCodeExplorer ConfigureSaveDialog(string path, DialogResult result) { SaveDialog.Setup(o => o.FileName).Returns(path); SaveDialog.Setup(o => o.ShowDialog()).Returns(result); return(this); }