public void HasBitAt_IndexIsInRange_ResultAsExpected(Int32 index, Int32 actual, Boolean expected) { IBitCharger instance = this.CreateInstance(); instance.SetBitAt(index, true); Assert.That(instance.HasBitAt(actual), Is.EqualTo(expected)); }
public void HasBitAt_IndexIsGreaterThanLength_ResultIsFalse() { IBitCharger instance = this.CreateInstance(); Assert.That(instance.HasBitAt(instance.Length + 1), Is.False); }
public void HasBitAt_IndexIsLessThanZero_ResultIsFalse() { IBitCharger instance = this.CreateInstance(); Assert.That(instance.HasBitAt(-1), Is.False); }