Example #1
0
        public void ToUrl_NullUrl_ThrowsException()
        {
            // arrange
            var service = new RedirectService();

            // act / assert
            service.ToUrl(null);
        }
Example #2
0
        public void ToUrl_EmptyUrl_ThrowsException()
        {
            // arrange
            var service = new RedirectService();

            // act / assert
            service.ToUrl("");
        }
Example #3
0
        public void ToUrl_WhatEverIWant_Redirects()
        {
            // arrange
            var service = new RedirectService();

            // act
            var result = service.ToUrl("whateveriwant");

            // assert
            result.Url.Should().Be("whateveriwant");
        }