Example #1
0
 public void Initialize()
 {
     info = new ItemInfo("A super great item", 23.76M, 12);
 }
Example #2
0
 public void CleanUp()
 {
     info = null;
 }
Example #3
0
        public void CannotChangeItemInfoPriceToZero()
        {
            ItemInfo info = new ItemInfo("A great item", 20M);

            info.Price = 0M;
        }
Example #4
0
        public void CannotChangeItemInfoQuantiyToNegative()
        {
            ItemInfo info = new ItemInfo("A great item", 20M);

            info.StockQty = -20;
        }
Example #5
0
        public void CannotChangeItemInfoDescriptionToNull()
        {
            ItemInfo info = new ItemInfo("A great item", 20M);

            info.Description = "";
        }
Example #6
0
 public void SucessfullInitialization_IfConstructedWithValidDescriptionAndPriceButNoQuantity()
 {
     ItemInfo info = new ItemInfo("A great item", 20M);
 }
Example #7
0
 public void TestArgumentOutOfRangeExceptionThrown_IfConstructedWithZeroValuePrice()
 {
     ItemInfo info = new ItemInfo("A great item", 0M, 10);
 }
Example #8
0
 public void TestArgumentOutOfRangeExceptionThrown_IfConstructedWithNegativeQuantity()
 {
     ItemInfo info = new ItemInfo("A great item", 20M, -1);
 }
Example #9
0
 public void TestArgumentNullExceptionThrown_IfConstructedWithDefaultValues_ForParameterTypes()
 {
     ItemInfo info = new ItemInfo("", 0M, 0);
 }