public void NonAlphanumeric() { var vm = new NonAlphanumericModel() { Password = "******" }; var validations = vm.Validate(vm.Password, _password); validations.Print(_output); Assert.Empty(validations); }
public void Mix() { var vm = new NonAlphanumericModel() { Password = "******" }; var validations = vm.Validate(vm.Password, _password); validations.Print(_output); Assert.Empty(validations); }
public void Alphanumeric() { var vm = new NonAlphanumericModel() { Password = "******" }; var validations = vm.Validate(vm.Password, _password); validations.Print(_output); Assert.Collection(validations, v => v.ErrorMessage = "Non Alphanumeric is required"); }