Skip to content

Add SetupVoid and SetVoidResult capabilities to JsRuntime mock #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 21, 2020
Merged

Conversation

egil
Copy link
Member

@egil egil commented Jan 17, 2020

This is a solution to #30.

@duracellko / @Siphonophora, would you mind looking over this and giving me your feedback.

@egil egil merged commit c78be10 into dev Jan 21, 2020
egil added a commit that referenced this pull request Jan 22, 2020
* Fixed spelling mistake in comment

* Reordered parameters to top of TestRenderer

* Add support for asynchronous Razor tests (#27)

* Add support for asyncrhonous Razor tests

* Rename Fixture.AsyncTest to TestAsync

* Update description of Fixture

Co-Authored-By: Egil Hansen <[email protected]>

* Dotnetconf samples (#33)

* Basic example tests

* Add missing MarkupMatches overload

* Added docs to MockHttp extensions

* dotnet conf samples

* Added unit tests of CompareTo, Generic and Collection assert extensions.

* Added tests for general events and touch events dispatch extensions

* Added tests for anglesharp extensions, JsRuntimeInvocation and ComponentParameter

* Removed assert helpers that conflict with Shoudly

* Tests of JsRuntimeAsserts

* Reorganized test library

* Suppressing warnings in sample

* Changed ITestContext to have a CreateNodes method instead of HtmlParser property

* Removed empty test

* Added missing code documentation

* Moved MockJsRuntime to its own namespace

* Pulled sample from main solution into own solution

* Update main.yml

* Change GetNodes and GetMarkup to Nodes and Markup properties in IRenderedFragment (#34)

* Add SetupVoid and SetVoidResult capabilities to JsRuntime mock (#35)

* Moved MockJsRuntime to its own namespace

* Add SetupVoid() and SetVoidResult() to PlannedInvocation and Mock

* Updates to template and sample

* Add default JsRuntime (#32)

* Add default JsRuntime

* Update src/Mocking/JSInterop/DefaultJsRuntime.cs

Co-Authored-By: Egil Hansen <[email protected]>

* Response to review. Add custom exception and code cleanup

* Remove unneded method

* Update src/Mocking/JSInterop/MissingMockJsRuntimeException.cs

Co-Authored-By: Egil Hansen <[email protected]>

* Update src/Mocking/JSInterop/MissingMockJsRuntimeException.cs

Co-Authored-By: Egil Hansen <[email protected]>

* Update src/Mocking/JSInterop/MissingMockJsRuntimeException.cs

Co-Authored-By: Egil Hansen <[email protected]>

* Update src/Mocking/JSInterop/MissingMockJsRuntimeException.cs

Co-Authored-By: Egil Hansen <[email protected]>

* Update src/Mocking/JSInterop/MissingMockJsRuntimeException.cs

Co-Authored-By: Egil Hansen <[email protected]>

* Update src/Mocking/JSInterop/MissingMockJsRuntimeException.cs

Co-Authored-By: Egil Hansen <[email protected]>

Co-authored-by: Egil Hansen <[email protected]>

* Add .vscode to gitignore

* TestServiceProvider now explictly implements IServiceCOlelction (#40)

* TestServiceProvider now explictly implements IServiceCOlelction

* Tweaks to namespaces

* Added async setup method to snapshot test

* Added test of SnapshotTests use of setup methods

* Update to readme

* Removed duplicated MarkupMatches method

* Removed PR trigger

Co-authored-by: Rastislav Novotný <[email protected]>
Co-authored-by: Michael J Conrad <[email protected]>
@egil egil deleted the feature-30 branch February 12, 2020 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant