public void GetPrice_One_Book() { Books target = new Books(new List<int>(new int[] { 0 })); // TODO: Initialize to an appropriate value decimal expected = Convert.ToDecimal(8); decimal actual = target.GetPrice(); Assert.AreEqual(expected, actual); }
static void Main(string[] args) { Books books; List<int> bks = new List<int>(); books = new Books(bks); decimal money = books.GetPrice(); }
public void GetPrice_Four_diffent_Three_Equal_Books() { Books target = new Books(new List<int>(new int[] { 0, 1, 1, 1 })); // TODO: Initialize to an appropriate value decimal expected = Convert.ToDecimal(47.2); decimal actual = target.GetPrice(); Assert.AreEqual(expected, actual); }