Beispiel #1
0
        public void CheckBoxFieldConversions()
        {
            var value = true;

            Piranha.Extend.Fields.CheckBoxField field = value;
            Assert.Equal(value, field.Value);
        }
Beispiel #2
0
        public void CheckBoxFieldNotEquals()
        {
            var field1 = new Piranha.Extend.Fields.CheckBoxField {
                Value = true
            };
            var field2 = new Piranha.Extend.Fields.CheckBoxField {
                Value = false
            };

            Assert.True(field1 != field2);
            Assert.True(!field1.Equals(field2));
            Assert.True(!field1.Equals((object)field2));
        }