/// <summary> /// Finds a documentation reader for the assembly /// </summary> /// <param name="assembly">Assembly to find documentation</param> /// <returns>Documentation reader</returns> private DocumentationReader FindReader(Assembly assembly) { if (!docReaders.ContainsKey(assembly)) docReaders[assembly] = new DocumentationReader(assembly); return docReaders[assembly]; }
public void MethodDescription_AcceptanceTest() { var docReader = new DocumentationReader(typeof(NonActionInterceptor).Assembly); var desc = docReader.MethodDescription(typeof(NonActionInterceptor).GetMethod("Intercept")); Assert.NotEmpty(desc); }