Exemplo n.º 1
0
        public void AllocateObjectWithSize()
        {
            BaseBehavior behavior = new BaseBehavior();

            IObject obj = behavior.Allocate(10);

            Assert.IsNotNull(obj);
            Assert.AreEqual(10, obj.Size);
        }
Exemplo n.º 2
0
        public void ShouldRaiseIfSizeIsNegative()
        {
            BaseBehavior behavior = new BaseBehavior();

            IObject obj = behavior.Allocate(-1);
        }