|
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | + <head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <title>Namespace Bunit.Asserting |
| 6 | + | bUnit </title> |
| 7 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 8 | + <meta name="title" content="Namespace Bunit.Asserting |
| 9 | + | bUnit "> |
| 10 | + <meta name="description" content="bUnit is a unit testing library for Blazor Components. You can easily define components under test in C# or Razor syntax and verify outcome using semantic HTML diffing/comparison logic. You can interact with and inspect components, trigger event handlers, provide cascading values, inject services, mock IJsRuntime, and perform snapshot testing."> |
| 11 | + <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> |
| 12 | + <link rel="icon" href="/favicon.ico"> |
| 13 | + <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> |
| 14 | + <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> |
| 15 | + <link rel="manifest" href="/site.webmanifest"> |
| 16 | + <meta name="msapplication-TileColor" content="#da532c"> |
| 17 | + <meta name="theme-color" content="#ffffff"> |
| 18 | + |
| 19 | + <link rel="manifest" href="/site.webmanifest"> |
| 20 | + |
| 21 | + <link rel="stylesheet" href="../public/docfx.min.css"> |
| 22 | + <link rel="stylesheet" href="../public/main.css"> |
| 23 | + <meta name="docfx:navrel" content="../toc.html"> |
| 24 | + <meta name="docfx:tocrel" content="toc.html"> |
| 25 | + |
| 26 | + <meta name="docfx:rel" content="../"> |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + <meta name="loc:inThisArticle" content="In this article"> |
| 31 | + <meta name="loc:searchResultsCount" content="{count} results for "{query}""> |
| 32 | + <meta name="loc:searchNoResults" content="No results for "{query}""> |
| 33 | + <meta name="loc:tocFilter" content="Filter by title"> |
| 34 | + <meta name="loc:nextArticle" content="Next"> |
| 35 | + <meta name="loc:prevArticle" content="Previous"> |
| 36 | + <meta name="loc:themeLight" content="Light"> |
| 37 | + <meta name="loc:themeDark" content="Dark"> |
| 38 | + <meta name="loc:themeAuto" content="Auto"> |
| 39 | + <meta name="loc:changeTheme" content="Change theme"> |
| 40 | + <meta name="loc:copy" content="Copy"> |
| 41 | + <meta name="loc:downloadPdf" content="Download PDF"> |
| 42 | + </head> |
| 43 | + |
| 44 | + <script type="module" src="./../public/docfx.min.js"></script> |
| 45 | + |
| 46 | + <script> |
| 47 | + const theme = localStorage.getItem('theme') || 'auto' |
| 48 | + document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light') : theme) |
| 49 | + </script> |
| 50 | + |
| 51 | + |
| 52 | + <body class="tex2jax_ignore" data-layout="" data-yaml-mime="ManagedReference"> |
| 53 | + <header class="bg-body border-bottom"> |
| 54 | + <nav id="autocollapse" class="navbar navbar-expand-md" role="navigation"> |
| 55 | + <div class="container-xxl flex-nowrap"> |
| 56 | + <a class="navbar-brand" href="../index.html"> |
| 57 | + <img id="logo" class="svg" src="..//images/bunit-logo.png" alt="bUnit"> |
| 58 | + bUnit |
| 59 | + </a> |
| 60 | + <button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation"> |
| 61 | + <i class="bi bi-three-dots"></i> |
| 62 | + </button> |
| 63 | + <div class="collapse navbar-collapse" id="navpanel"> |
| 64 | + <div id="navbar"> |
| 65 | + <form class="search" role="search" id="search"> |
| 66 | + <i class="bi bi-search"></i> |
| 67 | + <input class="form-control" id="search-query" type="search" disabled="" placeholder="Search" autocomplete="off" aria-label="Search"> |
| 68 | + </form> |
| 69 | + </div> |
| 70 | + </div> |
| 71 | + </div> |
| 72 | + </nav> |
| 73 | + </header> |
| 74 | + |
| 75 | + <main class="container-xxl"> |
| 76 | + <div class="toc-offcanvas"> |
| 77 | + <div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel"> |
| 78 | + <div class="offcanvas-header"> |
| 79 | + <h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5> |
| 80 | + <button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button> |
| 81 | + </div> |
| 82 | + <div class="offcanvas-body"> |
| 83 | + <nav class="toc" id="toc"></nav> |
| 84 | + </div> |
| 85 | + </div> |
| 86 | + </div> |
| 87 | + |
| 88 | + <div class="content"> |
| 89 | + <div class="actionbar"> |
| 90 | + <button class="btn btn-lg border-0 d-md-none" style="margin-top: -.65em; margin-left: -.8em" type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas" aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents"> |
| 91 | + <i class="bi bi-list"></i> |
| 92 | + </button> |
| 93 | + |
| 94 | + <nav id="breadcrumb"></nav> |
| 95 | + </div> |
| 96 | + |
| 97 | + <article data-uid="Bunit.Asserting"> |
| 98 | + |
| 99 | + <h1 id="Bunit_Asserting" data-uid="Bunit.Asserting" class="text-break">Namespace Bunit.Asserting |
| 100 | +</h1> |
| 101 | + <div class="markdown level0 summary"></div> |
| 102 | + <div class="markdown level0 conceptual"></div> |
| 103 | + <div class="markdown level0 remarks"></div> |
| 104 | + |
| 105 | + <h3 id="classes"> |
| 106 | +Classes |
| 107 | +</h3> |
| 108 | + <dl class="jumplist"> |
| 109 | + <dt><a class="xref" href="Bunit.Asserting.ActualExpectedAssertException.html">ActualExpectedAssertException</a></dt> |
| 110 | + <dd><p>Represents a generic assert exception used when an actual result does not match an expected result.</p> |
| 111 | +</dd> |
| 112 | + </dl> |
| 113 | + <dl class="jumplist"> |
| 114 | + <dt><a class="xref" href="Bunit.Asserting.AssertionMethodAttribute.html">AssertionMethodAttribute</a></dt> |
| 115 | + <dd><p>Add this attribute to assertion methods to indicate to |
| 116 | +3rd party analyzers that the method is an assertion method. |
| 117 | +See more here: <a href="https://rules.sonarsource.com/csharp/RSPEC-2699">https://rules.sonarsource.com/csharp/RSPEC-2699</a>.</p> |
| 118 | +</dd> |
| 119 | + </dl> |
| 120 | + |
| 121 | + |
| 122 | +</article> |
| 123 | + |
| 124 | + <div class="contribution d-print-none"> |
| 125 | + </div> |
| 126 | + |
| 127 | + |
| 128 | + </div> |
| 129 | + |
| 130 | + <div class="affix"> |
| 131 | + <nav id="affix"></nav> |
| 132 | + <div class="border-top text-center pt-4"> |
| 133 | + <a class="d-block" href="https://www.telerik.com/blazor-ui?utm_source=egilhansen&utm_medium=cpm&utm_campaign=blazor-trial-readme-sponsored-message"> |
| 134 | + <img width="240" src="/sponsors/progress-blazor-2022-dec-300x300.png" alt="Progress Telerik"> |
| 135 | + </a> |
| 136 | + <p class="pt-1"><small>Premium sponsor: <a href="https://www.telerik.com/blazor-ui?utm_source=egilhansen&utm_medium=cpm&utm_campaign=blazor-trial-readme-sponsored-message" title="Progress Telerik">Progress Telerik</a>.</small></p> |
| 137 | + </div> |
| 138 | + <div class="border-top text-center pt-4"> |
| 139 | + <a class="d-block" href="https://www.packtpub.com/" title="Packt"> |
| 140 | + <img width="150" src="/sponsors/packt-retina-logo.png" alt="Packt"> |
| 141 | + </a> |
| 142 | + <p class="pt-1"><small>Editorial support provided by <a href="https://www.packtpub.com/" title="Packt">Packt</a>.</small></p> |
| 143 | + </div> |
| 144 | + <div class="border-top text-center pt-4"> |
| 145 | + <a class="d-block" href="https://dotnetfoundation.org" title=".NET Foundation"> |
| 146 | + <img width="150" src="/sponsors/dotnetfoundation_v4_purple.svg" alt=".NET Foundation"> |
| 147 | + </a> |
| 148 | + <p class="pt-1"><small>Supported by the <a href="https://dotnetfoundation.org">.NET Foundation</a>.</small></p> |
| 149 | + </div> |
| 150 | + </div> |
| 151 | + </main> |
| 152 | + |
| 153 | + <div class="container-xxl search-results" id="search-results"></div> |
| 154 | + |
| 155 | + <footer class="border-top text-secondary bg-body-tertiary"> |
| 156 | + <div class="container-xxl"> |
| 157 | + <div class="flex-fill"> |
| 158 | + <small>Documentation updated on #{NBGV_GitCommitDate}# in commit #{NBGV_GitCommitIdShort}#</small> |
| 159 | + </div> |
| 160 | + </div> |
| 161 | + </footer> |
| 162 | + </body> |
| 163 | +</html> |
0 commit comments