public void T0() { // Arrange var testConverter = new OptionalDateTimeToDateTimeConverter(); // Act var actual = testConverter.Convert(null, typeof(object), null !, InvariantCulture); // Assert Assert.Equal(string.Empty, actual); }
public void T2() { // Arrange var testConverter = new OptionalDateTimeToDateTimeConverter(); var testDate = new DateTime(2020, 9, 11, 21, 6, 10); var optional = Option.Some(testDate); // Act var actual = testConverter.Convert(optional, typeof(object), null !, InvariantCulture); // Assert Assert.Equal(testDate, actual); }