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)); }
public void ShouldNotLogin() { _errors.Count().Should(Be.EqualTo(2)); _errors.Select(e => e.FieldName).Should(Be.EquivalentTo(new [] { "Login", "Password" })); }