Skip to content

Resources that uses EmbedPropertiesAttribute do not deserialize correctly

Reproduced by trying to save/load a step like this.

    public class Step : TestStep
    {
        public InstrumentUsingEmbed Instrument { get; set; }
        public override void Run() { }
    }

    public class SomeSettings
    {
        public double Frequencey { get; set; }
    }

    public class InstrumentUsingEmbed : Instrument
    {
        [EmbedProperties]
        public SomeSettings Settings { get; set; }
    }

Found while working on SSH plugin here which does something like above.

Edited by Vivienne Spence