public void AddTest() { OutputColumn target = new OutputColumn(); MHashColumnInformation expected = new MHashColumnInformation(0, Microsoft.SqlServer.Dts.Runtime.Wrapper.DataType.DT_I8); int actual; actual = target.Add(new MHashColumnInformation(0, Microsoft.SqlServer.Dts.Runtime.Wrapper.DataType.DT_I8)); Assert.AreEqual(0, actual); actual = target.Add(new MHashColumnInformation(0, Microsoft.SqlServer.Dts.Runtime.Wrapper.DataType.DT_I4)); Assert.AreEqual(1, actual); }
public void AddTest() { OutputColumn target = new OutputColumn(); int inputColumnId = 10; int expected = 0; int actual; actual = target.Add(inputColumnId); Assert.AreEqual(expected, actual); actual = target.Add(++inputColumnId); Assert.AreEqual(++expected, actual); }
public void CountTest() { OutputColumn target = new OutputColumn(); int actual; actual = target.Count; Assert.AreEqual(0, actual); target.Add(12); actual = target.Count; Assert.AreEqual(1, actual); }
public void CountTest() { OutputColumn target = new OutputColumn(); int actual; actual = target.Count; Assert.AreEqual(0, actual); target.Add(new MHashColumnInformation(12, Microsoft.SqlServer.Dts.Runtime.Wrapper.DataType.DT_I2)); actual = target.Count; Assert.AreEqual(1, actual); }
public void ItemTest() { OutputColumn target = new OutputColumn(); int index = 0; int expected = 25; int actual; target.Add(0); target[index] = expected; actual = target[index]; Assert.AreEqual(expected, actual); }
public void ItemTest() { OutputColumn target = new OutputColumn(); int index = 0; MHashColumnInformation expected = new MHashColumnInformation(25, Microsoft.SqlServer.Dts.Runtime.Wrapper.DataType.DT_BOOL); MHashColumnInformation actual; target.Add(new MHashColumnInformation(25, Microsoft.SqlServer.Dts.Runtime.Wrapper.DataType.DT_BOOL)); target[index] = new MHashColumnInformation(25, Microsoft.SqlServer.Dts.Runtime.Wrapper.DataType.DT_BOOL); actual = target[index]; Assert.AreEqual(expected.ColumnDataType, actual.ColumnDataType); Assert.AreEqual(expected.ColumnId, actual.ColumnId); }