public void ShouldBeInvalidWhenSpecifiedEmptyOrOtherRoles() { var validator = new ValidRole(); Assert.IsFalse(validator.IsValid(" ")); Assert.IsFalse(validator.IsValid("Select Role")); }
public void ShouldBeValidForAdminAndAuthor() { var validator = new ValidRole(); Assert.IsTrue(validator.IsValid(Roles.Admin)); Assert.IsTrue(validator.IsValid(Roles.Author)); }