Пример #1
0
        public void SetValue_InvalidValue_ThrowsException(int bitStateCount, int value)
        {
            var    bit    = new TestBit(bitStateCount);
            Action action = () => { bit.SetValue(value); };

            Assert.Throws <ArgumentOutOfRangeException>(action);
        }
Пример #2
0
        public void SetValue_ValidValue_Succeeds(int bitStateCount, int value)
        {
            var bit = new TestBit(bitStateCount);

            bit.SetValue(value);
            Assert.True(true);
        }