選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

19 行
586B

  1. using System.Net;
  2. namespace CartWise.Web.Tests;
  3. // Rendered Razor output HTML-encodes special characters (e.g. ' -> '), so raw substring
  4. // assertions against response bodies produce false negatives for ordinary test data. Decode first.
  5. internal static class HtmlAssert
  6. {
  7. public static void Contains(string expectedText, string html)
  8. {
  9. Assert.Contains(expectedText, WebUtility.HtmlDecode(html));
  10. }
  11. public static void DoesNotContain(string expectedText, string html)
  12. {
  13. Assert.DoesNotContain(expectedText, WebUtility.HtmlDecode(html));
  14. }
  15. }

Powered by TurnKey Linux.