public void SetUpMoneyColumnsTest() { var columns = "Debitos:Saldo:"; var c = ArgumentHelper.GetMoneyColumns(columns); u2Report.MoneyColumns = c; Assert.IsFalse(u2Report.IsMoneyColumn(1)); Assert.IsTrue(u2Report.IsMoneyColumn(12)); }
public static U2Report Load(string path, string moneyColumns = "") { var u2Report = new U2Report(); var lines = File.ReadAllLines(path, Encoding.Latin1); u2Report.Headers = GetHeader(lines); u2Report.Body = GetBody(lines); u2Report.MoneyColumns = ArgumentHelper.GetMoneyColumns(moneyColumns); return(u2Report); }