Repository navigation
Conversation
| Assert.Equal("{\"state\":[\"wa\",\"ca\"]}", resultsArray[1]); | ||
| Assert.Equal("\"test\"", resultsArray[2]); | ||
|
|
||
| // TODO: add additional cases - empty array, empty string, null, whitespace, special chars, etc. |
There was a problem hiding this comment.
should add test case to test the mail methods in this class.
For example:
BuildDefaultEdmExpression
There was a problem hiding this comment.
I finished testing the first constructor in the class.
TODO: Test BuildEdmExpression(CsdlSemanticsVocabularyAnnotation annotation)
| private readonly IEdmTerm term; | ||
| private readonly string qualifier; | ||
| private readonly IEdmExpression value; | ||
| private readonly bool usesDefault; |
There was a problem hiding this comment.
private readonly bool usesDefault;
I don't think we need a field here since it is readonly and UsesDefault only has a getter #Resolved
| "" + | ||
| ""; | ||
| // Parse into CSDL | ||
| var model = CsdlReader.Parse(XElement.Parse(csdl).CreateReader()); |
There was a problem hiding this comment.
var model = CsdlReader.Parse(XElement.Parse(csdl).CreateReader());
CreateReader returns an object that implements IDisposable. It should be wrapped in a using block #Resolved
There was a problem hiding this comment.
Other tests also have this issue
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) In reply to: 948997785 In reply to: 948997785 |
|
Merged at 0fc80da |
Description
This pull request adds support for using default values in vocabulary annotations in EdmLib.
Checklist
Additional work necessary
BuildEdmExpression(CsdlSemanticsVocabularyAnnotation annotation)