File tree Expand file tree Collapse file tree 4 files changed +34
-6
lines changed Expand file tree Collapse file tree 4 files changed +34
-6
lines changed Original file line number Diff line number Diff line change 8
8
//------------------------------------------------------------------------------
9
9
10
10
11
+ using System ;
11
12
using System . Collections ;
12
13
using NUnit . Framework ;
13
14
@@ -27,6 +28,19 @@ protected override string[] Mappings
27
28
get { return new [ ] { "IdGen.NativeGuid.NativeGuidPoid.hbm.xml" } ; }
28
29
}
29
30
31
+ protected override bool AppliesTo ( Dialect . Dialect dialect )
32
+ {
33
+ try
34
+ {
35
+ var _ = dialect . SelectGUIDString ;
36
+ return true ;
37
+ }
38
+ catch ( NotSupportedException )
39
+ {
40
+ return false ;
41
+ }
42
+ }
43
+
30
44
[ Test ]
31
45
public async Task CrdAsync ( )
32
46
{
@@ -51,4 +65,4 @@ public async Task CrdAsync()
51
65
}
52
66
}
53
67
}
54
- }
68
+ }
Original file line number Diff line number Diff line change @@ -39,11 +39,11 @@ public async Task ReturnedValueIsGuidAsync()
39
39
{
40
40
try
41
41
{
42
- var str = Dialect . Dialect . GetDialect ( ) . SelectGUIDString ;
42
+ var _ = sessions . Dialect . SelectGUIDString ;
43
43
}
44
44
catch ( NotSupportedException )
45
45
{
46
- Assert . Ignore ( "This test does not apply to {0}" , Dialect . Dialect . GetDialect ( ) ) ;
46
+ Assert . Ignore ( "This test does not apply to {0}" , sessions . Dialect ) ;
47
47
}
48
48
49
49
var gen = new NativeGuidGenerator ( ) ;
Original file line number Diff line number Diff line change
1
+ using System ;
1
2
using System . Collections ;
2
3
using NUnit . Framework ;
3
4
@@ -16,6 +17,19 @@ protected override string[] Mappings
16
17
get { return new [ ] { "IdGen.NativeGuid.NativeGuidPoid.hbm.xml" } ; }
17
18
}
18
19
20
+ protected override bool AppliesTo ( Dialect . Dialect dialect )
21
+ {
22
+ try
23
+ {
24
+ var _ = dialect . SelectGUIDString ;
25
+ return true ;
26
+ }
27
+ catch ( NotSupportedException )
28
+ {
29
+ return false ;
30
+ }
31
+ }
32
+
19
33
[ Test ]
20
34
public void Crd ( )
21
35
{
@@ -40,4 +54,4 @@ public void Crd()
40
54
}
41
55
}
42
56
}
43
- }
57
+ }
Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ public void ReturnedValueIsGuid()
27
27
{
28
28
try
29
29
{
30
- var str = Dialect . Dialect . GetDialect ( ) . SelectGUIDString ;
30
+ var _ = sessions . Dialect . SelectGUIDString ;
31
31
}
32
32
catch ( NotSupportedException )
33
33
{
34
- Assert . Ignore ( "This test does not apply to {0}" , Dialect . Dialect . GetDialect ( ) ) ;
34
+ Assert . Ignore ( "This test does not apply to {0}" , sessions . Dialect ) ;
35
35
}
36
36
37
37
var gen = new NativeGuidGenerator ( ) ;
You can’t perform that action at this time.
0 commit comments