コード例 #1
0
        public void ItThrowsWhenItIsLowerBound()
        {
            ValidationRule <int> sut = GetSut(2, "a");

            Assert.Throws <ArgumentOutOfRangeException>(() => sut.Between(2, 4));
        }
コード例 #2
0
        public void ItSucceedsWheBetween()
        {
            ValidationRule <int> sut = GetSut(3, "a");

            sut.Between(2, 4);
        }
コード例 #3
0
        public void ItThrowsWhenValueIsToBig()
        {
            ValidationRule <int> sut = GetSut(4, "a");

            Assert.Throws <ArgumentOutOfRangeException>(() => sut.Between(2, 3));
        }