public void TestInvert()
        {
            BitArray array = new BitArray(1);

            int i = 0;
            array[i] = !array[i];

            Assert.IsTrue(array[i]);
        }
        public void TestEmpty()
        {
            BitArray array = new BitArray(10);
            Assert.AreEqual(10, array.length);

            for (int i = 0; i < array.length; ++i)
            {
                Assert.AreEqual(false, array[i]);
            }
        }
        public void TestData()
        {
            BitArray array = new BitArray(10);

            bool[] flags = new bool[10];
            for (int i = 0; i < flags.Length; ++i)
            {
                array[i] = flags[i] = i % 2 != 0;
            }

            for (int i = 0; i < flags.Length; ++i)
            {
                Assert.AreEqual(flags[i], array[i]);
            }
        }
        public DiseaseList(Player player)
        {
            this.m_player = player;

            remains = new float[diseaseArray.Length];

            flags = new BitArray(diseaseArray.Length);
            oldFlags = new BitArray(diseaseArray.Length);

            randomIndices = new int[diseaseArray.Length];

            for (int i = 0; i < randomIndices.Length; ++i)
            {
                randomIndices[i] = i;
            }
        }
 public void TestInvalidIndex2()
 {
     BitArray array = new BitArray(10);
     array[10] = true;
 }