public void TryParseOfxDateTime_ShouldReturnTrueWhenValueCorrect(string strValue, string expetedValue) { var result = OfxValuesParser.TryParse(strValue, out DateTime parsedValue); result.Should().BeTrue(); parsedValue.Should().Be(DateTime.Parse(expetedValue)); }
public void TryParseOfxEntryType_ShouldReturnTrueWhenValueCorrect(string strValue, OfxEntryType expectedType) { var result = OfxValuesParser.TryParse(strValue, out OfxEntryType parsedValue); result.Should().BeTrue(); parsedValue.Should().Be(expectedType); }
public void TryParseOfxDateTime_ShouldReturnFalseWhenValueIncorrect(string strValue) { var result = OfxValuesParser.TryParse(strValue, out DateTime _); result.Should().BeFalse(); }