Esempio n. 1
0
    public void Alphabet()
    {
        var vm = new DigitModel {
            Password = "******"
        };

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

        validations.Print(_output);

        Assert.Collection(validations, v => v.ErrorMessage = "Digit is required");
    }
Esempio n. 2
0
    public void Mix()
    {
        var vm = new DigitModel {
            Password = "******"
        };

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

        validations.Print(_output);

        Assert.Empty(validations);
    }
Esempio n. 3
0
    public void Numeric()
    {
        var vm = new DigitModel {
            Password = "******"
        };

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

        validations.Print(_output);

        //Assert.Collection(validations, v=>v.ErrorMessage = "Digit is required");
        Assert.Empty(validations);
    }