Esempio n. 1
0
        public void ToUrl_NullUrl_ThrowsException()
        {
            // arrange
            var service = new RedirectService();

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

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

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

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