Skip to content

Conversation

@RobertGlobant20
Copy link
Contributor

@RobertGlobant20 RobertGlobant20 commented Oct 28, 2020

Purpose

Increase the code coverage in the CoreNodeModelsWpf folder (second pull request).

2 test methods added for covering the class SliderViewModel.cs

Added several tests for the next converters:

  • MediatoDSColorConverter
  • SelectionButtonContentConverter
  • StringToDateTimeOffsetConverter

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

@QilongTang @aparajit-pratap

FYIs

@alfredo-pozo

Initial commit with 2 test methods added for covering the class SliderViewModel.cs
Added comment for two test methods
Added several tests for the next converters:
- MediatoDSColorConverter
- SelectionButtonContentConverter
- StringToDateTimeOffsetConverter
Removing the code that was loading the CoreNodeModelsWpf.dll file
…f_2"

This reverts commit cf5fb64, reversing
changes made to 5a08275.
{
Open(@"core\library\NumberSliderNodeTest.dyn");

var nodeView = NodeViewWithGuid("17ef3a6e-4742-45b6-8a2e-7ec3901e7726");//NodeViewOf<DoubleSlider>();
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove the unused code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@QilongTang
It was a comment, then I re-wrote the comment so it doesn't look like unused code.
See the commit: 77da3f7

using CoreNodeModelsWpf.Converters;
using Dynamo.Tests;
using NUnit.Framework;
using DSColor = DSCore.Color;
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@RobertGlobant20 RobertGlobant20 Nov 3, 2020

Choose a reason for hiding this comment

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

@QilongTang I removed one using and the others were already organized according to the Coding-Standards, let me know if you have any other comment.
See the commit: 77da3f7

{
base.Open(path);

DispatcherUtil.DoEvents();
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we do the override because we need to append the DoEvents() call?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@QilongTang
Yes, you are right, the override is because we need to call the DoEvents() method so all the events in the graph are executed. I have seen the same override in many tests.
Thanks

@QilongTang QilongTang merged commit 80ab6a6 into DynamoDS:master Nov 3, 2020
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