score:2

Accepted answer

get rid of the take(1). i suspect the empty string is passing the required test. if you happen to get that instead of the length validator, the test passes.

score:0

try to use

var errors = dataannotationsvalidationrunner.getfirsterrors(test).toarray();

Related Query

More Query from same tag