@@ -69,7 +69,7 @@ public void TestBasePriorityOnWindows()
69
69
70
70
try
71
71
{
72
- // We are not checking for RealTime case here, as RealTime priority process can
72
+ // We are not checking for RealTime case here, as RealTime priority process can
73
73
// preempt the threads of all other processes, including operating system processes
74
74
// performing important tasks, which may cause the machine to be unresponsive.
75
75
@@ -280,7 +280,7 @@ public void StartTime_GetNotStarted_ThrowsInvalidOperationException()
280
280
public void TestId ( )
281
281
{
282
282
CreateDefaultProcess ( ) ;
283
-
283
+
284
284
if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) )
285
285
{
286
286
Assert . Equal ( _process . Id , Interop . GetProcessId ( _process . SafeHandle ) ) ;
@@ -339,7 +339,7 @@ public void Kill_NotStarted_ThrowsInvalidOperationException()
339
339
public void TestMachineName ( )
340
340
{
341
341
CreateDefaultProcess ( ) ;
342
-
342
+
343
343
// Checking that the MachineName returns some value.
344
344
Assert . NotNull ( _process . MachineName ) ;
345
345
}
@@ -372,7 +372,7 @@ public void TestMainModule()
372
372
public void TestMaxWorkingSet ( )
373
373
{
374
374
CreateDefaultProcess ( ) ;
375
-
375
+
376
376
using ( Process p = Process . GetCurrentProcess ( ) )
377
377
{
378
378
Assert . True ( ( long ) p . MaxWorkingSet > 0 ) ;
@@ -427,7 +427,7 @@ public void MaxValueWorkingSet_GetSetMacos_ThrowsPlatformSupportedException()
427
427
public void TestMinWorkingSet ( )
428
428
{
429
429
CreateDefaultProcess ( ) ;
430
-
430
+
431
431
using ( Process p = Process . GetCurrentProcess ( ) )
432
432
{
433
433
Assert . True ( ( long ) p . MaxWorkingSet > 0 ) ;
@@ -499,7 +499,7 @@ public void TestModules()
499
499
public void TestNonpagedSystemMemorySize64 ( )
500
500
{
501
501
CreateDefaultProcess ( ) ;
502
-
502
+
503
503
AssertNonZeroWindowsZeroUnix ( _process . NonpagedSystemMemorySize64 ) ;
504
504
}
505
505
@@ -650,7 +650,7 @@ public void WorkingSet64_GetNotStarted_ThrowsInvalidOperationException()
650
650
public void TestProcessorTime ( )
651
651
{
652
652
CreateDefaultProcess ( ) ;
653
-
653
+
654
654
Assert . True ( _process . UserProcessorTime . TotalSeconds >= 0 ) ;
655
655
Assert . True ( _process . PrivilegedProcessorTime . TotalSeconds >= 0 ) ;
656
656
@@ -750,7 +750,7 @@ public void ExitTime_GetNotStarted_ThrowsInvalidOperationException()
750
750
public void TestProcessorAffinity ( )
751
751
{
752
752
CreateDefaultProcess ( ) ;
753
-
753
+
754
754
IntPtr curProcessorAffinity = _process . ProcessorAffinity ;
755
755
try
756
756
{
@@ -975,7 +975,7 @@ public void GetProcesses_RemoteMachinePath_ReturnsExpected()
975
975
}
976
976
}
977
977
978
- [ Fact ]
978
+ [ ConditionalFact ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . IsNotWindowsNanoServer ) ) ] // ActiveIssue: https://github.com/dotnet/corefx/issues/32780
979
979
[ SkipOnTargetFramework ( TargetFrameworkMonikers . Uap , "Retrieving information about local processes is not supported on uap" ) ]
980
980
public void GetProcessesByName_ProcessName_ReturnsExpected ( )
981
981
{
@@ -1025,7 +1025,7 @@ public void GetProcessesByName_RemoteMachineNameWindows_ReturnsExpected(string m
1025
1025
}
1026
1026
catch ( InvalidOperationException )
1027
1027
{
1028
- // As we can't detect reliably if performance counters are enabled
1028
+ // As we can't detect reliably if performance counters are enabled
1029
1029
// we let possible InvalidOperationExceptions pass silently.
1030
1030
}
1031
1031
}
@@ -1078,13 +1078,13 @@ void TestRemoteProccess(Process remoteProcess)
1078
1078
}
1079
1079
catch ( InvalidOperationException )
1080
1080
{
1081
- // As we can't detect reliably if performance counters are enabled
1081
+ // As we can't detect reliably if performance counters are enabled
1082
1082
// we let possible InvalidOperationExceptions pass silently.
1083
1083
}
1084
1084
}
1085
1085
1086
1086
[ Fact ]
1087
- [ ActiveIssue ( 31908 , TargetFrameworkMonikers . Uap ) ]
1087
+ [ ActiveIssue ( 31908 , TargetFrameworkMonikers . Uap ) ]
1088
1088
public void StartInfo_GetFileName_ReturnsExpected ( )
1089
1089
{
1090
1090
Process process = CreateProcessLong ( ) ;
@@ -1097,9 +1097,9 @@ public void StartInfo_GetFileName_ReturnsExpected()
1097
1097
process . Kill ( ) ;
1098
1098
Assert . True ( process . WaitForExit ( WaitInMS ) ) ;
1099
1099
}
1100
-
1100
+
1101
1101
[ Fact ]
1102
- [ ActiveIssue ( 31908 , TargetFrameworkMonikers . Uap ) ]
1102
+ [ ActiveIssue ( 31908 , TargetFrameworkMonikers . Uap ) ]
1103
1103
public void StartInfo_SetOnRunningProcess_ThrowsInvalidOperationException ( )
1104
1104
{
1105
1105
Process process = CreateProcessLong ( ) ;
0 commit comments