When testing my controller\'s actions the ModelState is always valid.
public class Product { public int Id { get; set; } [Required] [StringLengt
Try controller.ViewModel.ModelState.IsValid instead of controller.ModelState.IsValid.