Skip to content

Conversation

@EricDahlvang
Copy link
Member

  • Make ChoiceSet implement ITemplate
    Fix ExpressionProperty Throw in Try method that shouldn 't throw
    Updated ConfirmInput and ChoiceInput to use ITemplate>.BindData() if expression is template reference.
    Added unit tests

  • update schema

  • fix schema definition for choices

Fixes #

Description

Specific Changes

Testing

* Make ChoiceSet  implement ITemplate<ChoiceSet>
Fix ExpressionProperty Throw in Try method that shouldn 't throw
Updated ConfirmInput and ChoiceInput to use ITemplate>.BindData() if expression is template reference.
Added unit tests

* update schema

* fix schema definition for choices
@EricDahlvang EricDahlvang requested review from a team, chrimc62 and tomlm as code owners March 12, 2021 21:17
if (_modelFolder == null)
{
throw new ArgumentNullException($"Missing `ModelFolder` information.");
#pragma warning disable CA2208 // Instantiate argument exceptions correctly
Copy link
Contributor

Choose a reason for hiding this comment

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

I know this is a cherry pick but I think it may have been better to use InvalidOperationException here with a descriptive message rather than argumentnullexception with a pragma (The exception that is thrown when a method call is invalid for the object's current state.).

@mrivera-ms mrivera-ms merged commit fbb4eb8 into 4.12 Mar 12, 2021
@mrivera-ms mrivera-ms deleted the eric/cherryPickChoiceSetLG branch March 12, 2021 22:37
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.

4 participants