File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,14 @@ function GenerateUnitTestPlaceholderSourceCode($unitClass)
4
4
@"
5
5
//------------------------------------------------------------------------------
6
6
// <auto-generated>
7
- // This code was generated by \GenerateUnits.bat.
8
- //
9
- // Changes to this file will be lost when the code is regenerated.
10
- // The build server regenerates the code before each build and a pre-build
11
- // step will regenerate the code on each local build.
7
+ // This code was generated (once) by \GenerateUnits.bat, but will not be
8
+ // regenerated when it already exists. The purpose of creating this file is to make
9
+ // it easier to remember to implement all the unit conversion test cases.
10
+ //
11
+ // Whenever a new unit is added to this unit class and \GenerateUnits.bat is run,
12
+ // the base test class will get a new abstract property and cause a compile error
13
+ // in this derived class, reminding the developer to implement the test case
14
+ // for the new unit.
12
15
//
13
16
// See https://github.com/anjdreas/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
14
17
//
@@ -51,4 +54,4 @@ namespace UnitsNet.Tests.CustomCode
51
54
}
52
55
}
53
56
"@ ;
54
- }
57
+ }
You can’t perform that action at this time.
0 commit comments