using System; using System.IO; using Paca.App; using Paca.Browser.Tabs; using Paca.Tests.Infrastructure; using Xunit; namespace Paca.Tests.Browser; public class ChromeParityMilestone17Tests { [Fact] public void DownloadShelf_모두표시_버튼_XAML_선언_검증() { var xamlPath = SourceTree.AppPath("MainWindow.xaml"); Assert.True(File.Exists(xamlPath), "MainWindow.xaml 파일이 존재해야 합니다."); var xaml = File.ReadAllText(xamlPath); Assert.Contains("DownloadShelfShowAllBtn", xaml); Assert.Contains("모두 표시", xaml); } [Fact] public void MainWindow_AltP_탭고정_토글_단축키_검증() { var csPath = SourceTree.AppPath("MainWindow.xaml.cs"); Assert.True(File.Exists(csPath), "MainWindow.xaml.cs 파일이 존재해야 합니다."); var code = File.ReadAllText(csPath); // Alt+P 키 입력 시 탭 고정(Pin) 토글 동작이 선언되어 있어야 함 Assert.Contains("Key.P", code); Assert.Contains("SetPinned", code); } [Fact] public void MainWindow_AddressBox_PreviewMouseLeftButtonDown_선언_검증() { var xamlPath = SourceTree.AppPath("MainWindow.xaml"); var xaml = File.ReadAllText(xamlPath); Assert.Contains("PreviewMouseLeftButtonDown=\"AddressBox_PreviewMouseLeftButtonDown\"", xaml); } }