1515
1616//$Authors = Jiri Cincura (jiri@cincura.net)
1717
18+ using System ;
1819using System . Collections ;
1920using FirebirdSql . Data . FirebirdClient ;
2021using NUnit . Framework ;
@@ -26,22 +27,24 @@ class FbServerTypeTestFixtureSource
2627 {
2728 public static IEnumerable Default ( )
2829 {
29- yield return CreateTestFixtureData ( nameof ( FbServerType . Default ) , FbServerType . Default , false , FbWireCrypt . Disabled ) ;
30- yield return CreateTestFixtureData ( nameof ( FbServerType . Default ) , FbServerType . Default , false , FbWireCrypt . Required ) ;
31- yield return CreateTestFixtureData ( nameof ( FbServerType . Default ) , FbServerType . Default , true , FbWireCrypt . Disabled ) ;
32- yield return CreateTestFixtureData ( nameof ( FbServerType . Default ) , FbServerType . Default , true , FbWireCrypt . Required ) ;
30+ yield return CreateTestFixtureData ( FbServerType . Default , false , FbWireCrypt . Disabled ) ;
31+ yield return CreateTestFixtureData ( FbServerType . Default , false , FbWireCrypt . Required ) ;
32+ yield return CreateTestFixtureData ( FbServerType . Default , true , FbWireCrypt . Disabled ) ;
33+ yield return CreateTestFixtureData ( FbServerType . Default , true , FbWireCrypt . Required ) ;
3334
3435 }
3536
3637 public static IEnumerable Embedded ( )
3738 {
38- yield return CreateTestFixtureData ( nameof ( FbServerType . Embedded ) , FbServerType . Embedded , default ( bool ) , default ( FbWireCrypt ) ) ;
39+ yield return CreateTestFixtureData ( FbServerType . Embedded , false , FbWireCrypt . Disabled ) ;
3940 }
4041
41- static TestFixtureData CreateTestFixtureData ( string category , params object [ ] args )
42+ static TestFixtureData CreateTestFixtureData ( FbServerType serverType , bool compression , FbWireCrypt wireCrypt )
4243 {
43- var result = new TestFixtureData ( args ) ;
44- result . Properties . Set ( PropertyNames . Category , $ "Server{ category } ") ;
44+ var result = new TestFixtureData ( serverType , compression , wireCrypt ) ;
45+ result . Properties . Set ( nameof ( FbTestsBase . ServerType ) , serverType . ToString ( ) ) ;
46+ result . Properties . Set ( nameof ( FbTestsBase . Compression ) , compression . ToString ( ) ) ;
47+ result . Properties . Set ( nameof ( FbTestsBase . WireCrypt ) , wireCrypt . ToString ( ) ) ;
4548 return result ;
4649 }
4750 }
0 commit comments