@@ -288,13 +288,9 @@ internal InformationBoxForm(string text,
288288 InformationBoxSound sound = InformationBoxSound . Default )
289289 {
290290 this . InitializeComponent ( ) ;
291- // TODO: [P0.2] Replace CreateGraphics with ITextMeasurement interface injection
292- // See TESTABILITY_ROADMAP.md - this prevents headless testing
293291 this . measureGraphics = CreateGraphics ( ) ;
294292 this . measureGraphics . TextRenderingHint = System . Drawing . Text . TextRenderingHint . AntiAlias ;
295293
296- // TODO: [P1.3] Replace SystemFonts with ISystemResources interface injection
297- // See TESTABILITY_ROADMAP.md - this prevents testing without system fonts
298294 // Apply default font for message boxes
299295 this . Font = SystemFonts . MessageBoxFont ;
300296 this . messageText . Font = SystemFonts . MessageBoxFont ;
@@ -646,8 +642,6 @@ internal InformationBoxResult Show(out CheckState state)
646642 /// </summary>
647643 private void PlaySound ( )
648644 {
649- // TODO: [P1.3] Replace SystemSounds with ISystemResources.PlaySound(InformationBoxSound)
650- // See TESTABILITY_ROADMAP.md - this entire method logic should move to WindowsSystemResources
651645 if ( sound == InformationBoxSound . None )
652646 {
653647 return ;
@@ -1007,8 +1001,6 @@ private void SetFocus()
10071001 /// </summary>
10081002 private void SetLayout ( )
10091003 {
1010- // TODO: [P0.1] Extract this 110-line method to InformationBoxPresenter.CalculateLayout()
1011- // See TESTABILITY_ROADMAP.md - this complex layout logic should be testable without WinForms
10121004 int totalHeight ;
10131005 int totalWidth ;
10141006
@@ -1068,8 +1060,6 @@ private void SetLayout()
10681060
10691061 totalHeight = Math . Max ( iconHeight , textHeight ) + BorderPadding * 2 + this . pnlBas . Height ;
10701062
1071- // TODO: [P1.3] Replace Screen.PrimaryScreen with ISystemResources.GetWorkingArea()
1072- // See TESTABILITY_ROADMAP.md - hardcoded screen metrics prevent testing with different screen sizes
10731063 // Add a small space to avoid vertical scrollbar.
10741064 if ( iconAndTextWidth > Screen . PrimaryScreen . WorkingArea . Width - 100 )
10751065 {
@@ -1341,8 +1331,6 @@ private void SetText()
13411331 /// </summary>
13421332 private void SetButtons ( )
13431333 {
1344- // TODO: [P0.1] Extract button generation logic to InformationBoxPresenter.GetButtons()
1345- // See TESTABILITY_ROADMAP.md - this logic should return List<ButtonDefinition> without WinForms dependencies
13461334 // Abort button
13471335 if ( this . buttons == InformationBoxButtons . AbortRetryIgnore )
13481336 {
@@ -1698,8 +1686,6 @@ private void InformationBoxForm_KeyDown(object sender, KeyEventArgs e)
16981686 /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
16991687 private void TmrAutoClose_Tick ( object sender , EventArgs e )
17001688 {
1701- // TODO: [P0.1] Extract this 115-line timer logic to InformationBoxPresenter.UpdateAutoClose(TimeSpan elapsed)
1702- // See TESTABILITY_ROADMAP.md - this should be a pure function returning AutoCloseState without Timer dependencies
17031689 if ( this . elapsedTime == this . autoClose . Seconds )
17041690 {
17051691 this . tmrAutoClose . Stop ( ) ;
0 commit comments