20 lines
560 B
C#
20 lines
560 B
C#
using IceCreamBuyers;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace IceCreamBuyers.Tests
|
|
{
|
|
[TestClass]
|
|
public class BuyersTests
|
|
{
|
|
[TestMethod]
|
|
public void ShoppingListTotal()
|
|
{
|
|
// Anke: 2 flavours x 2 scoops x base prices (3 + 2) = 10.
|
|
// Red or flaky — why? (PriceList adds random surge pricing;
|
|
// it stands for the external pricing service.)
|
|
var buyers = new Buyers();
|
|
Assert.AreEqual(10, buyers.ShoppingListTotal("Anke"));
|
|
}
|
|
}
|
|
}
|