public void TestReadWriteAlternating() { BigBoolArray a = new BigBoolArray(100); for (int i = 0; i < a.Length; i++) { a[i] = i % 2 == 0; } for (int i = 0; i < a.Length; i++) { Assert.AreEqual(i % 2 == 0, a[i]); } }
public void TestReadWrite() { BigBoolArray a = new BigBoolArray(50); a[0] = false; a[1] = true; a[43] = true; a[47] = false; Assert.AreEqual(false, a[0]); Assert.AreEqual(true, a[1]); Assert.AreEqual(true, a[43]); Assert.AreEqual(false, a[47]); }
public void TestConstructorWithStreamTooSmall() { BigBoolArray a = new BigBoolArray(10, new MemoryStream(1)); }
public void TestConstructor() { BigBoolArray a = new BigBoolArray(10); }