public void CountRow(int countKey1, int key2)
        {
            var twoKeyHashtable = new TwoKeyHashtable();

            for (int i = 0; i < countKey1; i++)
            {
                twoKeyHashtable.Add(i, key2, 0);
            }

            var result = twoKeyHashtable.CountRow();

            Assert.Equal(countKey1, result);
        }
        public void Add(int countKey1, int countKey2)
        {
            var twoKeyHashtable = new TwoKeyHashtable();
            var result          = true;

            for (int i = 0; i < countKey1; i++)
            {
                for (int j = 0; j < countKey2; j++)
                {
                    twoKeyHashtable.Add(i, j, i + "," + j);
                    result &= twoKeyHashtable.Item(i, j) == (i + "," + j);
                }
            }

            Assert.True(result);
        }
        public void Clear(int countKey1, int countKey2)
        {
            var twoKeyHashtable = new TwoKeyHashtable();

            for (int i = 0; i < countKey1; i++)
            {
                for (int j = 0; j < countKey2; j++)
                {
                    twoKeyHashtable.Add(i, j, 0);
                }
            }
            twoKeyHashtable.Clear();

            var result = twoKeyHashtable.CountRow();

            Assert.Equal(0, result);
        }