public void GetSetTest(uint index, bool value, uint checkIndex, bool expected) { var cut = new BitArrayUInt(); cut.Set(index, value); Assert.IsTrue(expected == cut.Get(checkIndex)); }
public void GetValuesFromArray() { var cut = new BitArrayUInt(); cut.Set(1, true); cut.Set(11, true); cut.Set(11111, true); cut.Set(100000000, true); cut.Set(4000000000, true); CollectionAssert.AreEqual( new uint[] { 1, 11, 11111, 100000000, 4000000000 }, cut.GetValuesFromArray()); }