- Notifications
You must be signed in to change notification settings - Fork182
Unit Tests - Dotnet#743
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Unit Tests - Dotnet#743
Uh oh!
There was an error while loading.Please reload this page.
Conversation
I have a question on this particular one. Some SDKs contain tests for serializing using the respective Model classes. I did work on those in here as well but faced a fairly annoying problem: The output of |
Are you make these test run automatically with the existing tests? |
What does this PR do?
This PR adds generated unit tests to the Dotnet SDK.
It also contains a deserialization fix that caused a
KeyNotFoundException
when a key was missing from the response map (I am not sure what the behaviour from the server is, whether the value is returned as null or doesn't exist in the map). The error came up when testing the User-related services that failed deserialization because thepassword
field (amongst others) was not present in the mocked response.Test Plan
Generate the SDK, then run
dotnet test
in the generated SDK'ssrc
directory.Related PRs and Issues
#680
Have you read theContributing Guidelines on issues?
Yup