public void ShoudNotReturnPreviousValue() { RangeValueProvider provider; provider = new RangeValueProvider(); Assert.ThrowsException <ArgumentOutOfRangeException>(() => provider.GetPreviousValue(char.MinValue)); }
public void ShoudReturnPreviousValue() { RangeValueProvider provider; provider = new RangeValueProvider(); Assert.AreEqual('a', provider.GetPreviousValue('b')); }
public void ShoudReturnNextValue() { RangeValueProvider provider; provider = new RangeValueProvider(); Assert.AreEqual('b', provider.GetNextValue('a')); }
public void ShoudReturnIsMaxValue() { RangeValueProvider provider; provider = new RangeValueProvider(); Assert.IsTrue(provider.IsMaxValue(char.MaxValue)); Assert.IsFalse(provider.IsMaxValue('a')); }
public void ShoudNReturnTerminalRange() { RangeValueProvider provider; ITerminalRangeInput <char> range; provider = new RangeValueProvider(); range = provider.CreateTerminalRangeInput('a', 'z'); Assert.AreEqual('a', range.FirstValue); Assert.AreEqual('z', range.LastValue); }
public void SetUp() { _rangeValue = new RangeValueControlStub(new Control()); _provider = new RangeValueProvider(_rangeValue); }
public void SetUp() { _rangeValue = new RangeValueControlStub(new Control()); _provider = new RangeValueProvider(_rangeValue); }