Example #1
0
        public void ObjectSelectorEditor_EqualsToValue_InvokeWithValue_ReturnsExpected()
        {
            var editor = new SubObjectSelectorEditor();

            editor.SetValue("value");
            Assert.True(editor.EqualsToValue("value"));
            Assert.False(editor.EqualsToValue("other value"));
            Assert.False(editor.EqualsToValue(null));
        }
Example #2
0
        public void ObjectSelectorEditor_EqualsToValue_InvokeWithoutValue_ReturnsExpected(object value, bool expected)
        {
            var editor = new SubObjectSelectorEditor();

            Assert.Equal(expected, editor.EqualsToValue(value));
        }