public static void RunAndCheckCmdletParameters_ParamsAccepted(string codeSnippet) { RunAndGetTheException( codeSnippet, // 20130207 //"CmdletInvocationException", "AssertionFailureException", //"Parameters checked"); "An assertion failed."); }