Fixes #3935 - Removed decimal validation from IsFixedPointNumeric method - #3942
Conversation
…his validation is used by IsFloatingPointNumeric method, since issue 3831.
jnm2
left a comment
There was a problem hiding this comment.
Welcome and thanks for helping!
ℹ If you write the text Fixes #3935 or Closes #3935 somewhere in the PR body (top comment), GitHub creates a relationship between the issue and the PR and autocloses the issue when the PR merges.
Could you please add a test of IsFixedPointNumeric in https://github.com/nunit/nunit/blob/master/src/NUnitFramework/tests/Constraints/NumericsTest.cs that would fail if your change was reverted?
|
The MacOS build failures on Azure DevOps is a NuGet restore failure. You can ignore it for now. Hopefully it will be fixed next run when you add some unit tests. |
Thank you for the reply. I will write a test for this method when I can. Do you know how I can run this test from Visual Studio 2019 using Main method from Program.cs class, in the nunitlite-runner project? I tried this but didn't worked: |
…intNumeric method.
|
Sorry for the delay, I added a test that will fail if my previous change reverts. |
|
Yes, once it passes. It looks like it's failing right now: https://nunit.visualstudio.com/NUnit/_build/results?buildId=4346&view=ms.vss-test-web.build-test-results-tab&runId=1050460&resultId=104023&paneView=debug I have no idea what the Assert.Throws part is all about in the existing tests, either. Isn't it redundant? |
hmm, strange, I'm having this error when I try to debug my test: And this: Can you guys make all the unit tests work from your local project? I'm having these generic errors. Trying to figure out how to solve it. Or the ONLY way to test is using console runner? If it is I need help on how to debug a specific test. |
Fixes #3935 Because his validation is used by the IsFloatingPointNumeric method, since issue 3831.