Beispiel #1
0
 public void TestRateLower_shouldReturnLessThan1()
 {
     Assert.IsTrue(RatesAPI.GetRateFromAPI("NIS", "USD") < 1);
 }
Beispiel #2
0
 public void TestRateSameCoin_shouldReturn1()
 {
     Assert.AreEqual(1, RatesAPI.GetRateFromAPI("NIS", "NIS"));
 }
Beispiel #3
0
 public void TestRateHigher_shouldReturnMoreThan1()
 {
     Assert.IsTrue(RatesAPI.GetRateFromAPI("USD", "NIS") > 1);
 }
Beispiel #4
0
 public void TestInvalidNewCoin_shouldThrow()
 {
     Assert.ThrowsException <NullReferenceException>(() => RatesAPI.GetRateFromAPI("ILS", "JJJ"));
 }