using ClosedXML.Excel; using JdeScoping.ExcelIO.Tests.Fixtures; using Shouldly; using Xunit; namespace JdeScoping.ExcelIO.Tests.Integration; public class MinimalSearchTests : IClassFixture { private readonly XLWorkbook _workbook; public MinimalSearchTests(MinimalSearchFixture fixture) { _workbook = fixture.Workbook; } [Fact] public void SheetCount_IsTwo() { _workbook.Worksheets.Count.ShouldBe(2); } [Fact] public void SearchCriteriaSheet_Exists() { _workbook.Worksheets.TryGetWorksheet("Search Criteria", out _).ShouldBeTrue(); } [Fact] public void SearchResultsSheet_Exists() { _workbook.Worksheets.TryGetWorksheet("Search Results", out _).ShouldBeTrue(); } [Fact] public void SearchCriteriaSheet_IsProtected() { var sheet = _workbook.Worksheet("Search Criteria"); sheet.Protection.IsProtected.ShouldBeTrue(); } [Fact] public void SearchResultsSheet_IsProtected() { var sheet = _workbook.Worksheet("Search Results"); sheet.Protection.IsProtected.ShouldBeTrue(); } }