You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added T4 template for generating UnitConverterTests and UnitValueTests.
--
Converted const/new fields to abstract/override getprops in UnitAttribute and derived classes. This makes it easier to enumerate the attributes and get BaseUnit and XmlDocSummary. Code change was compatible with existing usage.
Added T4 templates to generate UnitValueTests class.
Removed old class.
Added nuget MoreLinq to Tests/UnitsNet.Tests.net35.csproj
Added T4 template for UnitConverterTests.cs.
* Changed getter properties in unit class tests from protected to public for reuse in UnitConverterTests. Regenerated all.
* Added missing unit class tests: ElectricPotentialTests.cs and TorqueTests.cs
Renamed T4 folders as recommended by T4 guideline: http://msdn.microsoft.com/en-us/library/vstudio/gg251242.aspx
Renamed Generated folder to "Generated Code".
Renamed "UnitClassTests" folder to "Custom Code".
Renamed T4 templates to remove prefix "__".
Moved .ttinclude files into Includes folder.
Renamed Partial folder to Custom Code.
Renamed Generated folder to Generated Code.
Renamed *.generated.cs to *.g.cs.
Renamed output of __UnitClasses.tt to have postfix "Unit" in filename to more easily define Include/Exclude patterns in .csproj.
Fixed bug where __UnitClasses.tt failed to run after changing UnitAttribute implementations. Moved common code for enumerating UnitAttribute implementatinos out into Shared.ttinclude.
Fixed references to Shared.ttinclude.
Set AllowMultiple=false on all unit attributes.
0 commit comments