Exemple #1
0
        public void Test3()
        {
            var account = new Bankfunct("Kendra", 10000);

            Assert.Throws <ArgumentOutOfRangeException>(

                () => new Bankfunct("Invalid", -50)

                );
        }
Exemple #2
0
        public void Test2()
        {
            var account = new Bankfunct("Kendra", 10000);

            Assert.Throws <InvalidOperationException> (

                () => account.MakeWithrawl(750000, DateTime.Now, "Attempt to Overdraw")

                );
        }