Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgram.vb
More file actions
Latest commit
70 lines (56 loc) · 1.69 KB
/
Copy pathProgram.vb
File metadata and controls
70 lines (56 loc) · 1.69 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Imports Desharp
ModuleProgram
SubMain()
Program._demoDumpAndLog()
Program._demoException()
'Program._runTests()
Console.ReadLine()
EndSub
PrivateSub_demoDumpAndLog()
Console.Write("Press enter key to dump demo data and write it to HDD.")
Console.ReadLine()
Console.WriteLine()
DimdemoObject=NewDictionary(OfString,Object)()From{
{"clark",NewWith{
.name="Clark",
.surname="Kent",
.tshirtIdol="chuck"
}},
{"chuck",NewWith{
.name="Chuck",
.surname="Noris",
.tshirtIdol="bud"
}},
{"bud",NewWith{
.name="Bud",
.surname="Spencer",
.tshirtIdol=""
}}
}
Debug.Dump(demoObject)
Debug.Log(demoObject)
Console.WriteLine()
Console.WriteLine()
EndSub
PrivateSub_demoException()
Console.Write("Press enter key to dump catched demo exception and write it to HDD.")
Console.ReadLine()
Console.WriteLine()
Try
ThrowNewException("Demo exception:-)")
CatchexAsException
Debug.Dump(ex)
Debug.Log(ex)
EndTry
Console.WriteLine()
EndSub
PrivateSub_runTests()
Console.Write("Pres enter key to start duping test objects.")
Console.ReadLine()
Console.WriteLine()
DimdlTest=NewDesharp.Tests.DumpingAndLoging()
dlTest.TestAll()
DimeTest=NewDesharp.Tests.ExceptionsRendering()
eTest.TestAll()
EndSub
EndModule