protected override object[] CreateValues() { StringBufferHandlerUpdateTestCase.Item[] items = new StringBufferHandlerUpdateTestCase.Item [data.Length + 1]; for (int i = 0; i < data.Length; i++) { StringBufferHandlerUpdateTestCase.Item item = new StringBufferHandlerUpdateTestCase.Item (); item._typed = data[i]; item._untyped = data[i]; items[i] = item; } items[items.Length - 1] = new StringBufferHandlerUpdateTestCase.Item(); return(items); }
protected override void AssertValues(IExtObjectContainer objectContainer, object[] values) { for (int i = 0; i < data.Length; i++) { StringBufferHandlerUpdateTestCase.Item item = (StringBufferHandlerUpdateTestCase.Item )values[i]; AssertAreEqual(data[i], item._typed); AssertAreEqual(data[i], (StringBuilder)item._untyped); } StringBufferHandlerUpdateTestCase.Item nullItem = (StringBufferHandlerUpdateTestCase.Item )values[values.Length - 1]; Assert.IsNull(nullItem._typed); Assert.IsNull(nullItem._untyped); }
protected override object[] CreateValues() { StringBufferHandlerUpdateTestCase.Item[] items = new StringBufferHandlerUpdateTestCase.Item [data.Length + 1]; for (int i = 0; i < data.Length; i++) { StringBufferHandlerUpdateTestCase.Item item = new StringBufferHandlerUpdateTestCase.Item (); item._typed = data[i]; item._untyped = data[i]; items[i] = item; } items[items.Length - 1] = new StringBufferHandlerUpdateTestCase.Item(); return items; }