public void DoNotAddSameInstanceToObjectPool()
    {
        ObjectPool.pool.Clear();
        PropertyControlPanel control = new PropertyControlPanel();

        control.Lastresult = "something";
        control.OnAddToPool(null, null);
        control.OnAddToPool(null, null);
        control.OnAddToPool(null, null);
        control.OnAddToPool(null, null);
        Assert.AreEqual(1, ObjectPool.pool.Count);
    }
    public void PlusButtonAddsInstanceToObjectPool()
    {
        ObjectPool.pool.Clear();
        PropertyControlPanel control = new PropertyControlPanel();

        control.Lastresult = "something";
        control.OnAddToPool(null, null);
        Assert.IsTrue(ObjectPool.pool.Contains(control.Lastresult));
    }