コード例 #1
0
        public void StringNotContains()
        {
            CreateContainsCondition(AttributeType.String, "dotnet");

            var attributes = new[]
            {
                UnlaunchAttribute.NewString(AttributeKey, "dotnet-sdk")
            };

            OnVariationTargetingRulesMatch(attributes);
        }
コード例 #2
0
        public void StringNotStartsWith()
        {
            CreateNswCondition(AttributeType.String, "sdk");

            var attributes = new[]
            {
                UnlaunchAttribute.NewString(AttributeKey, "dotnet-sdk")
            };

            OnVariationTargetingRulesMatch(attributes);
        }
コード例 #3
0
        public void StringNotEndsWith()
        {
            CreateEndsWithCondition(AttributeType.String, "dotnet");

            var attributes = new[]
            {
                UnlaunchAttribute.NewString(AttributeKey, "dotnet-sdk")
            };

            OffVariationTargetingRulesNotMatch(attributes);
        }
コード例 #4
0
        public void StringNotEquals()
        {
            var userValue = "dotnet-sdk";

            CreateNotEqualsCondition(AttributeType.String, userValue);

            var attributes = new[]
            {
                UnlaunchAttribute.NewString(AttributeKey, "hi " + userValue)
            };

            OnVariationTargetingRulesMatch(attributes);
        }
コード例 #5
0
 public void UserString_is_null()
 {
     Assert.Throws <ArgumentException>(() => UnlaunchAttribute.NewString("attributeKey", null));
 }