public void AssertWarningsLogged(int expectedCount) { Warnings.Should().HaveCount(expectedCount, "Unexpected number of warnings logged"); }