Skip to content

Commit 4b078ce

Browse files
authored
Add Turbidity Unit (#842)
1 parent a7e5516 commit 4b078ce

File tree

17 files changed

+2177
-0
lines changed

17 files changed

+2177
-0
lines changed

Common/UnitDefinitions/Turbidity.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"Name": "Turbidity",
3+
"BaseUnit": "NTU",
4+
"XmlDoc": "Turbidity is the cloudiness or haziness of a fluid caused by large numbers of individual particles that are generally invisible to the naked eye, similar to smoke in air. The measurement of turbidity is a key test of water quality.",
5+
"XmlDocRemarks": "https://en.wikipedia.org/wiki/Turbidity",
6+
"Units": [
7+
{
8+
"SingularName": "NTU",
9+
"PluralName": "NTU",
10+
"FromUnitToBaseFunc": "x",
11+
"FromBaseToUnitFunc": "x",
12+
"Localization": [
13+
{
14+
"Culture": "en-US",
15+
"Abbreviations": ["NTU"]
16+
}
17+
]
18+
}
19+
]
20+
}

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

Lines changed: 32 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: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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 NTUInOneNTU => 1;
28+
}
29+
}

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)