-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
69 lines (59 loc) · 1.79 KB
/
Program.cs
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
using Desharp;
using System;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
Program._demoDumpAndLog();
Program._demoException();
//Program._runTests();
Console.ReadLine();
}
private static void _demoDumpAndLog() {
Console.Write("Press enter key to dump demo data and write it to HDD.");
Console.ReadLine();
Console.WriteLine();
var demoObject = new Dictionary<string, object>() {
{ "clark", new {
name = "Clark",
surname = "Kent",
tshirtIdol = "chuck"
} },
{ "chuck", new {
name = "Chuck",
surname = "Noris",
tshirtIdol = "bud"
} },
{ "bud", new {
name = "Bud",
surname = "Spencer",
tshirtIdol = ""
} }
};
Debug.Dump(demoObject);
Debug.Log(demoObject);
Console.WriteLine();
Console.WriteLine();
}
private static void _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 (Exception ex) {
Debug.Dump(ex);
Debug.Log(ex);
}
Console.WriteLine();
Console.WriteLine();
}
private static void _runTests () {
Console.Write("Pres enter key to start duping test objects.");
Console.ReadLine();
Console.WriteLine();
var dlTest = new Desharp.Tests.DumpingAndLoging();
dlTest.TestAll();
var eTest = new Desharp.Tests.ExceptionsRendering();
eTest.TestAll();
}
}