public void SetValue_ValidValue_Succeeds(int bitStateCount, int value) { var bit = new TestBit(bitStateCount); bit.SetValue(value); Assert.True(true); }
public void SetValue_InvalidValue_ThrowsException(int bitStateCount, int value) { var bit = new TestBit(bitStateCount); Action action = () => { bit.SetValue(value); }; Assert.Throws <ArgumentOutOfRangeException>(action); }
public void Constructor_ValidStateCount_ReturnsBit(int bitStateCount) { var bit = new TestBit(bitStateCount); Assert.NotNull(bit); }