-
Notifications
You must be signed in to change notification settings - Fork 635
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
continue custom node element binding issues pt1 #9609
Conversation
add test which fails before change
LGTM! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we just use AssertNoDummyNodes
function here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
@aparajit-pratap - yes, the custom node definition here has two creation nodes with the same name / function signature inside it. |
LGTM! |
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
*.resx
filesReviewers
@aparajit-pratap
@scottmitchell
FYIs
@smangarole
@ZiyunShang
@AndyDu1985