public void TestReplaceMethod() { string baseStr = "https://[DOMAIN]/ads/"; string substitutionStr = "www.gunsexchange.ca"; string expectedStr = "https://www.gunsexchange.ca/ads/"; UriLoader ldr = new UriLoader(); ldr.ReplaceField(ref baseStr, "DOMAIN", substitutionStr); Assert.AreEqual(expectedStr, baseStr); }