tag:blogger.com,1999:blog-496669155392068961.post3031833323003102747..comments2013-06-21T02:29:16.157-07:00Comments on Garbage Collection by JM: How to unit test your DataAnnotations attributesUnknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-496669155392068961.post-48889309045434128942013-06-21T02:29:16.157-07:002013-06-21T02:29:16.157-07:00JM, nice post, I like the ValidationBuddy helper.
...JM, nice post, I like the ValidationBuddy helper.<br /><br />Ygor, have a look here <a href="http://timoch.com/blog/2013/06/unit-testing-model-validation-with-mvcs-dataannotations/" rel="nofollow">http://timoch.com/blog/2013/06/unit-testing-model-validation-with-mvcs-dataannotations/</a><br /><br />It's a simple solution to test your DataAnnotations validation rules in separation.TiMochhttps://www.blogger.com/profile/08771784451476358117noreply@blogger.comtag:blogger.com,1999:blog-496669155392068961.post-53135180956023415362012-08-03T10:19:53.715-07:002012-08-03T10:19:53.715-07:00How would one test with types "DateTime"...How would one test with types "DateTime" and "int"?<br /><br />For example:<br /><br /> [Required(ErrorMessage = "The date field is required.")]<br /> [DataType(DataType.Date, ErrorMessage = "Invalid date.")]<br /> public DateTime Date { get; set; }<br /><br />Thanks a lot!Ygorhttps://www.blogger.com/profile/06977394295874780555noreply@blogger.com