예제 #1
0
 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);
 }
예제 #2
0
 static void Main(string[] args)
 {
     Books books;
     List<int> bks = new List<int>();
     books = new Books(bks);
     decimal money = books.GetPrice();
 }
예제 #3
0
 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);
 }