Esempio n. 1
0
        public void GetStatisticsTest()
        {
            var jar = new BeanJar {
                Capacity = BeanJar.MAX_CAPACITY
            };

            var bean = new Bean();

            jar.AddBean(bean);

            Assert.IsFalse(string.IsNullOrEmpty(jar.GetStatistics()));
        }
Esempio n. 2
0
        public void AddBeanTest()
        {
            var jar = new BeanJar {
                Capacity = BeanJar.MAX_CAPACITY
            };

            var bean = new Bean();

            jar.AddBean(bean);

            Assert.IsTrue(jar.TotalBeanCount == 1);
        }