public void GetStatisticsTest() { var jar = new BeanJar { Capacity = BeanJar.MAX_CAPACITY }; var bean = new Bean(); jar.AddBean(bean); Assert.IsFalse(string.IsNullOrEmpty(jar.GetStatistics())); }
public void AddBeanTest() { var jar = new BeanJar { Capacity = BeanJar.MAX_CAPACITY }; var bean = new Bean(); jar.AddBean(bean); Assert.IsTrue(jar.TotalBeanCount == 1); }