I'm following apress mvc4 receipts book and I'm struggle with following example
// act ViewResult result = controller.Index() as ViewResult; // assert Assert.IsInstanceOfType(result.Model,typeof(List<Architect>)) this line
Assert.IsInstanceOfType(result.Model,typeof(List<Architect>)) throws two errors
- Argument1: cannot convert from object to System.Type
- The best overloaded method match for Nunit.Framework.Assert.IsInstanceOfType(System.Type, object) has some invalid arguments