public void CustomerGroupRestrictionExists_ReturnExpectedResult() { var method = new ShippingMethod(); var roleId = "role"; Assert.IsFalse(method.CustomerGroupRestrictionExists(roleId)); method.RestrictedGroups.Add(roleId); Assert.IsTrue(method.CustomerGroupRestrictionExists(roleId)); }