public void ValueNullTest() { ReportStart(); _pc = new PaletteControl(); // Following line will throw a NullReferenceException if the Value // property is not initialised correctly. Assert.AreEqual(0, _pc.Value.Count); ReportEnd(); }
public void Setup() { string paletteFile = @"ColourTables\gameboy.act"; _palette = Palette.FromFile(paletteFile); _pc = new PaletteControl(); _pc.Value = _palette; _form = new Form(); _form.Controls.Add(_pc); _form.Show(); }
public void PaletteTest() { PaletteControl target = new PaletteControl(); target.Palette = null; }