Skip to content

Commit

Permalink
Update docs for removed ListMapper (#987) 3f496dc
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanKilleen committed Nov 11, 2024
1 parent eb67731 commit e046740
Show file tree
Hide file tree
Showing 3 changed files with 690 additions and 690 deletions.
2 changes: 1 addition & 1 deletion articles/nunit/writing-tests/ListMapper.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ <h1 id="listmapper">ListMapper</h1>
<div class="IMPORTANT">
<h5>Important</h5>
<blockquote>
<p>ListMapper has been deprecated as of NUnit Framework 3.13.2. The functionality will be removed in NUnit Framework 4.0.</p>
<p>ListMapper has been deprecated as of NUnit Framework 3.13.2. The functionality was removed in NUnit Framework 4.0.</p>
</blockquote>
</div>
<p>Unlike Constraint classes, <code>ListMapper</code> is used to modify the actual
Expand Down
2 changes: 1 addition & 1 deletion index.json
Original file line number Diff line number Diff line change
Expand Up @@ -2547,7 +2547,7 @@
"articles/nunit/writing-tests/ListMapper.html": {
"href": "articles/nunit/writing-tests/ListMapper.html",
"title": "ListMapper | NUnit Docs",
"keywords": "ListMapper Important ListMapper has been deprecated as of NUnit Framework 3.13.2. The functionality will be removed in NUnit Framework 4.0. Unlike Constraint classes, ListMapper is used to modify the actual value argument to Assert.That(). It transforms the actual value, which must be a collection, creating a new collection to be tested against the supplied constraint. Currently, ListMapper supports one transformation: creating a collection of property values. Normally, ListMapper will be used through the List.Map() syntax helper. The following example shows two forms of the same assert. string[] strings = new string[] { \"a\", \"ab\", \"abc\" }; int[] lengths = new int[] { 1, 2, 3 }; Assert.That(List.Map(strings).Property(\"Length\"), Is.EqualTo(lengths)); Assert.That(new ListMapper(strings).Property(\"Length\"), Is.EqualTo(lengths));"
"keywords": "ListMapper Important ListMapper has been deprecated as of NUnit Framework 3.13.2. The functionality was removed in NUnit Framework 4.0. Unlike Constraint classes, ListMapper is used to modify the actual value argument to Assert.That(). It transforms the actual value, which must be a collection, creating a new collection to be tested against the supplied constraint. Currently, ListMapper supports one transformation: creating a collection of property values. Normally, ListMapper will be used through the List.Map() syntax helper. The following example shows two forms of the same assert. string[] strings = new string[] { \"a\", \"ab\", \"abc\" }; int[] lengths = new int[] { 1, 2, 3 }; Assert.That(List.Map(strings).Property(\"Length\"), Is.EqualTo(lengths)); Assert.That(new ListMapper(strings).Property(\"Length\"), Is.EqualTo(lengths));"
},
"articles/nunit/writing-tests/Randomizer-Methods.html": {
"href": "articles/nunit/writing-tests/Randomizer-Methods.html",
Expand Down
Loading

0 comments on commit e046740

Please sign in to comment.