public void ResetButtonClearsCountersAndListBox()
    {
        ConstructorControlPanel control = new ConstructorControlPanel();
        ConstructorInfo         info    = typeof(TestClass).GetConstructor(new Type[] { });

        control.Initialize(info);
        control.OnCreateClick(null, null);
        control.OnCreateClick(null, null);
        control.OnCreateClick(null, null);
        control.OnCreateClick(null, null);
        control.OnCreateClick(null, null);
        control.buttonReset_Click(null, null);
        Assert.AreEqual(0, control.average_count);
        Assert.AreEqual(0, control.comboBoxMessageBar.Items.Count);
        Assert.IsFalse(control.comboBoxMessageBar.Enabled);
    }
    public void InvokingCreateUpdatesStatsListing()
    {
        ConstructorControlPanel control = new ConstructorControlPanel();
        ConstructorInfo         info    = typeof(TestClass).GetConstructor(new Type[] { });

        control.Initialize(info);
        control.OnCreateClick(null, null);
        Assert.IsTrue(control.comboBoxMessageBar.Items[0].ToString().EndsWith("to Create."));
    }