Skip to content

Commit de4ba44

Browse files
committed
Runned build.bat
Fixed wrong conversion
1 parent e68afa3 commit de4ba44

File tree

17 files changed

+2291
-4
lines changed

17 files changed

+2291
-4
lines changed

Common/UnitDefinitions/Turbidity.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
{
2020
"SingularName": "MiligramPerLiter",
2121
"PluralName": "MiligramsPerLiter",
22-
"FromUnitToBaseFunc": "x/3",
23-
"FromBaseToUnitFunc": "x*3",
22+
"FromUnitToBaseFunc": "x*3",
23+
"FromBaseToUnitFunc": "x/3",
2424
"Localization": [
2525
{
2626
"Culture": "en-US",
@@ -31,8 +31,8 @@
3131
{
3232
"SingularName": "PartPerMillion",
3333
"PluralName": "PartsPerMillion",
34-
"FromUnitToBaseFunc": "x/3",
35-
"FromBaseToUnitFunc": "x*3",
34+
"FromUnitToBaseFunc": "x*3",
35+
"FromBaseToUnitFunc": "x/3",
3636
"Localization": [
3737
{
3838
"Culture": "en-US",

UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToTurbidityExtensionsTest.g.cs

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.NumberExtensions/GeneratedCode/NumberToTurbidityExtensions.g.cs

Lines changed: 44 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
//------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// This code was generated by \generate-code.bat.
4+
//
5+
// Changes to this file will be lost when the code is regenerated.
6+
// The build server regenerates the code before each build and a pre-build
7+
// step will regenerate the code on each local build.
8+
//
9+
// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
10+
//
11+
// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
12+
// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
13+
//
14+
// </auto-generated>
15+
//------------------------------------------------------------------------------
16+
17+
// Licensed under MIT No Attribution, see LICENSE file at the root.
18+
// Copyright 2013 Andreas Gullberg Larsen ([email protected]). Maintained at https://github.com/angularsen/UnitsNet.
19+
20+
using System;
21+
22+
namespace UnitsNet.Tests.CustomCode
23+
{
24+
public class TurbidityTests : TurbidityTestsBase
25+
{
26+
// Override properties in base class here
27+
protected override double MiligramsPerLiterInOneNTU => 0.333333333;
28+
29+
protected override double NTUInOneNTU => 1;
30+
31+
protected override double PartsPerMillionInOneNTU => 0.333333333;
32+
}
33+
}

UnitsNet.Tests/GeneratedCode/IQuantityTests.g.cs

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)