public void DateStatusApplies_WhenDateSelected_ShouldAcceptWithNoValidationErrors() { // Arrange var dateStatusApplies = new DateTime(2018, 01, 01); // Act Learners_LearnerListObjects learnerTab = WindowObjects.Windows.Main.SelectLearnerTab; learnerTab.ClickAddLearnerButton(); EmploymentStatusObjects employmentStatusTab = WindowObjects.Windows.Main.SelectEmploymentStatusTab; employmentStatusTab.ClickAddEmploymentStatusButton(); employmentStatusTab.SetDateStatusAppliesDateTime(dateStatusApplies); // Assert var error = employmentStatusTab.GetEmploymentStatusValidationMessage; TakeScreenShot(); Assert.True(string.IsNullOrEmpty(error), $"Validation failed for Date status applies {dateStatusApplies}"); }