public void HasPermission_NonGrantedPermission_ReturnsFalse() { var role = new PageAuthor(); var expected = false; var actual = role.HasPermission(UserFeature.Users, Permissions.Update); Assert.AreEqual(expected, actual); }
public void HasPermission_GrantedPermission_ReturnsTrue() { var role = new PageAuthor(); var expected = true; var actual = role.HasPermission(UserFeature.Pages, Permissions.Create); Assert.AreEqual(expected, actual); }