Esempio n. 1
0
        public void ValidationTest()
        {
            UserCredits userCredits = new UserCredits();

            Assert.AreEqual("The Username field is required.", userCredits.Validate(nameof(UserCredits.UserName)));

            userCredits.UserName = "******";
            Assert.AreEqual("", userCredits.Validate(nameof(UserCredits.UserName)));
        }
Esempio n. 2
0
 public Pop3Settings()
 {
     pop3UserCredits = new UserCredits();
     smtpUserCredits = new UserCredits();
     pop3UserCredits.Validate();
     smtpUserCredits.Validate();
 }
Esempio n. 3
0
    public void ValidationTest()
    {
        var userCredits = new UserCredits();

        userCredits.Validate();
        var clone = userCredits.Clone();

        ValidationTestCore(userCredits);
        ValidationTestCore(clone);
    }