@@ -19,6 +19,8 @@ public class ResourceCommandAnnotationTests
19
19
[ InlineData ( KnownResourceCommands . StartCommand , "Unknown" , ResourceCommandState . Enabled ) ]
20
20
[ InlineData ( KnownResourceCommands . StartCommand , "Waiting" , ResourceCommandState . Enabled ) ]
21
21
[ InlineData ( KnownResourceCommands . StartCommand , "RuntimeUnhealthy" , ResourceCommandState . Disabled ) ]
22
+ [ InlineData ( KnownResourceCommands . StartCommand , "" , ResourceCommandState . Disabled ) ]
23
+ [ InlineData ( KnownResourceCommands . StartCommand , null , ResourceCommandState . Disabled ) ]
22
24
[ InlineData ( KnownResourceCommands . StopCommand , "Starting" , ResourceCommandState . Hidden ) ]
23
25
[ InlineData ( KnownResourceCommands . StopCommand , "Stopping" , ResourceCommandState . Disabled ) ]
24
26
[ InlineData ( KnownResourceCommands . StopCommand , "Running" , ResourceCommandState . Enabled ) ]
@@ -28,6 +30,8 @@ public class ResourceCommandAnnotationTests
28
30
[ InlineData ( KnownResourceCommands . StopCommand , "Unknown" , ResourceCommandState . Hidden ) ]
29
31
[ InlineData ( KnownResourceCommands . StopCommand , "Waiting" , ResourceCommandState . Hidden ) ]
30
32
[ InlineData ( KnownResourceCommands . StopCommand , "RuntimeUnhealthy" , ResourceCommandState . Hidden ) ]
33
+ [ InlineData ( KnownResourceCommands . StopCommand , "" , ResourceCommandState . Hidden ) ]
34
+ [ InlineData ( KnownResourceCommands . StopCommand , null , ResourceCommandState . Hidden ) ]
31
35
[ InlineData ( KnownResourceCommands . RestartCommand , "Starting" , ResourceCommandState . Disabled ) ]
32
36
[ InlineData ( KnownResourceCommands . RestartCommand , "Stopping" , ResourceCommandState . Disabled ) ]
33
37
[ InlineData ( KnownResourceCommands . RestartCommand , "Running" , ResourceCommandState . Enabled ) ]
@@ -37,7 +41,9 @@ public class ResourceCommandAnnotationTests
37
41
[ InlineData ( KnownResourceCommands . RestartCommand , "Unknown" , ResourceCommandState . Disabled ) ]
38
42
[ InlineData ( KnownResourceCommands . RestartCommand , "Waiting" , ResourceCommandState . Disabled ) ]
39
43
[ InlineData ( KnownResourceCommands . RestartCommand , "RuntimeUnhealthy" , ResourceCommandState . Disabled ) ]
40
- public void LifeCycleCommands_CommandState ( string commandName , string resourceState , ResourceCommandState commandState )
44
+ [ InlineData ( KnownResourceCommands . RestartCommand , "" , ResourceCommandState . Disabled ) ]
45
+ [ InlineData ( KnownResourceCommands . RestartCommand , null , ResourceCommandState . Disabled ) ]
46
+ public void LifeCycleCommands_CommandState ( string commandName , string ? resourceState , ResourceCommandState commandState )
41
47
{
42
48
// Arrange
43
49
var builder = DistributedApplication . CreateBuilder ( ) ;
0 commit comments