File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/Mvc/Mvc.ApiExplorer/test Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1107,7 +1107,8 @@ public void GetApiDescription_PopulatesResponseInformation_WhenSetByFilter(strin
11071107 var action = CreateActionDescriptor ( methodName ) ;
11081108 var filter = new ContentTypeAttribute ( "text/*" )
11091109 {
1110- Type = typeof ( Order )
1110+ Type = typeof ( Order ) ,
1111+ Description = "Example"
11111112 } ;
11121113
11131114 action . FilterDescriptors = new List < FilterDescriptor >
@@ -1124,6 +1125,7 @@ public void GetApiDescription_PopulatesResponseInformation_WhenSetByFilter(strin
11241125 Assert . NotNull ( responseTypes . ModelMetadata ) ;
11251126 Assert . Equal ( 200 , responseTypes . StatusCode ) ;
11261127 Assert . Equal ( typeof ( Order ) , responseTypes . Type ) ;
1128+ Assert . Equal ( "Example" , responseTypes . Description ) ;
11271129
11281130 foreach ( var responseFormat in responseTypes . ApiResponseFormats )
11291131 {
You can’t perform that action at this time.
0 commit comments