Add Unit Tests for ApiToolkitClientFactory Implementation and Interface Definition for IApiToolkitClientFactory #34
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #33
How to test
Prerequisites:
Ensure NUnit and Moq are Installed: Ensure that you have both NUnit and Moq installed in your test project.
Install-Package Moq
Install-Package NUnit3TestAdapter
Install-Package NUnit
Steps to Test:
Build the Project:
Before running the tests, ensure that your project builds successfully without errors.
Open Test Explorer:
In Visual Studio, navigate to Test > Test Explorer. This will open the Test Explorer window where all test cases from your solution will be listed.
Run Tests:
In the Test Explorer, you should see your test class ApiToolkitClientFactoryTests listed with the individual test methods.
Select the tests you want to run, or click Run All to execute all tests.
View Test Results:
After running the tests, check the Test Explorer for the results.
Passed tests will be marked with a green checkmark, while failed tests will be marked with a red cross. Any test failures will be accompanied by error messages or stack traces to help diagnose issues.
To Test after building you can run dotnet test
Checklist