Skip to content

Conversation

JenTechSystems
Copy link
Contributor

…orrect unicode Micro symbol.

Add tests to ensure all units that use the Micro scale are using the correct unicode character.

…orrect unicode Micro symbol.

Add tests to ensure all units that use the Micro scale are using the correct unicode character.
… greek letter 'mu' with the correct Micro sign character.
@JenTechSystems
Copy link
Contributor Author

What exactly is this build message telling me?
Is it expecting a new unit test class in the UnitsNet.Tests project?

Copy link
Owner

@angularsen angularsen left a comment

Choose a reason for hiding this comment

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

So, I don't really see anything wrong here. JSON and PS1 files updated, you regenerated the code. As far as I can tell it's all there, but I'll need some time to look into this more.
From the build server, this a recurring error:

[07:00:22][Step 1/1] UnitSystemTests.cs(290,27): error CS0122: 'UnitsNetException' is inaccessible due to its protection level [C:\TeamCity\buildAgent\work\6c2ac6daa7a037ba\UnitsNet.Tests\UnitsNet.WindowsRuntimeComponent.Tests.csproj]

}

[Test]
public void ShouldUseCorrectMicroSign()
Copy link
Owner

Choose a reason for hiding this comment

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

Nice set of tests this, even though it will get out of date at some point it is a nice sanity check.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea, it would have been ideal to tap into the code generation and have this test generated for each unit that uses the Micro symbol. The amount I have to contribute to this is dictated by the return on investment for my client though...so that extra level didn't quite make the cut (yet) unfortunately.

@angularsen
Copy link
Owner

Just a notice that I have a severe case of the manflu and might need some extra time to respond the next few days. As for the message, my reverse proxy to make the TeamCity build server available on the Internet broke, so you won't be able to access it.

@angularsen angularsen merged commit d9dcb40 into angularsen:master Feb 2, 2017
@angularsen
Copy link
Owner

I found the problem, the UnitsNetException type is internal in WINDOWS_UWP profile (Windows Runtime Component target). I added an assembly attribute to make it visible to tests.

@angularsen
Copy link
Owner

For your reference: d2f0c08

@JenTechSystems JenTechSystems deleted the 223_parse_micro_units_correctly branch February 7, 2017 21:07
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