public void CreatingDocumentWithInvalidPathThrows(string path) { CmisHelper.RegisterTempObject(path); Assert.Throws<CmdletInvocationException>(delegate { Shell.Execute(NewCmisDocumentCmd + path); }); Assert.That(path, CmisHelper.DoesNotExist); }