public void Properties2() { BoolArray array = new BoolArray(new byte[8]); array.Initialize(true); Assert.AreEqual(true, array.IsAllTrue); array.Initialize(false); Assert.AreEqual(true, array.IsAllFalse); array[40] = true; // We also check accessors over one byte. Assert.AreEqual(true, array[40]); }
public void Properties1() { BoolArray array = new BoolArray(10); array.Initialize(); // We now try accesses. array[0] = true; array[1] = false; Assert.AreEqual(true, array[0]); Assert.AreEqual(false, array[1]); Assert.AreEqual(false, array[2]); array.Initialize(true); Assert.AreEqual(true, array[2]); }