public void ConstructWithValues() { var todoItem = new ToDoItem { Description = "Test", DueDate = DateTime.Now, IsDone = true }; todoItem.Should().NotBeNull().And.BeOfType <ToDoItem>(); todoItem.Description.Should().Be("Test"); todoItem.DueDate.Should().BeCloseTo(DateTime.Now, 5000); // lazy solution :) todoItem.IsDone.Should().BeTrue(); }
public void Then_it_should_retry_and_complete_if_database_becomes_available() { _result.Should().NotBeNull(); TransientFailureCausingCommandInterceptor.RetryRunningTotal.Should().Be(3); }