AnthonySteele / MvcRouteTester

A library for unit testing ASP MVC route tables for both Web and API Routes
Apache License 2.0
105 stars 43 forks source link

Added support for nullable properties in models passed in via FromUri #16

Closed alexjamesbrown closed 11 years ago

alexjamesbrown commented 11 years ago

While trying to figure out if my failing test was a problem in my code, or a bug in the MvcRouteTester lib I created this test, to test controllers using FromUri

I discovered that if you had a nullable property on the model (and the value wasn't specified in the query string) then the assertion failed.

Fixed in 90b8171

AnthonySteele commented 11 years ago

Should probably also add a test case where OtherNumber isn't null.

alexjamesbrown commented 11 years ago

My bad, I thought I had!

AnthonySteele commented 11 years ago

I missed it: it's the last one: "TestFluentMapWithNullablePropertyFilled"

alexjamesbrown commented 11 years ago

Rubbish test name. Heat is getting to me