/// <summary> /// Creates the stub for the specified code member method. This method actually /// implements the method body for the test method. /// </summary> /// <param name="codeMemberMethod">The code member method.</param> public static void CreateTestStubForMethod(CodeMemberMethod codeMemberMethod) { // Clean the member name and append 'Test' to the end of it var origName = Utility.ScrubPathOfIllegalCharacters(codeMemberMethod.Name); // Standard test methods accept no parameters and return void. codeMemberMethod .SetName(origName + "Test") .WithReturnType(typeof(void)) .ClearParameters() .AddMethodAttribute("Test") .AddComment("TODO: Implement unit test for " + origName); }