public void StringNotContains() { CreateContainsCondition(AttributeType.String, "dotnet"); var attributes = new[] { UnlaunchAttribute.NewString(AttributeKey, "dotnet-sdk") }; OnVariationTargetingRulesMatch(attributes); }
public void StringNotStartsWith() { CreateNswCondition(AttributeType.String, "sdk"); var attributes = new[] { UnlaunchAttribute.NewString(AttributeKey, "dotnet-sdk") }; OnVariationTargetingRulesMatch(attributes); }
public void StringNotEndsWith() { CreateEndsWithCondition(AttributeType.String, "dotnet"); var attributes = new[] { UnlaunchAttribute.NewString(AttributeKey, "dotnet-sdk") }; OffVariationTargetingRulesNotMatch(attributes); }
public void StringNotEquals() { var userValue = "dotnet-sdk"; CreateNotEqualsCondition(AttributeType.String, userValue); var attributes = new[] { UnlaunchAttribute.NewString(AttributeKey, "hi " + userValue) }; OnVariationTargetingRulesMatch(attributes); }
public void UserString_is_null() { Assert.Throws <ArgumentException>(() => UnlaunchAttribute.NewString("attributeKey", null)); }