private static void CreateStubForCodeMemberMethod(CodeMemberMethod codeMemberMethod)
{
// Clean the member name and append 'Test' to the end of it
codeMemberMethod.Name = Utility.ScrubPathOfIllegalCharacters(codeMemberMethod.Name);
codeMemberMethod.Name = codeMemberMethod.Name + "Test";
// Standard test methods accept no parameters and return void.
codeMemberMethod.ReturnType = new CodeTypeReference(typeof(void));
codeMemberMethod.Parameters.Clear();
codeMemberMethod.CustomAttributes.Add(
new CodeAttributeDeclaration(
new CodeTypeReference(typeof(TestAttribute))));
codeMemberMethod.CustomAttributes.Add(
new CodeAttributeDeclaration(
new CodeTypeReference(typeof(IgnoreAttribute))));
codeMemberMethod.Statements.Add(
new CodeCommentStatement(
"TODO: Implement unit test for " +
codeMemberMethod.Name));
}