public void Method_from_inherited_action_put() { var methodInfo = typeof(BaseChildController).GetMethod("Put"); var comment = XmlCommentsIdHelper.GetCommentIdForMethod(methodInfo); Assert.AreEqual("M:Swagger.Net.Dummy.Controllers.BaseController`1.Put(`0,System.String)", comment); }
public void GetCommentIdForMethod_ReturnsCorrectXmlCommentId_ForGivenMethodInfo( string actionFixtureName, string expectedCommentId ) { var methodInfo = typeof(FakeActions).GetMethod(actionFixtureName); var commentId = XmlCommentsIdHelper.GetCommentIdForMethod(methodInfo); Assert.Equal(expectedCommentId, commentId); }