Ejemplo n.º 1
0
        public void Test_Contains()
        {
            var seq = new SequentialSearch <Byte, Char>();

            seq.Add(1, 'A');
            seq.Add(2, 'B');

            Assert.True(seq.Contains(1));
            Assert.True(seq.Contains(2));
        }
Ejemplo n.º 2
0
        public void Test_Delete()
        {
            var seq = new SequentialSearch <Byte, Char>();

            seq.Add(1, 'A');
            seq.Delete(1);

            Assert.False(seq.Contains(1));
        }