-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed commit of the following: commit 6e23232 Author: Andreas Gullberg Larsen <[email protected]> Date: Sat Nov 11 12:33:12 2017 +0100 Fix headers Wrong year and use (c) instead of copyright symbol since git and powershell frequently messes up the encoding when using it. commit c102e3e Author: Andreas Gullberg Larsen <[email protected]> Date: Sat Nov 11 12:25:18 2017 +0100 Regenerate code from PRs commit c1f83dd Author: Ferit Tunçer <[email protected]> Date: Sat Nov 11 13:55:29 2017 +0300 Add quantity Entropy (#312) commit 90d5f93 Author: Ferit Tunçer <[email protected]> Date: Sat Nov 11 13:43:12 2017 +0300 Fix LapseRate Units (#321) commit c94c1d2 Author: Ferit Tunçer <[email protected]> Date: Fri Nov 10 20:43:44 2017 +0300 Delete duplicate quantity SubstanceAmount (#317) commit 471d2fc Author: Andreas Gullberg Larsen <[email protected]> Date: Thu Nov 9 21:25:20 2017 +0100 Add Equals(T other, T maxError), obsolete Equals(T other) for Double quantities Equality comparison is not safe with System.Double as internal representation. Decimal quantities (Power, Information) still allow equality. Add test on new Equals() method. commit e0eb3f0 Author: Andreas Gullberg Larsen <[email protected]> Date: Thu Nov 9 19:57:32 2017 +0100 UnitsNet: 3.78.0 commit 041a53e Author: Ferit Tunçer <[email protected]> Date: Thu Nov 9 21:54:51 2017 +0300 Add quantity LapseRate (#316) commit 8a4d648 Author: Andreas Gullberg Larsen <[email protected]> Date: Tue Nov 7 15:34:47 2017 +0100 Fix email address commit aa9a99a Author: Ferit Tunçer <[email protected]> Date: Tue Nov 7 23:43:11 2017 +0300 Add micropascalseconds (#314) commit 0a585b8 Author: Ferit Tunçer <[email protected]> Date: Tue Nov 7 17:45:26 2017 +0300 Add MolarEntropy (#310) commit e51cd52 Author: Ferit Tunçer <[email protected]> Date: Tue Nov 7 17:04:30 2017 +0300 Add MolarEnergy (#309) commit 1fad2bb Author: Ferit Tunçer <[email protected]> Date: Tue Nov 7 17:02:05 2017 +0300 Add AmountOfSubstance (#304) commit 6800561 Author: Ferit Tunçer <[email protected]> Date: Tue Nov 7 08:53:13 2017 +0300 Add MolarMass Quantity Type (#305) * added MolarMass * added russian abbreviations NanogramPerMole to KilogramPerMole convertion tests were failing, so we set the tolerance to 1e-3 like in massTests.
- Loading branch information
1 parent
408f5b8
commit dd904f6
Showing
353 changed files
with
13,531 additions
and
322 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
UnitsNet.Serialization.JsonNet.Tests/UnitsNetJsonConverterTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
//------------------------------------------------------------------------------ | ||
// <auto-generated> | ||
// This code was generated (once) by \generate-code.bat, but will not be | ||
// regenerated when it already exists. The purpose of creating this file is to make | ||
// it easier to remember to implement all the unit conversion test cases. | ||
// | ||
// Whenever a new unit is added to this quantity and \generate-code.bat is run, | ||
// the base test class will get a new abstract property and cause a compile error | ||
// in this derived class, reminding the developer to implement the test case | ||
// for the new unit. | ||
// | ||
// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. | ||
// | ||
// Add CustomCode\Quantities\MyUnit.extra.cs files to add code to generated quantities. | ||
// Add Extensions\MyUnitExtensions.cs to decorate quantities with new behavior. | ||
// Add UnitDefinitions\MyUnit.json and run GeneratUnits.bat to generate new units or quantities. | ||
// | ||
// </auto-generated> | ||
//------------------------------------------------------------------------------ | ||
|
||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to deal | ||
// in the Software without restriction, including without limitation the rights | ||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
// copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in | ||
// all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
// THE SOFTWARE. | ||
|
||
using System; | ||
|
||
namespace UnitsNet.Tests.CustomCode | ||
{ | ||
public class AmountOfSubstanceTests : AmountOfSubstanceTestsBase | ||
{ | ||
protected override double CentimolesInOneMole => 1e2; | ||
protected override double CentipoundMolesInOneMole => 0.002204622621848776 * 1e2; | ||
protected override double DecimolesInOneMole => 1e1; | ||
protected override double DecipoundMolesInOneMole => 0.002204622621848776 * 1e1; | ||
protected override double KilomolesInOneMole => 1e-3; | ||
protected override double KilopoundMolesInOneMole => 0.002204622621848776 * 1e-3; | ||
protected override double MicromolesInOneMole => 1e6; | ||
protected override double MicropoundMolesInOneMole => 0.002204622621848776 * 1e6; | ||
protected override double MillimolesInOneMole => 1e3; | ||
protected override double MillipoundMolesInOneMole => 0.002204622621848776 * 1e3; | ||
protected override double MolesInOneMole => 1; | ||
protected override double NanomolesInOneMole => 1e9; | ||
protected override double NanopoundMolesInOneMole => 0.002204622621848776 * 1e9; | ||
protected override double PoundMolesInOneMole => 0.002204622621848776; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright © 2007 by Initial Force AS. All rights reserved. | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright © 2007 by Initial Force AS. All rights reserved. | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
@@ -28,6 +28,7 @@ namespace UnitsNet.Tests.CustomCode | |
public class DynamicViscosityTests : DynamicViscosityTestsBase | ||
{ | ||
protected override double CentipoiseInOneNewtonSecondPerMeterSquared => 1e3; | ||
protected override double MicropascalSecondsInOneNewtonSecondPerMeterSquared => 1e6; | ||
protected override double MillipascalSecondsInOneNewtonSecondPerMeterSquared => 1e3; | ||
protected override double NewtonSecondsPerMeterSquaredInOneNewtonSecondPerMeterSquared => 1; | ||
protected override double PascalSecondsInOneNewtonSecondPerMeterSquared => 1; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
//------------------------------------------------------------------------------ | ||
// <auto-generated> | ||
// This code was generated (once) by \generate-code.bat, but will not be | ||
// regenerated when it already exists. The purpose of creating this file is to make | ||
// it easier to remember to implement all the unit conversion test cases. | ||
// | ||
// Whenever a new unit is added to this quantity and \generate-code.bat is run, | ||
// the base test class will get a new abstract property and cause a compile error | ||
// in this derived class, reminding the developer to implement the test case | ||
// for the new unit. | ||
// | ||
// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. | ||
// | ||
// Add CustomCode\Quantities\MyUnit.extra.cs files to add code to generated quantities. | ||
// Add Extensions\MyUnitExtensions.cs to decorate quantities with new behavior. | ||
// Add UnitDefinitions\MyUnit.json and run GeneratUnits.bat to generate new units or quantities. | ||
// | ||
// </auto-generated> | ||
//------------------------------------------------------------------------------ | ||
|
||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to deal | ||
// in the Software without restriction, including without limitation the rights | ||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
// copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in | ||
// all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
// THE SOFTWARE. | ||
|
||
|
||
using System; | ||
|
||
namespace UnitsNet.Tests.CustomCode | ||
{ | ||
public class EntropyTests : EntropyTestsBase | ||
{ | ||
protected override double CaloriesPerKelvinInOneJoulePerKelvin => 0.239006; | ||
protected override double JoulesPerDegreeCelsiusInOneJoulePerKelvin => 1e0; | ||
protected override double JoulesPerKelvinInOneJoulePerKelvin => 1e0; | ||
protected override double KilocaloriesPerKelvinInOneJoulePerKelvin => 0.000239006; | ||
protected override double KilojoulesPerDegreeCelsiusInOneJoulePerKelvin => 1e-3; | ||
protected override double KilojoulesPerKelvinInOneJoulePerKelvin => 1e-3; | ||
protected override double MegajoulesPerKelvinInOneJoulePerKelvin => 1e-6; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
//------------------------------------------------------------------------------ | ||
// <auto-generated> | ||
// This code was generated (once) by \generate-code.bat, but will not be | ||
// regenerated when it already exists. The purpose of creating this file is to make | ||
// it easier to remember to implement all the unit conversion test cases. | ||
// | ||
// Whenever a new unit is added to this quantity and \generate-code.bat is run, | ||
// the base test class will get a new abstract property and cause a compile error | ||
// in this derived class, reminding the developer to implement the test case | ||
// for the new unit. | ||
// | ||
// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. | ||
// | ||
// Add CustomCode\Quantities\MyUnit.extra.cs files to add code to generated quantities. | ||
// Add Extensions\MyUnitExtensions.cs to decorate quantities with new behavior. | ||
// Add UnitDefinitions\MyUnit.json and run GeneratUnits.bat to generate new units or quantities. | ||
// | ||
// </auto-generated> | ||
//------------------------------------------------------------------------------ | ||
|
||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to deal | ||
// in the Software without restriction, including without limitation the rights | ||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
// copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in | ||
// all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
// THE SOFTWARE. | ||
|
||
|
||
using System; | ||
|
||
namespace UnitsNet.Tests.CustomCode | ||
{ | ||
public class LapseRateTests : LapseRateTestsBase | ||
{ | ||
protected override double DegreesCelciusPerKilometerInOneDegreeCelsiusPerKilometer => 1e0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright(c) 2007 Andreas Gullberg Larsen | ||
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected]). | ||
// https://github.com/angularsen/UnitsNet | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.