Пример #1
0
        public void Test_AccountAddInterest_WE_wp94211_WY_ods222633()
        {
            this.accountAddInterest = new WzorceProj.state_odsetki.AccountAddInterest();
            r = new Rachunek("123", "imie", "nazwisko");
            r.Wplata(94211);

            Assert.IsTrue(2226.33 == this.accountAddInterest.RunInterest(r), "Błędne naliczanie odsetek dla progu > 50000");
        }
Пример #2
0
        public void Test_AccountAddInterest_WE_wp100_WY_ods1()
        {
            this.accountAddInterest = new WzorceProj.state_odsetki.AccountAddInterest();
            r = new Rachunek("123", "imie", "nazwisko");
            r.Wplata(100);

            Assert.IsTrue(1 == this.accountAddInterest.RunInterest(r), "Błędne naliczanie odsetek dla progu < 10000");
        }