|
| 1 | +//------------------------------------------------------------------------------ |
| 2 | +// <auto-generated> |
| 3 | +// This code was generated (once) by \generate-code.bat, but will not be |
| 4 | +// regenerated when it already exists. The purpose of creating this file is to make |
| 5 | +// it easier to remember to implement all the unit conversion test cases. |
| 6 | +// |
| 7 | +// Whenever a new unit is added to this unit class and \generate-code.bat is run, |
| 8 | +// the base test class will get a new abstract property and cause a compile error |
| 9 | +// in this derived class, reminding the developer to implement the test case |
| 10 | +// for the new unit. |
| 11 | +// |
| 12 | +// See https://github.com/anjdreas/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units. |
| 13 | +// |
| 14 | +// Add CustomCode\UnitClasses\MyUnit.extra.cs files to add code to generated unit classes. |
| 15 | +// Add Extensions\MyUnitExtensions.cs to decorate unit classes with new behavior. |
| 16 | +// Add UnitDefinitions\MyUnit.json and run GeneratUnits.bat to generate new units or unit classes. |
| 17 | +// |
| 18 | +// </auto-generated> |
| 19 | +//------------------------------------------------------------------------------ |
| 20 | + |
| 21 | +// Copyright (c) 2007 Andreas Gullberg Larsen ([email protected]). |
| 22 | +// https://github.com/anjdreas/UnitsNet |
| 23 | +// |
| 24 | +// Permission is hereby granted, free of charge, to any person obtaining a copy |
| 25 | +// of this software and associated documentation files (the "Software"), to deal |
| 26 | +// in the Software without restriction, including without limitation the rights |
| 27 | +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 28 | +// copies of the Software, and to permit persons to whom the Software is |
| 29 | +// furnished to do so, subject to the following conditions: |
| 30 | +// |
| 31 | +// The above copyright notice and this permission notice shall be included in |
| 32 | +// all copies or substantial portions of the Software. |
| 33 | +// |
| 34 | +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 35 | +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 36 | +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 37 | +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 38 | +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 39 | +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 40 | +// THE SOFTWARE. |
| 41 | + |
| 42 | + |
| 43 | +using System; |
| 44 | + |
| 45 | +namespace UnitsNet.Tests.CustomCode |
| 46 | +{ |
| 47 | + public class ElectricPotentialAcTests : ElectricPotentialAcTestsBase |
| 48 | + { |
| 49 | + protected override double KilovoltsAcInOneVoltAc => 1e-3; |
| 50 | + |
| 51 | + protected override double MegavoltsAcInOneVoltAc => 1e-6; |
| 52 | + |
| 53 | + protected override double MicrovoltsAcInOneVoltAc => 1e+6; |
| 54 | + |
| 55 | + protected override double MillivoltsAcInOneVoltAc => 1000; |
| 56 | + |
| 57 | + protected override double VoltsAcInOneVoltAc => 1; |
| 58 | + } |
| 59 | +} |
0 commit comments