public void Encode_List_With_Null_Value_Throws_ArgumentNullException() { var value = new List <string> { "one", null, "two" }; var ex = Assert.Throws <ArgumentNullException>(() => TypeCodec.EncodeList(2, new ListColumnInfo { ValueTypeCode = ColumnTypeCode.Text }, value)); StringAssert.Contains("collections", ex.Message); }