public void Test3() { var account = new Bankfunct("Kendra", 10000); Assert.Throws <ArgumentOutOfRangeException>( () => new Bankfunct("Invalid", -50) ); }
public void Test2() { var account = new Bankfunct("Kendra", 10000); Assert.Throws <InvalidOperationException> ( () => account.MakeWithrawl(750000, DateTime.Now, "Attempt to Overdraw") ); }