csharpdeeb25a2 | 1 | using CascadeIDE.Features.Shell.Application; |
| 2 | using Xunit; |
| 3 | |
| 4 | namespace CascadeIDE.Tests; |
| 5 | |
| 6 | public sealed class MainWindowPresentationDapProjectionTests |
| 7 | { |
| 8 | [Fact] |
| 9 | public void Debug_execution_projection_matches_session_and_stopped_flag() |
| 10 | { |
| 11 | Assert.False(MainWindowPresentationDapProjection.IsDebugExecutionPaused( |
| 12 | hasActiveSession: false, |
| 13 | executionStopped: true)); |
| 14 | Assert.False(MainWindowPresentationDapProjection.IsDebugExecutionRunning( |
| 15 | hasActiveSession: false, |
| 16 | executionStopped: false)); |
| 17 | |
| 18 | Assert.True(MainWindowPresentationDapProjection.IsDebugExecutionPaused( |
| 19 | hasActiveSession: true, |
| 20 | executionStopped: true)); |
| 21 | Assert.False(MainWindowPresentationDapProjection.IsDebugExecutionRunning( |
| 22 | hasActiveSession: true, |
| 23 | executionStopped: true)); |
| 24 | |
| 25 | Assert.False(MainWindowPresentationDapProjection.IsDebugExecutionPaused( |
| 26 | hasActiveSession: true, |
| 27 | executionStopped: false)); |
| 28 | Assert.True(MainWindowPresentationDapProjection.IsDebugExecutionRunning( |
| 29 | hasActiveSession: true, |
| 30 | executionStopped: false)); |
| 31 | } |
| 32 | } |
| 33 | |
View only · write via MCP/CIDE