コード例 #1
0
ファイル: BooksTest.cs プロジェクト: seymourpoler/CodeKatas
 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
ファイル: Program.cs プロジェクト: seymourpoler/CodeKatas
 static void Main(string[] args)
 {
     Books books;
     List<int> bks = new List<int>();
     books = new Books(bks);
     decimal money = books.GetPrice();
 }
コード例 #3
0
ファイル: BooksTest.cs プロジェクト: seymourpoler/CodeKatas
 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);
 }