public void Test1() { data = new InMemoryData(); data.AddItemsToCart('A', 1); data.AddItemsToCart('B', 1); data.AddItemsToCart('C', 1); int result = data.CalculateCheckOutPrice(); Assert.Equal(100, result); }
public void Test2() { data = new InMemoryData(); data.AddItemsToCart('A', 5); data.AddItemsToCart('B', 5); data.AddItemsToCart('C', 1); decimal result = data.CalculateCheckOutPrice(); Assert.Equal(370, result); }