public void Not_be_Editable()
        {
            var sut = new NZazuLabelField(new FieldDefinition {
                Key = "key"
            }, ServiceLocator);

            sut.IsEditable.Should().BeFalse();
        }
        public void Return_null_StringValue_and_not_set_StringValue()
        {
            var sut = new NZazuLabelField(new FieldDefinition {
                Key = "key"
            }, ServiceLocator);

            sut.GetValue().Should().BeNull();
            sut.SetValue("foobar");
            sut.GetValue().Should().BeNull();
        }
        public void Not_Create_ValueControl_On_Empty_Description()
        {
            var sut = new NZazuLabelField(new FieldDefinition {
                Key = "key"
            }, ServiceLocator);

            sut.Definition.Description.Should().BeNullOrWhiteSpace();
            var label = (Label)sut.ValueControl;

            label.Should().BeNull();
        }
        public void Create_ValueControl_Matching_Description()
        {
            var sut = new NZazuLabelField(new FieldDefinition {
                Key = "key", Description = "superhero is alive"
            },
                                          ServiceLocator);

            var label = (Label)sut.ValueControl;

            label.Should().NotBeNull();
            label.Content.Should().Be(sut.Definition.Description);
        }