public void Override_ContentProperty()
        {
            var sut = new XceedDateTimeField(new FieldDefinition {
                Key = "date"
            }, ServiceLocator);

            sut.ContentProperty.Should().Be(DateTimePickerWithUpdate.ValueProperty);
        }
        public void Be_Creatable()
        {
            var sut = new XceedDateTimeField(new FieldDefinition {
                Key = "key"
            }, ServiceLocator);

            sut.Should().NotBeNull();
            sut.Should().BeAssignableTo <INZazuWpfField>();
        }
        public void Use_Format_Settings()
        {
            var sut = new XceedDateTimeField(new FieldDefinition {
                Key = "date"
            }, ServiceLocator);
            const string dateFormat = "yyyy/MM/dd";

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

            var control = (DateTimePickerWithUpdate)sut.ValueControl;

            control.Format.Should().Be(DateTimeFormat.Custom);
            control.FormatString.Should().Be(dateFormat);

            sut = new XceedDateTimeField(new FieldDefinition {
                Key = "date"
            }, ServiceLocator);
            control = (DateTimePickerWithUpdate)sut.ValueControl;
            control.Format.Should().Be(DateTimeFormat.FullDateTime);
            control.FormatString.Should().BeNull();
        }