bUnit-dev / bUnit

bUnit is a testing library for Blazor components that make tests look, feel, and runs like regular unit tests. bUnit makes it easy to render and control a component under test’s life-cycle, pass parameter and inject services into it, trigger event handlers, and verify the rendered markup from the component using a built-in semantic HTML comparer.
https://bunit.dev
MIT License
1.14k stars 105 forks source link

Create TRY.NET Sample to embed into Docs #145

Closed razfriman closed 9 months ago

razfriman commented 4 years ago

Is your feature request related to a problem? Please describe. Reading docs is not as intuitive as a working example where you can tinker and see how a library works

Describe the solution you'd like A TRY.NET sample with a test component and a bUnit test. The test could show an assertion being made and include a “TEST” button that runs the rest.

razfriman commented 4 years ago

https://try.dot.net/

egil commented 4 years ago

Thats a good idea @razfriman. Do you have any experience setting that up and integrating it into DocFx?

razfriman commented 4 years ago

I actually don’t exactly how to set this up, but I was doing some reading on the subject after I had the thought. That reading led me to these samples of using the tool:

https://github.com/dotnet/try-samples

Perhaps one of these samples might be extended

egil commented 4 years ago

Yeah, it should be possible. More info here: https://devblogs.microsoft.com/dotnet/creating-interactive-net-documentation/