public void DiagnosticEnabled_should_be_false_with_false_or_null_tutorial_diagnostic_status(bool status) { // Given var tutorial = TutorialTestHelper.GetDefaultTutorial(diagStatus: status); // When var viewModel = new CourseTutorialViewModel(tutorial); // Then viewModel.DiagnosticEnabled.Should().BeFalse(); }
public void DiagnosticEnabled_should_be_true() { // Given var tutorial = TutorialTestHelper.GetDefaultTutorial(); // When var viewModel = new CourseTutorialViewModel(tutorial); // Then viewModel.DiagnosticEnabled.Should().BeTrue(); }
public void CourseHasContent_is_true_when_at_least_one_section_has_diagnostic_assessment_tutorial() { // Given var enabledTutorial = TutorialTestHelper.GetDefaultTutorial(status: false); var enabledSection = new Section(1, "test", new List <Tutorial> { enabledTutorial, DisabledTutorial }); // When var viewModel = new CourseContentViewModel( 1, "course", false, new List <Section> { enabledSection, DisabledSection } ); // Then viewModel.CourseHasContent.Should().BeTrue(); }