Example #1
0
        public void Constractor_WhenPreviousPageHrefIsNull_ThrowsArgumentException()
        {
            Action act = () => BuildPageHref.AValidOne().With(h => h.Previous = null).Please();

            act.Should().Throw <ArgumentException>();
        }
Example #2
0
        public void Next_ByDefault_ReturnsNext(string next)
        {
            var sut = BuildPageHref.AValidOne().With(s => s.Next = next).Please();

            sut.Next.Should().Be(next);
        }
Example #3
0
        public void Previous_ByDefault_ReturnsPrevious(string previous)
        {
            var sut = BuildPageHref.AValidOne().With(s => s.Previous = previous).Please();

            sut.Previous.Should().Be(previous);
        }
Example #4
0
        public void Current_ByDefault_ReturnsCurrent(string current)
        {
            var sut = BuildPageHref.AValidOne().With(s => s.Current = current).Please();

            sut.Current.Should().Be(current);
        }