public void SetUp() { item0 = new TestKeyRecord(Item0Key); item1 = new TestKeyRecord(Item1Key); item2 = new TestKeyRecord(Item2Key); item3 = new TestKeyRecord(Item3Key); item4 = new TestKeyRecord(Item4Key); collection = new[] { item0, item1, item2, item3, item4, }; }
public void TestThis2() { var c = new KeyRecordCollection <TestKeyRecord>(collection); Assert.That(() => { TestKeyRecord r = c["197"]; }, Throws.TypeOf <IndexOutOfRangeException>()); }