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

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

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

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