public void TestMultipleSameCurrencyWalletGetCurrency() { var wallet = new Wallet(); wallet.AddCurrencyValue("HRK", 100); wallet.AddCurrencyValue("HRK", 50); Assert.AreEqual( 150, wallet.GetCurrencyValue("HRK"), "multiple item wallet bla bla" ); }
public void TestMultipleSameCurrencyWalletGetCurrency() { var wallet = new Wallet(); wallet.AddCurrencyValue("HRK", 100); wallet.AddCurrencyValue("HRK", 50); Assert.AreEqual ( 150, wallet.GetCurrencyValue("HRK"), "should aggregate added values" ); }
public void TestSingleIOtemWalletGetCurrency() { var wallet = new Wallet(); wallet.AddCurrencyValue("HRK", 100); Assert.AreEqual( 100, wallet.GetCurrencyValue("HRK"), "single item wallet bla bla" ); }
public void TestSingleItemWalletGetCurrency() { var wallet = new Wallet(); wallet.AddCurrencyValue("HRK", 100); Assert.AreEqual ( 100, wallet.GetCurrencyValue("HRK"), "Single item wallet sahould return previously added" ); }
public void AddValue(int value) { wallet.AddCurrencyValue(currency, value); }
[ExpectedException(typeof(InvalidProgramException))] //da metoda očekiva exeption i da se dobro ponaša samo ako dođe do tog exeptiona public void TestAddCurrencyCrashesIfFormatLengthInvalid() { var wallet = new Wallet(); wallet.AddCurrencyValue("hrk", 100); }