예제 #1
0
    public void NonAlphanumeric()
    {
        var vm = new NonAlphanumericModel()
        {
            Password = "******"
        };

        var validations = vm.Validate(vm.Password, _password);

        validations.Print(_output);

        Assert.Empty(validations);
    }
예제 #2
0
    public void Mix()
    {
        var vm = new NonAlphanumericModel()
        {
            Password = "******"
        };

        var validations = vm.Validate(vm.Password, _password);

        validations.Print(_output);

        Assert.Empty(validations);
    }
예제 #3
0
    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");
    }