public void NegativeDecimalDsLoadTest() { var ds = new DsParameters(); string loadedDs = "RXX00000000123452121500CX 00000000"; ds.Clear(); ds.Load(loadedDs); Assert.Equal(ds.Amount, -21.5003m); }
public void DataStructureClearTest() { var ds = new DsParameters { LdaId = "XX", LdaDate = "00000000", LdaCompany = "12345", RankId = 1, RankNumber = 2, Amount = 21.50m, PaddedParameter = "X" }; ds.Clear(); Assert.Equal(0, ds.Amount); Assert.Null(ds.PaddedParameter); }