public void AddInstrument_FormResize() { using (var form = new MonkeyCancelFrm()) { form.Show(); form.InstrumentDefinitions = Helpers.CreateListOf4ProductDefs(); form.AddInstrument(Helpers.CreateInstrumentByAlias("ZBU5")); form.AddInstrument(Helpers.CreateInstrumentByAlias("ZFU5")); form.AddInstrument(Helpers.CreateInstrumentByAlias("ZTU5")); form.AddInstrument(Helpers.CreateInstrumentByAlias("ZNU5")); form.AddInstrument(Helpers.CreateInstrumentByAlias("ZZU5")); form.AddInstrument(Helpers.CreateInstrumentByAlias("ZZU6")); form.AddInstrument(Helpers.CreateInstrumentByAlias("ZZU7")); form.AddInstrument(Helpers.CreateInstrumentByAlias("ZZU8")); form.AddInstrument(Helpers.CreateInstrumentByAlias("ZZU9")); form.AddInstrument(Helpers.CreateInstrumentByAlias("ZZUA")); form.AddInstrument(Helpers.CreateInstrumentByAlias("ZZUB")); form.Width += 50; form.Height += 50; WinFormsApprovals.Verify(form); } }
public void AddInstrument_TheLastArrivedFirst() { using (var form = new MonkeyCancelFrm()) { form.Show(); form.InstrumentDefinitions = Helpers.CreateListOf4ProductDefs(); form.AddInstrument(Helpers.CreateInstrumentByAlias("ZTU5")); form.AddInstrument(Helpers.CreateInstrumentByAlias("ZNU5")); form.AddInstrument(Helpers.CreateInstrumentByAlias("ZBU5")); form.AddInstrument(Helpers.CreateInstrumentByAlias("ZFU5")); WinFormsApprovals.Verify(form.Controls["flowLayoutPanelInstruments"]); } }