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))); }
public Pop3Settings() { pop3UserCredits = new UserCredits(); smtpUserCredits = new UserCredits(); pop3UserCredits.Validate(); smtpUserCredits.Validate(); }
public void ValidationTest() { var userCredits = new UserCredits(); userCredits.Validate(); var clone = userCredits.Clone(); ValidationTestCore(userCredits); ValidationTestCore(clone); }