10
10
using System . Threading ;
11
11
using Newtonsoft . Json ;
12
12
using Newtonsoft . Json . Linq ;
13
+ using PSTests . Internal ;
13
14
using Xunit ;
14
15
15
16
namespace PSTests . Sequential
@@ -382,7 +383,7 @@ public PowerShellPolicyTests(PowerShellPolicyFixture fixture)
382
383
this . fixture = fixture ;
383
384
}
384
385
385
- [ Fact , TestPriority ( 1 ) ]
386
+ [ Fact , Priority ( 1 ) ]
386
387
public void PowerShellConfig_GetPowerShellPolicies_BothConfigFilesNotEmpty ( )
387
388
{
388
389
fixture . SetupConfigFile1 ( ) ;
@@ -398,7 +399,7 @@ public void PowerShellConfig_GetPowerShellPolicies_BothConfigFilesNotEmpty()
398
399
fixture . CompareTwoPolicies ( userPolicies , fixture . CurrentUserPolicies ) ;
399
400
}
400
401
401
- [ Fact , TestPriority ( 2 ) ]
402
+ [ Fact , Priority ( 2 ) ]
402
403
public void PowerShellConfig_GetPowerShellPolicies_EmptyUserConfig ( )
403
404
{
404
405
fixture . SetupConfigFile2 ( ) ;
@@ -413,7 +414,7 @@ public void PowerShellConfig_GetPowerShellPolicies_EmptyUserConfig()
413
414
fixture . CompareTwoPolicies ( sysPolicies , fixture . SystemWidePolicies ) ;
414
415
}
415
416
416
- [ Fact , TestPriority ( 3 ) ]
417
+ [ Fact , Priority ( 3 ) ]
417
418
public void PowerShellConfig_GetPowerShellPolicies_EmptySystemConfig ( )
418
419
{
419
420
fixture . SetupConfigFile3 ( ) ;
@@ -428,7 +429,7 @@ public void PowerShellConfig_GetPowerShellPolicies_EmptySystemConfig()
428
429
fixture . CompareTwoPolicies ( userPolicies , fixture . CurrentUserPolicies ) ;
429
430
}
430
431
431
- [ Fact , TestPriority ( 4 ) ]
432
+ [ Fact , Priority ( 4 ) ]
432
433
public void PowerShellConfig_GetPowerShellPolicies_BothConfigFilesEmpty ( )
433
434
{
434
435
fixture . SetupConfigFile4 ( ) ;
@@ -441,7 +442,7 @@ public void PowerShellConfig_GetPowerShellPolicies_BothConfigFilesEmpty()
441
442
Assert . Null ( userPolicies ) ;
442
443
}
443
444
444
- [ Fact , TestPriority ( 5 ) ]
445
+ [ Fact , Priority ( 5 ) ]
445
446
public void PowerShellConfig_GetPowerShellPolicies_BothConfigFilesNotExist ( )
446
447
{
447
448
fixture . CleanupConfigFiles ( ) ;
@@ -454,7 +455,7 @@ public void PowerShellConfig_GetPowerShellPolicies_BothConfigFilesNotExist()
454
455
Assert . Null ( userPolicies ) ;
455
456
}
456
457
457
- [ Fact , TestPriority ( 6 ) ]
458
+ [ Fact , Priority ( 6 ) ]
458
459
public void Utils_GetPolicySetting_BothConfigFilesNotEmpty ( )
459
460
{
460
461
fixture . SetupConfigFile1 ( ) ;
@@ -553,7 +554,7 @@ public void Utils_GetPolicySetting_BothConfigFilesNotEmpty()
553
554
fixture . CompareConsoleSessionConfiguration ( consoleSessionConfiguration , fixture . SystemWidePolicies . ConsoleSessionConfiguration ) ;
554
555
}
555
556
556
- [ Fact , TestPriority ( 7 ) ]
557
+ [ Fact , Priority ( 7 ) ]
557
558
public void Utils_GetPolicySetting_EmptyUserConfig ( )
558
559
{
559
560
fixture . SetupConfigFile2 ( ) ;
@@ -652,7 +653,7 @@ public void Utils_GetPolicySetting_EmptyUserConfig()
652
653
fixture . CompareConsoleSessionConfiguration ( consoleSessionConfiguration , fixture . SystemWidePolicies . ConsoleSessionConfiguration ) ;
653
654
}
654
655
655
- [ Fact , TestPriority ( 8 ) ]
656
+ [ Fact , Priority ( 8 ) ]
656
657
public void Utils_GetPolicySetting_EmptySystemConfig ( )
657
658
{
658
659
fixture . SetupConfigFile3 ( ) ;
@@ -752,7 +753,7 @@ public void Utils_GetPolicySetting_EmptySystemConfig()
752
753
fixture . CompareConsoleSessionConfiguration ( consoleSessionConfiguration , null ) ;
753
754
}
754
755
755
- [ Fact , TestPriority ( 9 ) ]
756
+ [ Fact , Priority ( 9 ) ]
756
757
public void Utils_GetPolicySetting_BothConfigFilesEmpty ( )
757
758
{
758
759
fixture . SetupConfigFile4 ( ) ;
@@ -852,7 +853,7 @@ public void Utils_GetPolicySetting_BothConfigFilesEmpty()
852
853
fixture . CompareConsoleSessionConfiguration ( consoleSessionConfiguration , null ) ;
853
854
}
854
855
855
- [ Fact , TestPriority ( 10 ) ]
856
+ [ Fact , Priority ( 10 ) ]
856
857
public void Utils_GetPolicySetting_BothConfigFilesNotExist ( )
857
858
{
858
859
fixture . CleanupConfigFiles ( ) ;
0 commit comments