Skip to content

Commit a4d587e

Browse files
committed
fixed test and updated changelog
1 parent efb89c3 commit a4d587e

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ All notable changes to **bUnit** will be documented in this file. The project ad
55
### Changed
66
- Better error description from `MarkupMatches` when two sets of markup are different.
77

8+
### Fixed
9+
- `cut.FindComponent<xxx>()` doesnt return the component in cut. It now searches and finds the first child component.
10+
811
### Removed
912
- The generic collection assertion methods `ShouldAllBe<T>(this IEnumerable<T> collection, params Action<T, int>[] elementInspectors)` and `ShouldAllBe<T>(this IEnumerable<T> collection, params Action<T>[] elementInspectors)` have been removed from the library.
1013

src/bunit.web.tests/Rendering/RenderedFragmentTest.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,6 @@ public void Test100()
102102
cut.Instance.Header.ShouldBe("First");
103103
}
104104

105-
[Fact(DisplayName = "FindComponent returns CUT if it is the first component of the requested type", Skip = "doesnt make much sense tbh")]
106-
public void Test101()
107-
{
108-
var cut = RenderComponent<Simple1>();
109-
110-
var cutAgain = cut.FindComponent<Simple1>();
111-
112-
cut.Instance.ShouldBe(cutAgain.Instance);
113-
}
114-
115105
[Fact(DisplayName = "GetComponent throws when component of requested type is not in the render tree")]
116106
public void Test102()
117107
{

0 commit comments

Comments
 (0)