public void WhenTryParseWithFormatProviderAndDateTimeStylesCalledWithInvalidDate_ExpectFalse() { // Arrange const string dateTimeString = "10/55/2015"; var formatProvider = new DateTimeFormatInfo(); var dateTimeStyles = DateTimeStyles.AdjustToUniversal; const bool expected = false; // Act IDateTime output; var target = new DateTimeWrap(); var actual = target.TryParse(dateTimeString, formatProvider, dateTimeStyles, out output); // Assert actual.Should().Equal(expected); }
public void WhenTryParseCalledWithInvalidDate_ExpectFalse() { // Arrange const string dateTimeString = "10/55/2015"; const bool expected = false; // Act IDateTime output; var target = new DateTimeWrap(); var actual = target.TryParse(dateTimeString, out output); // Assert actual.Should().Equal(expected); }