@@ -6,46 +6,46 @@ namespace BlackDigital.Report.Tests.Sources
6
6
public class ReportSourceTest
7
7
{
8
8
[ Fact ]
9
- public void SingleReportValue ( )
9
+ public async void SingleReportValue ( )
10
10
{
11
11
var value = new SingleReportSource ( ) ;
12
12
value . Load ( "Hello World" ) ;
13
13
14
- Assert . Null ( value . GetValue ( ) ) ;
14
+ Assert . Null ( await value . GetValueAsync ( ) ) ;
15
15
16
- Assert . True ( value . NextRow ( ) ) ;
17
- Assert . True ( value . NextColumn ( ) ) ;
16
+ Assert . True ( await value . NextRowAsync ( ) ) ;
17
+ Assert . True ( await value . NextColumnAsync ( ) ) ;
18
18
19
- Assert . Equal ( "Hello World" , value . GetValue ( ) ) ;
19
+ Assert . Equal ( "Hello World" , await value . GetValueAsync ( ) ) ;
20
20
21
- Assert . False ( value . NextColumn ( ) ) ;
22
- Assert . Null ( value . GetValue ( ) ) ;
21
+ Assert . False ( await value . NextColumnAsync ( ) ) ;
22
+ Assert . Null ( await value . GetValueAsync ( ) ) ;
23
23
24
- Assert . False ( value . NextRow ( ) ) ;
25
- Assert . Null ( value . GetValue ( ) ) ;
24
+ Assert . False ( await value . NextRowAsync ( ) ) ;
25
+ Assert . Null ( await value . GetValueAsync ( ) ) ;
26
26
}
27
27
28
28
[ Fact ]
29
- public void SingleReportValueWithNull ( )
29
+ public async void SingleReportValueWithNull ( )
30
30
{
31
31
var value = new SingleReportSource ( ) ;
32
32
33
- Assert . Null ( value . GetValue ( ) ) ;
33
+ Assert . Null ( await value . GetValueAsync ( ) ) ;
34
34
35
- Assert . True ( value . NextRow ( ) ) ;
36
- Assert . True ( value . NextColumn ( ) ) ;
35
+ Assert . True ( await value . NextRowAsync ( ) ) ;
36
+ Assert . True ( await value . NextColumnAsync ( ) ) ;
37
37
38
- Assert . Null ( value . GetValue ( ) ) ;
38
+ Assert . Null ( await value . GetValueAsync ( ) ) ;
39
39
40
- Assert . False ( value . NextColumn ( ) ) ;
41
- Assert . Null ( value . GetValue ( ) ) ;
40
+ Assert . False ( await value . NextColumnAsync ( ) ) ;
41
+ Assert . Null ( await value . GetValueAsync ( ) ) ;
42
42
43
- Assert . False ( value . NextRow ( ) ) ;
44
- Assert . Null ( value . GetValue ( ) ) ;
43
+ Assert . False ( await value . NextRowAsync ( ) ) ;
44
+ Assert . Null ( await value . GetValueAsync ( ) ) ;
45
45
}
46
46
47
47
[ Fact ]
48
- public void EnumerableReportValue ( )
48
+ public async void EnumerableReportValue ( )
49
49
{
50
50
var value = new EnumerableReportSource ( ) ;
51
51
@@ -55,36 +55,36 @@ public void EnumerableReportValue()
55
55
new [ ] { "Hello2" , "World2" }
56
56
} ) ;
57
57
58
- Assert . Null ( value . GetValue ( ) ) ;
58
+ Assert . Null ( await value . GetValueAsync ( ) ) ;
59
59
60
- Assert . True ( value . NextRow ( ) ) ;
61
- Assert . True ( value . NextColumn ( ) ) ;
60
+ Assert . True ( await value . NextRowAsync ( ) ) ;
61
+ Assert . True ( await value . NextColumnAsync ( ) ) ;
62
62
63
- Assert . Equal ( "Hello" , value . GetValue ( ) ) ;
63
+ Assert . Equal ( "Hello" , await value . GetValueAsync ( ) ) ;
64
64
65
- Assert . True ( value . NextColumn ( ) ) ;
66
- Assert . Equal ( "World" , value . GetValue ( ) ) ;
65
+ Assert . True ( await value . NextColumnAsync ( ) ) ;
66
+ Assert . Equal ( "World" , await value . GetValueAsync ( ) ) ;
67
67
68
- Assert . False ( value . NextColumn ( ) ) ;
69
- Assert . Null ( value . GetValue ( ) ) ;
68
+ Assert . False ( await value . NextColumnAsync ( ) ) ;
69
+ Assert . Null ( await value . GetValueAsync ( ) ) ;
70
70
71
- Assert . True ( value . NextRow ( ) ) ;
72
- Assert . Null ( value . GetValue ( ) ) ;
71
+ Assert . True ( await value . NextRowAsync ( ) ) ;
72
+ Assert . Null ( await value . GetValueAsync ( ) ) ;
73
73
74
- Assert . True ( value . NextColumn ( ) ) ;
75
- Assert . Equal ( "Hello2" , value . GetValue ( ) ) ;
74
+ Assert . True ( await value . NextColumnAsync ( ) ) ;
75
+ Assert . Equal ( "Hello2" , await value . GetValueAsync ( ) ) ;
76
76
77
- Assert . True ( value . NextColumn ( ) ) ;
78
- Assert . Equal ( "World2" , value . GetValue ( ) ) ;
77
+ Assert . True ( await value . NextColumnAsync ( ) ) ;
78
+ Assert . Equal ( "World2" , await value . GetValueAsync ( ) ) ;
79
79
80
- Assert . False ( value . NextColumn ( ) ) ;
81
- Assert . False ( value . NextRow ( ) ) ;
80
+ Assert . False ( await value . NextColumnAsync ( ) ) ;
81
+ Assert . False ( await value . NextRowAsync ( ) ) ;
82
82
83
- Assert . Null ( value . GetValue ( ) ) ;
83
+ Assert . Null ( await value . GetValueAsync ( ) ) ;
84
84
}
85
85
86
86
[ Fact ]
87
- public void ModelReportSource ( )
87
+ public async void ModelReportSource ( )
88
88
{
89
89
var value = new ModelReportSource < SimpleModel > ( ) ;
90
90
@@ -94,36 +94,36 @@ public void ModelReportSource()
94
94
new SimpleModel ( "World" , 2 )
95
95
} ) ;
96
96
97
- Assert . Null ( value . GetValue ( ) ) ;
97
+ Assert . Null ( await value . GetValueAsync ( ) ) ;
98
98
99
- Assert . True ( value . NextRow ( ) ) ;
100
- Assert . True ( value . NextColumn ( ) ) ;
99
+ Assert . True ( await value . NextRowAsync ( ) ) ;
100
+ Assert . True ( await value . NextColumnAsync ( ) ) ;
101
101
102
- Assert . Equal ( "Hello" , value . GetValue ( ) ) ;
102
+ Assert . Equal ( "Hello" , await value . GetValueAsync ( ) ) ;
103
103
104
- Assert . True ( value . NextColumn ( ) ) ;
105
- Assert . Equal ( 1d , value . GetValue ( ) ) ;
104
+ Assert . True ( await value . NextColumnAsync ( ) ) ;
105
+ Assert . Equal ( 1d , await value . GetValueAsync ( ) ) ;
106
106
107
- Assert . False ( value . NextColumn ( ) ) ;
108
- Assert . Null ( value . GetValue ( ) ) ;
107
+ Assert . False ( await value . NextColumnAsync ( ) ) ;
108
+ Assert . Null ( await value . GetValueAsync ( ) ) ;
109
109
110
- Assert . True ( value . NextRow ( ) ) ;
111
- Assert . Null ( value . GetValue ( ) ) ;
110
+ Assert . True ( await value . NextRowAsync ( ) ) ;
111
+ Assert . Null ( await value . GetValueAsync ( ) ) ;
112
112
113
- Assert . True ( value . NextColumn ( ) ) ;
114
- Assert . Equal ( "World" , value . GetValue ( ) ) ;
113
+ Assert . True ( await value . NextColumnAsync ( ) ) ;
114
+ Assert . Equal ( "World" , await value . GetValueAsync ( ) ) ;
115
115
116
- Assert . True ( value . NextColumn ( ) ) ;
117
- Assert . Equal ( 2d , value . GetValue ( ) ) ;
116
+ Assert . True ( await value . NextColumnAsync ( ) ) ;
117
+ Assert . Equal ( 2d , await value . GetValueAsync ( ) ) ;
118
118
119
- Assert . False ( value . NextColumn ( ) ) ;
120
- Assert . False ( value . NextRow ( ) ) ;
119
+ Assert . False ( await value . NextColumnAsync ( ) ) ;
120
+ Assert . False ( await value . NextRowAsync ( ) ) ;
121
121
122
- Assert . Null ( value . GetValue ( ) ) ;
122
+ Assert . Null ( await value . GetValueAsync ( ) ) ;
123
123
}
124
124
125
125
[ Fact ]
126
- public void ListReportSource ( )
126
+ public async void ListReportSource ( )
127
127
{
128
128
var list = new List < object >
129
129
{
@@ -133,20 +133,20 @@ public void ListReportSource()
133
133
134
134
var value = new ListReportSource ( list ) ;
135
135
136
- Assert . Null ( value . GetValue ( ) ) ;
136
+ Assert . Null ( await value . GetValueAsync ( ) ) ;
137
137
138
- Assert . True ( value . NextRow ( ) ) ;
139
- Assert . True ( value . NextColumn ( ) ) ;
138
+ Assert . True ( await value . NextRowAsync ( ) ) ;
139
+ Assert . True ( await value . NextColumnAsync ( ) ) ;
140
140
141
- Assert . Equal ( "Hello" , value . GetValue ( ) ) ;
141
+ Assert . Equal ( "Hello" , await value . GetValueAsync ( ) ) ;
142
142
143
- Assert . True ( value . NextColumn ( ) ) ;
144
- Assert . Equal ( "World" , value . GetValue ( ) ) ;
143
+ Assert . True ( await value . NextColumnAsync ( ) ) ;
144
+ Assert . Equal ( "World" , await value . GetValueAsync ( ) ) ;
145
145
146
- Assert . False ( value . NextColumn ( ) ) ;
147
- Assert . False ( value . NextRow ( ) ) ;
146
+ Assert . False ( await value . NextColumnAsync ( ) ) ;
147
+ Assert . False ( await value . NextRowAsync ( ) ) ;
148
148
149
- Assert . Null ( value . GetValue ( ) ) ;
149
+ Assert . Null ( await value . GetValueAsync ( ) ) ;
150
150
}
151
151
}
152
152
}
0 commit comments