public void Initialize() { info = new ItemInfo("A super great item", 23.76M, 12); }
public void CleanUp() { info = null; }
public void CannotChangeItemInfoPriceToZero() { ItemInfo info = new ItemInfo("A great item", 20M); info.Price = 0M; }
public void CannotChangeItemInfoQuantiyToNegative() { ItemInfo info = new ItemInfo("A great item", 20M); info.StockQty = -20; }
public void CannotChangeItemInfoDescriptionToNull() { ItemInfo info = new ItemInfo("A great item", 20M); info.Description = ""; }
public void SucessfullInitialization_IfConstructedWithValidDescriptionAndPriceButNoQuantity() { ItemInfo info = new ItemInfo("A great item", 20M); }
public void TestArgumentOutOfRangeExceptionThrown_IfConstructedWithZeroValuePrice() { ItemInfo info = new ItemInfo("A great item", 0M, 10); }
public void TestArgumentOutOfRangeExceptionThrown_IfConstructedWithNegativeQuantity() { ItemInfo info = new ItemInfo("A great item", 20M, -1); }
public void TestArgumentNullExceptionThrown_IfConstructedWithDefaultValues_ForParameterTypes() { ItemInfo info = new ItemInfo("", 0M, 0); }