public void if_match_rules_and_enabled_rollout_100_percent_should_return_true() { var sut = new KFeatureFlag("sut", KTargeting.EnabledForSomeUsers, new string[] { }, new List <KInlineRule> { new KInlineRule(0, new[] { new KEqualsStatement("country", new[] { KStringValue.Create("spain") }) }) }, true, KPercentageRollout.Create(100)); sut.Evaluate(Fixture.store, Fixture.spain_user).Should().BeTrue(); }
public bool Equals(KStringValue other) { return(Value == other.Value); }
public bool NotEquals(KStringValue other) { return(!Equals(other)); }
public bool Contains(KStringValue other) { return(Value.Contains(other.Value)); }