public void HasHttpMethod_ReturnsAsExpected(bool expected) { // Arrange List <object> attributes = new List <object>(); if (expected) { attributes.Add(new HttpGetAttribute()); } ActionModel action = new ActionModel(_methodInfo, attributes); // Act bool actual = action.HasHttpMethod(); // Assert Assert.Equal(expected, actual); }