- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgram.cs
More file actions
Latest commit
28 lines (27 loc) · 638 Bytes
/
Copy pathProgram.cs
File metadata and controls
28 lines (27 loc) · 638 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
usingspace1;
varacc=newBA($"<script>alert('hej')</script>",1000);
acc.Md(500,DateTime.Now,"MD made");
Console.WriteLine(acc.bal);
acc.Md(100,DateTime.Now,"Test message");
Console.WriteLine(acc.bal);
Console.WriteLine(acc.Gac());
try
{
acc.Mw(750,DateTime.Now,"Attempt to od");
}
catch(InvalidOperationExceptione)
{
Console.WriteLine("Exception caught trying to od");
Console.WriteLine(e.ToString());
}
BAia;
try
{
ia=newBA("test",55);
}
catch(ArgumentOutOfRangeExceptione)
{
Console.WriteLine("Exception caught creating with negative value");
Console.WriteLine(e.ToString());
return;
}