Skip to content

EmbeddedProperties Gets an Empty Group and is Misaligned With Other Properties

The step below adds an embedded property and specifies PrefixPropertyName to false. Inspecting this Property reveals that an extra Group is added with the value of an empty string. This is probably causing the misalignment in the Editor.

    [Display("Step", Group: "OpenTap.Plugins.MyPlugin7", Description: "Insert description here")]
    public class Step : TestStep
    {
        [EmbedProperties(PrefixPropertyName = false)]
        public Embedded EmbeddedSetting { get; set; }

        public string NotEmbedded { get; set; }

        public Step()
        {
            EmbeddedSetting = new Embedded();
            NotEmbedded = "Let's check alignment";
        }

        public override void Run()
        {
        }
    }

    public class Embedded
    {
        public string Message { get; set; } = "Greetings";
    }

image

Edited by Dave Heintz