public void Add_With_Slash_At_The_Begining() { // Arrange var baseUri = new Uri(BASE_URL); // Act var result = baseUri.Add("/" + RELATIVE_URL); // Assert Assert.AreEqual($@"{BASE_URL}/{RELATIVE_URL}/", result.ToString()); }
public void Add() { // Arrange var baseUri = new Uri(BASE_URL); // Act var result = baseUri.Add(RELATIVE_URL); // Assert Assert.AreEqual($@"{BASE_URL}/{RELATIVE_URL}/", result.ToString()); }