forked from SimonCropp/XunitContext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Counters.cs
63 lines (52 loc) · 1.35 KB
/
Counters.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
using System;
namespace XunitLogger
{
public static class Counters
{
static GuidCounter GuidCounter = new GuidCounter();
static IntCounter IntCounter = new IntCounter();
static LongCounter LongCounter = new LongCounter();
static UIntCounter UIntCounter = new UIntCounter();
static ULongCounter ULongCounter = new ULongCounter();
public static uint CurrentUInt
{
get => UIntCounter.Current;
}
public static int CurrentInt
{
get => IntCounter.Current;
}
public static long CurrentLong
{
get => LongCounter.Current;
}
public static ulong CurrentULong
{
get => ULongCounter.Current;
}
public static Guid CurrentGuid
{
get => GuidCounter.Current;
}
public static uint NextUInt()
{
return UIntCounter.Next();
}
public static int NextInt()
{
return IntCounter.Next();
}
public static long NextLong()
{
return LongCounter.Next();
}
public static ulong NextULong()
{
return ULongCounter.Next();
}
public static Guid NextGuid()
{
return GuidCounter.Next();
}
}
}