continue custom node element binding issues pt1#9609
Merged
mjkkirschner merged 5 commits intoDynamoDS:masterfrom Apr 5, 2019
Merged
continue custom node element binding issues pt1#9609mjkkirschner merged 5 commits intoDynamoDS:masterfrom
mjkkirschner merged 5 commits intoDynamoDS:masterfrom
Conversation
add test which fails before change
Member
Author
Collaborator
|
LGTM! |
Contributor
aparajit-pratap
left a comment
There was a problem hiding this comment.
@mjkkirschner do any of the tests you added test the case where (1) there are more than one creation nodes inside the same custom node definition?
| CurrentDynamoModel.TraceReconciliationProcessor = new TestTraceReconciliationProcessor(0); | ||
| Assert.AreEqual(6, ws.Nodes.Count()); | ||
| var dummyNodes = ws.Nodes.OfType<DummyNode>(); | ||
| Assert.AreEqual(0, dummyNodes.Count()); |
Contributor
There was a problem hiding this comment.
Can't we just use AssertNoDummyNodes function here?
Member
Author
There was a problem hiding this comment.
currently I think that method is only implemented for system tests: this is a model test - do you want me to implement something like that in modelTestBase?
- we also still need to check if the custom node was loaded as when it fails it's not marked as a dummy node.
Member
Author
|
@aparajit-pratap - yes, the custom node definition here has two creation nodes with the same name / function signature inside it. |
Contributor
|
LGTM! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Purpose
continues this PR from @aparajit-pratap : #9527
please see his PR for a very good writeup of the issue and explanation of his fix.
I'm doing some testing and adding automated tests. Also considering edge cases that might arise.
Declarations
Check these if you believe they are true
*.resxfilesReviewers
@aparajit-pratap
@scottmitchell
FYIs
@smangarole
@ZiyunShang
@AndyDu1985