Ejemplo n.º 1
0
 public void Given_An_Text_With_An_Url_Then_Replace_Only_The_Url()
 {
     Assert.AreNotEqual("This is a url http://ky-programming.de/ test", Anonymizer.ReplaceUrls("This is a url http://ky-programming.de/ test"));
     Assert.AreNotEqual("This is a url https://ky-programming.de/ test", Anonymizer.ReplaceUrls("This is a url https://ky-programming.de/ test"));
     Assert.AreNotEqual("This is a url https://sub.ky-programming.de test", Anonymizer.ReplaceUrls("This is a url https://sub.ky-programming.de test"));
     Assert.AreNotEqual("This is a url https://ky-programming.de:80/sub test", Anonymizer.ReplaceUrls("This is a url https://ky-programming.de:80/sub test"));
 }