Example #1
0
 public void AddRelNofollowToAnchorsTests(string @in, string @out, bool awaitException)
 {
     try
     {
         var res = FormattingHelper.AddRelNofollowToAnchors(@in);
         Console.WriteLine(res);
         Assert.AreEqual(res, @out);
     }
     catch (Exception e)
     {
         Console.WriteLine(e.GetType().Name);
         if (awaitException)
         {
             Assert.That(e is PhoneValidationException);
         }
         else
         {
             throw;
         }
     }
 }