public void ToUrl_NullUrl_ThrowsException() { // arrange var service = new RedirectService(); // act / assert service.ToUrl(null); }
public void ToUrl_WhatEverIWant_Redirects() { // arrange var service = new RedirectService(); // act var result = service.ToUrl("whateveriwant"); // assert result.Url.Should().Be("whateveriwant"); }
public void ToUrl_EmptyUrl_ThrowsException() { // arrange var service = new RedirectService(); // act / assert service.ToUrl(""); }