Beispiel #1
0
        public void Allows_Unique_Values()
        {
            var validator = new ValueListPreValueEditor.EnsureUniqueValuesValidator();
            var result    = validator.Validate(new JArray(JObject.FromObject(new { value = "hello" }), JObject.FromObject(new { value = "world" })), null, new ColorPickerPropertyEditor());

            Assert.AreEqual(0, result.Count());
        }
Beispiel #2
0
        public void Only_Tests_On_JArray_Of_Item_JObject()
        {
            var validator = new ValueListPreValueEditor.EnsureUniqueValuesValidator();
            var result    = validator.Validate(new JArray("hello", "world"), null, new ColorPickerPropertyEditor());

            Assert.AreEqual(0, result.Count());
        }