public void DefaultContstructor() { var col = new ModbusDataCollection <TData>(); Assert.NotEmpty(col); Assert.Equal(1, col.Count); col.Add(default(TData)); Assert.Equal(2, col.Count); }
public void ContstructorWithParams() { TData[] source = GetArray(); var col = new ModbusDataCollection <TData>(source); Assert.Equal(source.Length + 1, col.Count); Assert.NotEmpty(col); col.Add(default(TData)); Assert.Equal(source.Length + 2, col.Count); }