示例#1
0
        public void NoErrorsShouldOccur()
        {
            // TODO: remove select when updated sdk with beautiful ToString version
            var errors = _errors.Select(x => x.Message).ToList();

            errors.Should(Be.Empty);
        }
 private void CheckErrorFields(IEnumerable <string> errorFields)
 {
     _errors.Select(e => e.FieldName).ToList().Should(Be.EquivalentTo(errorFields));
 }
示例#3
0
 public void ShouldNotLogin()
 {
     _errors.Count().Should(Be.EqualTo(2));
     _errors.Select(e => e.FieldName).Should(Be.EquivalentTo(new [] { "Login", "Password" }));
 }