コード例 #1
0
 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, };
 }
コード例 #2
0
        public void TestThis2()
        {
            var c = new KeyRecordCollection <TestKeyRecord>(collection);

            Assert.That(() => { TestKeyRecord r = c["197"]; }, Throws.TypeOf <IndexOutOfRangeException>());
        }