public void AccountIdIsPositiveIntegerExpectSuccess() { MeterCsvValidator validator = new MeterCsvValidator(); Assert.IsTrue(validator.TryParseAccountId("78", out int accountId)); Assert.AreEqual(78, accountId); }
public void AccountIdIsNotANumberExpectFailure() { MeterCsvValidator validator = new MeterCsvValidator(); Assert.IsFalse(validator.TryParseAccountId("ABC", out int accountId)); }
public void AccountIdIsDecimalExpectFailure() { MeterCsvValidator validator = new MeterCsvValidator(); Assert.IsFalse(validator.TryParseAccountId("78.45", out int accountId)); }
public void AccountIdIsNegativeIntegerExpectFailure() { MeterCsvValidator validator = new MeterCsvValidator(); Assert.IsFalse(validator.TryParseAccountId("-78", out int accountId)); }