コード例 #1
0
ファイル: CoinTest.cs プロジェクト: NewellMatt/Changecsharp
 public void TestGetChange()
 {
     Coin newCoins = new Coin(180);
       Dictionary<string,int> testResults = new Dictionary<string,int>();
       testResults.Add("quarters", 7);
       testResults.Add("dimes", 0);
       testResults.Add("nickels", 1);
       testResults.Add("pennies", 0);
       Assert.Equal(testResults, newCoins.GetChange());
 }
コード例 #2
0
ファイル: CoinTest.cs プロジェクト: NewellMatt/Changecsharp
 public void Test1_GetAmountOfQuarters_ReturnAmount()
 {
     //Arrange
       Coin newCoins = new Coin(199);
       Assert.Equal(7, newCoins.GetQuarters(199));
 }
コード例 #3
0
ファイル: CoinTest.cs プロジェクト: NewellMatt/Changecsharp
 public void Test1_GetAmountOfNICKLES_ReturnAmount()
 {
     //Arrange
       Coin newCoins = new Coin(199);
       Assert.Equal(39, newCoins.GetNickles(199));
 }
コード例 #4
0
ファイル: CoinTest.cs プロジェクト: NewellMatt/Changecsharp
 public void Test1_GetAmountOfPENNIES_ReturnAmount()
 {
     //Arrange
       Coin newCoins = new Coin(199);
       Assert.Equal(199, newCoins.GetPennies(199));
 }
コード例 #5
0
ファイル: CoinTest.cs プロジェクト: NewellMatt/Changecsharp
 public void Test1_GetAmountOfDIMES_ReturnAmount()
 {
     //Arrange
       Coin newCoins = new Coin(199);
       Assert.Equal(19, newCoins.GetDimes(199));
 }