Skip to content

Wire modifications- Unit Tests#28

Merged
M-JULIANI merged 63 commits intoSHKnudsen:wire-modifications-testsfrom
M-JULIANI:Wire-Modifications-UnitTests
Jul 29, 2021
Merged

Wire modifications- Unit Tests#28
M-JULIANI merged 63 commits intoSHKnudsen:wire-modifications-testsfrom
M-JULIANI:Wire-Modifications-UnitTests

Conversation

@M-JULIANI
Copy link
Collaborator

@M-JULIANI M-JULIANI commented Jul 28, 2021

Note

Make sure to merge #23 prior to reviewing this PR.

Purpose

This separate PR includes the unit testing for the following PR: #23.

Description

This PR includes unit tests for Wire Behaviour functionality. It is a separate PR for clarity of scope. PR #23 needs to be merged prior to this PR being merged.

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated

Reviewers

@SHKnudsen

(FILL ME IN, optional) Any additional notes to reviewers or testers.

FYIs

(FILL ME IN, Optional) Names of anyone else you wish to be notified of

M-JULIANI added 30 commits June 9, 2021 18:13
… whether data passing through meets a requirement of 5 or more items.
… Need to implement a segmented version between pairs of pins.
…paque/halftone pins/watch icon depending on wire visibility.
…moved. Previously when removing pins the icon was drawn in the wrong place.
…hat of nodes). RaisePropertyChanged(nameof(Property)) throughout ConnectorViewModel.
@M-JULIANI M-JULIANI mentioned this pull request Jul 28, 2021
8 tasks
@M-JULIANI M-JULIANI merged commit 01f9723 into SHKnudsen:wire-modifications-tests Jul 29, 2021
SHKnudsen pushed a commit that referenced this pull request Jul 29, 2021
* Got hidden wire implementation working with View->ConnectorDisplay

* Watch node behaviour modified.

* Added image resources. Corrected hover/unhover of watch icon based on whether data passing through meets a requirement of 5 or more items.

* WirePin: Model, ViewModel, View. Placeable/removable via ContextMenus.

* Modified 'RunSharedParams' functionality to work properly.

* Basic implementation of pins. Multi-control point bezier implemented. Need to implement a segmented version between pairs of pins.

* Added WirePinViewModel discard functionality: DiscardAllWirePins()

* Expected behaviour when deleting nodes (pins delete). Provision for opaque/halftone pins/watch icon depending on wire visibility.

* Redrawing Watch (hover) icon at the midpoint when there are pins on the wire.

* This fixes the 'WatchHoverIcon' when there are pins/ when they are removed. Previously when removing pins the icon was drawn in the wrong place.

* Cleanup of unused code.

* Clearup + pin highlighting behaviour.

* Serialization/Deserialization of pins achieved.

* 'Wire' to 'Connector' rename throughout for more consistency with the existing codebase.

* Fixed unwanted duplicate pin placement (the one at the origin).

* Discarded unused methods. Fixed pin multi-selection functionality.

* Fixes to hidden wire display when pin selected.

* Preview behaviour of wires fixed when a pin is selected (similar to that of nodes). RaisePropertyChanged(nameof(Property)) throughout ConnectorViewModel.

* Basic implementation of 'Autolayout' which includes ConnectorPins.

* Delete AssemblySharedInfo.

* Remove unnecessary files/ file changes.

* Delete unnecessary change.

* Removed unnecessary files/file changes.

* Delete unneeded change.

* Revert "Delete unneeded change."

This reverts commit 090fb18.

* Revert "Merge branch 'Wire-Modifications' of https://github.com/M-JULIANI/Dynamo into Wire-Modifications"

This reverts commit 23dc696, reversing
changes made to 06378f0.

* Reverted unneeded changes.

* Reverting unneeded changes.

* Removing unneeded changes.

* Removing unneeded changes.

* Unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Various PR fixes.

* Reverted Resharper renaming of various comments.

* PR fixes.

* PR fixes.

* ConnectorPin visibility fixed (follows Connector visibility).

* Fixed PR issues.

* Ironed out edge condition- AutoLayout _seems_ to work without any errors thrown at the moment.

* PR Cleanup and Autolayout edge case fixes.

* Ensures ConnectorPins cannot be copied and pasted (like notes & nodes) but rather have to be placed deliberately.

* Functionality added to preserve pins when 'WatchIcon' is clicked and Watch Node is placed. Previously they were discarded.

* Cleanup.

* Added correct ConnectorPin icons for 'selected' and 'hidden' visibility. Got Undo/Redo functionality working partially.

* Got 'undo' working for when a connector is pinned.

* Undo/redo functionality between OOTB nodes and between custom nodes.

* Cleanup.

* Cleanup

* Cleanup.

* Viewmodel tests.

* Added 'undo' unit tests.

* Undo bug fixed.

* Small logic changes to ConenctorPin placement when watchnode is placed.

* Revert "Small logic changes to ConenctorPin placement when watchnode is placed."

This reverts commit 18d2752.

* Unit test PR modifications.

* Undoing this change.

* Nvm, reverted this. For some reason can't change it back without breaking it. In any case 'model' is correct 'connectormodel ' is outdated.
SHKnudsen pushed a commit that referenced this pull request Jul 29, 2021
* Got hidden wire implementation working with View->ConnectorDisplay

* Watch node behaviour modified.

* Added image resources. Corrected hover/unhover of watch icon based on whether data passing through meets a requirement of 5 or more items.

* WirePin: Model, ViewModel, View. Placeable/removable via ContextMenus.

* Modified 'RunSharedParams' functionality to work properly.

* Basic implementation of pins. Multi-control point bezier implemented. Need to implement a segmented version between pairs of pins.

* Added WirePinViewModel discard functionality: DiscardAllWirePins()

* Expected behaviour when deleting nodes (pins delete). Provision for opaque/halftone pins/watch icon depending on wire visibility.

* Redrawing Watch (hover) icon at the midpoint when there are pins on the wire.

* This fixes the 'WatchHoverIcon' when there are pins/ when they are removed. Previously when removing pins the icon was drawn in the wrong place.

* Cleanup of unused code.

* Clearup + pin highlighting behaviour.

* Serialization/Deserialization of pins achieved.

* 'Wire' to 'Connector' rename throughout for more consistency with the existing codebase.

* Fixed unwanted duplicate pin placement (the one at the origin).

* Discarded unused methods. Fixed pin multi-selection functionality.

* Fixes to hidden wire display when pin selected.

* Preview behaviour of wires fixed when a pin is selected (similar to that of nodes). RaisePropertyChanged(nameof(Property)) throughout ConnectorViewModel.

* Basic implementation of 'Autolayout' which includes ConnectorPins.

* Delete AssemblySharedInfo.

* Remove unnecessary files/ file changes.

* Delete unnecessary change.

* Removed unnecessary files/file changes.

* Delete unneeded change.

* Revert "Delete unneeded change."

This reverts commit 090fb18.

* Revert "Merge branch 'Wire-Modifications' of https://github.com/M-JULIANI/Dynamo into Wire-Modifications"

This reverts commit 23dc696, reversing
changes made to 06378f0.

* Reverted unneeded changes.

* Reverting unneeded changes.

* Removing unneeded changes.

* Removing unneeded changes.

* Unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Various PR fixes.

* Reverted Resharper renaming of various comments.

* PR fixes.

* PR fixes.

* ConnectorPin visibility fixed (follows Connector visibility).

* Fixed PR issues.

* Ironed out edge condition- AutoLayout _seems_ to work without any errors thrown at the moment.

* PR Cleanup and Autolayout edge case fixes.

* Ensures ConnectorPins cannot be copied and pasted (like notes & nodes) but rather have to be placed deliberately.

* Functionality added to preserve pins when 'WatchIcon' is clicked and Watch Node is placed. Previously they were discarded.

* Cleanup.

* Added correct ConnectorPin icons for 'selected' and 'hidden' visibility. Got Undo/Redo functionality working partially.

* Got 'undo' working for when a connector is pinned.

* Undo/redo functionality between OOTB nodes and between custom nodes.

* Cleanup.

* Cleanup

* Cleanup.

* Viewmodel tests.

* Added 'undo' unit tests.

* Undo bug fixed.

* Small logic changes to ConenctorPin placement when watchnode is placed.

* Revert "Small logic changes to ConenctorPin placement when watchnode is placed."

This reverts commit 18d2752.

* Unit test PR modifications.

* Undoing this change.

* Nvm, reverted this. For some reason can't change it back without breaking it. In any case 'model' is correct 'connectormodel ' is outdated.
SHKnudsen pushed a commit that referenced this pull request Jul 29, 2021
* Got hidden wire implementation working with View->ConnectorDisplay

* Watch node behaviour modified.

* Added image resources. Corrected hover/unhover of watch icon based on whether data passing through meets a requirement of 5 or more items.

* WirePin: Model, ViewModel, View. Placeable/removable via ContextMenus.

* Modified 'RunSharedParams' functionality to work properly.

* Basic implementation of pins. Multi-control point bezier implemented. Need to implement a segmented version between pairs of pins.

* Added WirePinViewModel discard functionality: DiscardAllWirePins()

* Expected behaviour when deleting nodes (pins delete). Provision for opaque/halftone pins/watch icon depending on wire visibility.

* Redrawing Watch (hover) icon at the midpoint when there are pins on the wire.

* This fixes the 'WatchHoverIcon' when there are pins/ when they are removed. Previously when removing pins the icon was drawn in the wrong place.

* Cleanup of unused code.

* Clearup + pin highlighting behaviour.

* Serialization/Deserialization of pins achieved.

* 'Wire' to 'Connector' rename throughout for more consistency with the existing codebase.

* Fixed unwanted duplicate pin placement (the one at the origin).

* Discarded unused methods. Fixed pin multi-selection functionality.

* Fixes to hidden wire display when pin selected.

* Preview behaviour of wires fixed when a pin is selected (similar to that of nodes). RaisePropertyChanged(nameof(Property)) throughout ConnectorViewModel.

* Basic implementation of 'Autolayout' which includes ConnectorPins.

* Delete AssemblySharedInfo.

* Remove unnecessary files/ file changes.

* Delete unnecessary change.

* Removed unnecessary files/file changes.

* Delete unneeded change.

* Revert "Delete unneeded change."

This reverts commit 090fb18.

* Revert "Merge branch 'Wire-Modifications' of https://github.com/M-JULIANI/Dynamo into Wire-Modifications"

This reverts commit 23dc696, reversing
changes made to 06378f0.

* Reverted unneeded changes.

* Reverting unneeded changes.

* Removing unneeded changes.

* Removing unneeded changes.

* Unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Removed unneeded changes.

* Various PR fixes.

* Reverted Resharper renaming of various comments.

* PR fixes.

* PR fixes.

* ConnectorPin visibility fixed (follows Connector visibility).

* Fixed PR issues.

* Ironed out edge condition- AutoLayout _seems_ to work without any errors thrown at the moment.

* PR Cleanup and Autolayout edge case fixes.

* Ensures ConnectorPins cannot be copied and pasted (like notes & nodes) but rather have to be placed deliberately.

* Functionality added to preserve pins when 'WatchIcon' is clicked and Watch Node is placed. Previously they were discarded.

* Cleanup.

* Added correct ConnectorPin icons for 'selected' and 'hidden' visibility. Got Undo/Redo functionality working partially.

* Got 'undo' working for when a connector is pinned.

* Undo/redo functionality between OOTB nodes and between custom nodes.

* Cleanup.

* Cleanup

* Cleanup.

* Viewmodel tests.

* Added 'undo' unit tests.

* Undo bug fixed.

* Small logic changes to ConenctorPin placement when watchnode is placed.

* Revert "Small logic changes to ConenctorPin placement when watchnode is placed."

This reverts commit 18d2752.

* Unit test PR modifications.

* Undoing this change.

* Nvm, reverted this. For some reason can't change it back without breaking it. In any case 'model' is correct 'connectormodel ' is outdated.
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.

2 participants