-
Notifications
You must be signed in to change notification settings - Fork 62
/
CrossFrameworkInitializer.cs
69 lines (66 loc) · 2.49 KB
/
CrossFrameworkInitializer.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 System;
using System.Collections.Generic;
using System.Drawing;
namespace Hyperion.Tests.Generator
{
public static class CrossFrameworkInitializer
{
public const string DefaultOutputPath = "../../../testfiles";
public static CrossFrameworkMixedClass InitMixed()
{
return new CrossFrameworkMixedClass
{
Name = "Cookie",
Sound = "Bark",
FriendType = typeof(CrossFrameworkClass),
Color = Color.Blue,
Point = new Point(10, 10),
PointF = new PointF(10, 10),
Rectangle = new Rectangle(10, 10, 10, 10),
RectangleF = new RectangleF(10, 10, 10, 10),
Size = new Size(10, 10),
SizeF = new SizeF(10, 10),
Data = Init()
};
}
public static CrossFrameworkClass Init()
{
return new CrossFrameworkClass()
{
Exception = new Exception("Test message", new ArgumentNullException("param", "Cannot be null")),
DateTime = new DateTime(1944, 6, 6), // DDay
Enum = CrossFrameworkEnum.Yatagan,
String = "On June 6, 1944, more than 160,000 Allied troops landed along a 50-mile stretch of heavily-fortified French coastline",
Struct = new CrossFrameworkStruct()
{
Boolean = true,
Long = long.MaxValue,
Decimal = decimal.MinusOne,
Double = double.MaxValue,
Int = int.MaxValue,
Short = short.MaxValue,
ULong = ulong.MinValue,
Byte = byte.MaxValue,
Char = char.MaxValue,
Float = float.MinValue,
UShort = ushort.MinValue,
UInt = uint.MaxValue,
Sbyte = sbyte.MaxValue
},
Decimal = decimal.MaxValue,
Float = float.MaxValue,
Long = long.MinValue,
Int = int.MinValue,
Double = double.Epsilon,
Char = char.MaxValue,
Byte = byte.MaxValue,
Sbyte = sbyte.MaxValue,
Short = short.MaxValue,
UInt = uint.MaxValue,
ULong = ulong.MaxValue,
UShort = ushort.MaxValue,
Boolean = true
};
}
}
}