using QuestionsApi.Services; using Xunit; namespace QuestionsApi.Tests; public sealed class QuestionVisibilityTests { [Theory] [InlineData(true, false, true)] [InlineData(true, true, false)] [InlineData(false, false, false)] [InlineData(false, true, false)] public void IsVisibleToStudent_MatchesTruthTable(bool isPublished, bool isFlagged, bool expected) { Assert.Equal(expected, QuestionVisibility.IsVisibleToStudent(isPublished, isFlagged)); } }