public void GetBinder_ReturnssimpleArrayModelBinder_ForPrimitiveArrys() { var provider = new SimpleArrayModelBinderProvider(); provider.GetBinder(new HttpConfiguration(), typeof(int[])).ShouldBeType(typeof(SimpleArrayModelBinder<int>)); provider.GetBinder(new HttpConfiguration(), typeof(string[])).ShouldBeType(typeof(SimpleArrayModelBinder<string>)); provider.GetBinder(new HttpConfiguration(), typeof(double[])).ShouldBeType(typeof(SimpleArrayModelBinder<double>)); }
public void GetBinder_ReturnsNull_ForNonPrimitives() { var provider = new SimpleArrayModelBinderProvider(); provider.GetBinder(new HttpConfiguration(), typeof(HttpConfiguration)).ShouldBeNull(); }