Skip to content

test: JSON deserialisation tests#43

Draft
liamhughes wants to merge 2 commits intomainfrom
lh/add-json-deserialisation-tests
Draft

test: JSON deserialisation tests#43
liamhughes wants to merge 2 commits intomainfrom
lh/add-json-deserialisation-tests

Conversation

@liamhughes
Copy link
Copy Markdown
Contributor

No description provided.


var result = JsonSerializer.Deserialize<FeatureToggleEvaluation>(json, JsonSerializerOptions.Web);

result!.Segments.Should().BeNull();
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: Segments is not a nullable field.

@liamhughes
Copy link
Copy Markdown
Contributor Author

Revisit these tests once OctopusDeploy/openfeature-provider-specification#2 has landed.

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