Example #1
0
        public void should_not_pull_description_from_embedded_resource_named_as_handler_when_handler_has_resource_attribute()
        {
            var description = _endpointConvention.GetDescription(_graph.GetAction <ControllerResource.Controller>().ParentChain());

            description.Name.ShouldBeNull();
            description.Comments.ShouldBeNull();

            Assembly.GetExecutingAssembly().FindTextResourceNamed <ControllerResource.Controller>()
            .ShouldEqual("<p><strong>This is a resource</strong></p>");
        }