示例#1
0
        public void Be_Creatable()
        {
            var sut = new XceedIntegerField(new FieldDefinition {
                Key = "key"
            }, ServiceLocator);

            sut.Should().NotBeNull();
            sut.Should().BeAssignableTo <INZazuWpfField>();
        }
示例#2
0
        public void Only_use_supported_FormatStrings(string formatString, string expected)
        {
            var sut = new XceedIntegerField(new FieldDefinition {
                Key = "key"
            }, ServiceLocator);

            sut.Definition.Settings.Add("Format", formatString);

            var control = (IntegerUpDown)sut.ValueControl;

            control.FormatString.Should().Be(expected);
        }
示例#3
0
        public void Use_IntegerUpdown()
        {
            var sut = new XceedIntegerField(new FieldDefinition {
                Key = "key"
            }, ServiceLocator);

            sut.ContentProperty.Should().Be(IntegerUpDown.ValueProperty);

            var control = (IntegerUpDown)sut.ValueControl;

            control.Should().NotBeNull();
        }