File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Orm/Xtensive.Orm.Tests/Configuration Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -1327,7 +1327,13 @@ public void SessionCustomConnectionUrlTest(bool useRoot)
13271327 [ TestCase ( false ) ]
13281328 public void SessionWithInvalidOptions ( bool useRoot )
13291329 {
1330- _ = Assert . Throws < InvalidOperationException > ( ( ) => LoadDomainConfiguration ( "DomainWithSessionInvalidOptions" , useRoot ) ) ;
1330+ if ( Postfix == "Json" ) {
1331+ var config = LoadDomainConfiguration ( "DomainWithSessionInvalidOptions" , useRoot ) ;
1332+ Assert . That ( config . Sessions . Count , Is . EqualTo ( 0 ) ) ; // no exceptions on reading, just no configurations
1333+ }
1334+ else {
1335+ _ = Assert . Throws < InvalidOperationException > ( ( ) => LoadDomainConfiguration ( "DomainWithSessionInvalidOptions" , useRoot ) ) ;
1336+ }
13311337 }
13321338
13331339 [ Test ]
@@ -1391,7 +1397,13 @@ public void SessionWithInvalidEntityChangeRegistryTest2(bool useRoot)
13911397 [ TestCase ( false ) ]
13921398 public void SessionWithInvalidCacheType1 ( bool useRoot )
13931399 {
1394- _ = Assert . Throws < InvalidOperationException > ( ( ) => LoadDomainConfiguration ( "DomainWithSessionInvalidCacheType" , useRoot ) ) ;
1400+ if ( Postfix == "Json" ) {
1401+ var config = LoadDomainConfiguration ( "DomainWithSessionInvalidCacheType" , useRoot ) ;
1402+ Assert . That ( config . Sessions . Count , Is . EqualTo ( 0 ) ) ; // no exceptions on reading, just no configurations
1403+ }
1404+ else {
1405+ _ = Assert . Throws < InvalidOperationException > ( ( ) => LoadDomainConfiguration ( "DomainWithSessionInvalidCacheType" , useRoot ) ) ;
1406+ }
13951407 }
13961408
13971409 #endregion
You can’t perform that action at this time.
0 commit comments