Example #1
0
 /// <summary>
 /// Generates a unit test method that exercises the provided <paramref name="methodToTest"/>.
 /// </summary>
 ///
 /// <param name="methodToTest">
 /// The <see cref="ParametrizedNode"/> representing the method or constructor for which a test is to be written.
 /// </param>
 ///
 /// <returns>
 /// The string representation of the source code of the generated method to test
 /// <paramref name="methodToTest"/>.
 /// </returns>
 public static string GenerateTest(this ParametrizedNode methodToTest)
 {
     return(TestMethod.Generate(methodToTest));
 }