-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgram.vb
More file actions
70 lines (56 loc) · 1.69 KB
/
Program.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
Module Program
Sub Main()
Program._demoDumpAndLog()
Program._demoException()
'Program._runTests()
Console.ReadLine()
End Sub
Private Sub _demoDumpAndLog()
Console.Write("Press enter key to dump demo data and write it to HDD.")
Console.ReadLine()
Console.WriteLine()
Dim demoObject = New Dictionary(Of String, Object)() From {
{"clark", New With {
.name = "Clark",
.surname = "Kent",
.tshirtIdol = "chuck"
}},
{"chuck", New With {
.name = "Chuck",
.surname = "Noris",
.tshirtIdol = "bud"
}},
{"bud", New With {
.name = "Bud",
.surname = "Spencer",
.tshirtIdol = ""
}}
}
Debug.Dump(demoObject)
Debug.Log(demoObject)
Console.WriteLine()
Console.WriteLine()
End Sub
Private Sub _demoException()
Console.Write("Press enter key to dump catched demo exception and write it to HDD.")
Console.ReadLine()
Console.WriteLine()
Try
Throw New Exception("Demo exception:-)")
Catch ex As Exception
Debug.Dump(ex)
Debug.Log(ex)
End Try
Console.WriteLine()
End Sub
Private Sub _runTests()
Console.Write("Pres enter key to start duping test objects.")
Console.ReadLine()
Console.WriteLine()
Dim dlTest = New Desharp.Tests.DumpingAndLoging()
dlTest.TestAll()
Dim eTest = New Desharp.Tests.ExceptionsRendering()
eTest.TestAll()
End Sub
End Module