Xunit.Sdk.MultipleException Empty #2517
Answered
by
bradwilson
rabyjaycie14
asked this question in
Question
-
Hi, I'm somewhat new to using assertions, and I just came across I'm attempting to use this new method, but am encountering an issue. Consider this sample BUnit test, which runs on XUnit: [Fact]
public void AssertMultiples()
{
// Setup mocks
// Register services
IRenderedComponent<MyComponent> cut = RenderComponent<MyComponent>();
IReadOnlyList <IRenderedComponent<MyChildComponent>> MyChildComponent = cut.FindComponents<MyChildComponent>();
bool myBool = MyChildComponent[0].Instance.MyBool;
string myString = MyChildComponent[0].Instance.MyString;
Assert.Multiple(
() => Assert.True(myBool),
() => Assert.True(myString == "Hello World"!));
} When I run the test, it results in the following: Xunit.Sdk.MultipleException
Multiple failures were encountered:
Inner stack traces: Upon reviewing the source code, it appears it should report every exception encountered, so I'm wondering if I'm setting up my test incorrectly? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
bradwilson
Jul 24, 2022
Replies: 1 comment
-
Looks like a bug! Filed: #2556 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bradwilson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like a bug! Filed: #2556