Skip to content

Commit 9db44c5

Browse files
committed
UnitsNet: 3.28.1
1 parent 555c77b commit 9db44c5

File tree

108 files changed

+509
-513
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+509
-513
lines changed

Build/UnitsNet.nuspec

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
44
<metadata>
55
<id>UnitsNet</id>
6-
<version>3.28.0</version>
6+
<version>3.28.1</version>
77
<title>Units.NET</title>
88
<authors>Andreas Gullberg Larsen</authors>
99
<owners>Andreas Gullberg Larsen</owners>
@@ -14,11 +14,7 @@
1414
<summary>Simplifies working with units of measurement.</summary>
1515
<iconUrl>https://raw.githubusercontent.com/anjdreas/UnitsNet/ce85185429be345d77eb2ce09c99d59cc9ab8aed/Docs/Images/logo-32.png</iconUrl>
1616
<releaseNotes>
17-
* Add nano/micro/milli prefixes to Degree unit (@tongbong)
18-
* Add prefixes nano through kilo to NewtonPerSecond (@tongbong)
19-
* Add Angle units DegreePerSecond with prefixes (@tongbong)
20-
* Add nullable constructor methods (@eriove)
21-
* Add prefixes to LitersPerMinute, fix abbreviations (@rdelhommer)
17+
* Fix missing generated code due to merging multiple PRs
2218
</releaseNotes>
2319
<copyright>Copyright © 2015 Andreas Gullberg Larsen</copyright>
2420
<language>en-US</language>

UnitsNet.Serialization.JsonNet/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@
5757
// [assembly: AssemblyVersion("1.0.0")]
5858

5959
[assembly: AssemblyVersion("1.0.0")]
60-
[assembly: AssemblyFileVersion("1.0.0")]
60+
[assembly: AssemblyFileVersion("1.0.0")]

UnitsNet.Tests/GeneratedCode/AccelerationTestsBase.g.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// Copyright © 2007 by Initial Force AS. All rights reserved.
22
// https://github.com/anjdreas/UnitsNet
3-
//
3+
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal
66
// in the Software without restriction, including without limitation the rights
77
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
88
// copies of the Software, and to permit persons to whom the Software is
99
// furnished to do so, subject to the following conditions:
10-
//
10+
//
1111
// The above copyright notice and this permission notice shall be included in
1212
// all copies or substantial portions of the Software.
13-
//
13+
//
1414
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1515
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1616
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -156,7 +156,7 @@ public void CompareToThrowsOnTypeMismatch()
156156
[Test]
157157
[ExpectedException(typeof(ArgumentNullException))]
158158
public void CompareToThrowsOnNull()
159-
{
159+
{
160160
Acceleration meterpersecondsquared = Acceleration.FromMeterPerSecondSquared(1);
161161
// ReSharper disable once ReturnValueOfPureMethodIsNotUsed
162162
meterpersecondsquared.CompareTo(null);
@@ -170,7 +170,7 @@ public void EqualityOperators()
170170
Acceleration b = Acceleration.FromMeterPerSecondSquared(2);
171171

172172
// ReSharper disable EqualExpressionComparison
173-
Assert.True(a == a);
173+
Assert.True(a == a);
174174
Assert.True(a != b);
175175

176176
Assert.False(a == b);

UnitsNet.Tests/GeneratedCode/AmplitudeRatioTestsBase.g.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// Copyright © 2007 by Initial Force AS. All rights reserved.
22
// https://github.com/anjdreas/UnitsNet
3-
//
3+
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal
66
// in the Software without restriction, including without limitation the rights
77
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
88
// copies of the Software, and to permit persons to whom the Software is
99
// furnished to do so, subject to the following conditions:
10-
//
10+
//
1111
// The above copyright notice and this permission notice shall be included in
1212
// all copies or substantial portions of the Software.
13-
//
13+
//
1414
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1515
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1616
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -93,9 +93,9 @@ public void LogarithmicArithmeticOperators()
9393
Assert.AreEqual(35, (v/5).DecibelVolts, DecibelVoltsTolerance);
9494
Assert.AreEqual(35, v/AmplitudeRatio.FromDecibelVolts(5), DecibelVoltsTolerance);
9595
}
96-
96+
9797
protected abstract void AssertLogarithmicAddition();
98-
98+
9999
protected abstract void AssertLogarithmicSubtraction();
100100

101101
[Test]
@@ -136,7 +136,7 @@ public void CompareToThrowsOnTypeMismatch()
136136
[Test]
137137
[ExpectedException(typeof(ArgumentNullException))]
138138
public void CompareToThrowsOnNull()
139-
{
139+
{
140140
AmplitudeRatio decibelvolt = AmplitudeRatio.FromDecibelVolts(1);
141141
// ReSharper disable once ReturnValueOfPureMethodIsNotUsed
142142
decibelvolt.CompareTo(null);
@@ -150,7 +150,7 @@ public void EqualityOperators()
150150
AmplitudeRatio b = AmplitudeRatio.FromDecibelVolts(2);
151151

152152
// ReSharper disable EqualExpressionComparison
153-
Assert.True(a == a);
153+
Assert.True(a == a);
154154
Assert.True(a != b);
155155

156156
Assert.False(a == b);

UnitsNet.Tests/GeneratedCode/AngleTestsBase.g.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// Copyright © 2007 by Initial Force AS. All rights reserved.
22
// https://github.com/anjdreas/UnitsNet
3-
//
3+
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal
66
// in the Software without restriction, including without limitation the rights
77
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
88
// copies of the Software, and to permit persons to whom the Software is
99
// furnished to do so, subject to the following conditions:
10-
//
10+
//
1111
// The above copyright notice and this permission notice shall be included in
1212
// all copies or substantial portions of the Software.
13-
//
13+
//
1414
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1515
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1616
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -192,7 +192,7 @@ public void CompareToThrowsOnTypeMismatch()
192192
[Test]
193193
[ExpectedException(typeof(ArgumentNullException))]
194194
public void CompareToThrowsOnNull()
195-
{
195+
{
196196
Angle degree = Angle.FromDegrees(1);
197197
// ReSharper disable once ReturnValueOfPureMethodIsNotUsed
198198
degree.CompareTo(null);
@@ -206,7 +206,7 @@ public void EqualityOperators()
206206
Angle b = Angle.FromDegrees(2);
207207

208208
// ReSharper disable EqualExpressionComparison
209-
Assert.True(a == a);
209+
Assert.True(a == a);
210210
Assert.True(a != b);
211211

212212
Assert.False(a == b);

UnitsNet.Tests/GeneratedCode/AreaTestsBase.g.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// Copyright © 2007 by Initial Force AS. All rights reserved.
22
// https://github.com/anjdreas/UnitsNet
3-
//
3+
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal
66
// in the Software without restriction, including without limitation the rights
77
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
88
// copies of the Software, and to permit persons to whom the Software is
99
// furnished to do so, subject to the following conditions:
10-
//
10+
//
1111
// The above copyright notice and this permission notice shall be included in
1212
// all copies or substantial portions of the Software.
13-
//
13+
//
1414
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1515
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1616
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -174,7 +174,7 @@ public void CompareToThrowsOnTypeMismatch()
174174
[Test]
175175
[ExpectedException(typeof(ArgumentNullException))]
176176
public void CompareToThrowsOnNull()
177-
{
177+
{
178178
Area squaremeter = Area.FromSquareMeters(1);
179179
// ReSharper disable once ReturnValueOfPureMethodIsNotUsed
180180
squaremeter.CompareTo(null);
@@ -188,7 +188,7 @@ public void EqualityOperators()
188188
Area b = Area.FromSquareMeters(2);
189189

190190
// ReSharper disable EqualExpressionComparison
191-
Assert.True(a == a);
191+
Assert.True(a == a);
192192
Assert.True(a != b);
193193

194194
Assert.False(a == b);

UnitsNet.Tests/GeneratedCode/DensityTestsBase.g.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// Copyright © 2007 by Initial Force AS. All rights reserved.
22
// https://github.com/anjdreas/UnitsNet
3-
//
3+
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal
66
// in the Software without restriction, including without limitation the rights
77
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
88
// copies of the Software, and to permit persons to whom the Software is
99
// furnished to do so, subject to the following conditions:
10-
//
10+
//
1111
// The above copyright notice and this permission notice shall be included in
1212
// all copies or substantial portions of the Software.
13-
//
13+
//
1414
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1515
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1616
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -174,7 +174,7 @@ public void CompareToThrowsOnTypeMismatch()
174174
[Test]
175175
[ExpectedException(typeof(ArgumentNullException))]
176176
public void CompareToThrowsOnNull()
177-
{
177+
{
178178
Density kilogrampercubicmeter = Density.FromKilogramsPerCubicMeter(1);
179179
// ReSharper disable once ReturnValueOfPureMethodIsNotUsed
180180
kilogrampercubicmeter.CompareTo(null);
@@ -188,7 +188,7 @@ public void EqualityOperators()
188188
Density b = Density.FromKilogramsPerCubicMeter(2);
189189

190190
// ReSharper disable EqualExpressionComparison
191-
Assert.True(a == a);
191+
Assert.True(a == a);
192192
Assert.True(a != b);
193193

194194
Assert.False(a == b);

UnitsNet.Tests/GeneratedCode/DurationTestsBase.g.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// Copyright © 2007 by Initial Force AS. All rights reserved.
22
// https://github.com/anjdreas/UnitsNet
3-
//
3+
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal
66
// in the Software without restriction, including without limitation the rights
77
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
88
// copies of the Software, and to permit persons to whom the Software is
99
// furnished to do so, subject to the following conditions:
10-
//
10+
//
1111
// The above copyright notice and this permission notice shall be included in
1212
// all copies or substantial portions of the Software.
13-
//
13+
//
1414
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1515
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1616
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -174,7 +174,7 @@ public void CompareToThrowsOnTypeMismatch()
174174
[Test]
175175
[ExpectedException(typeof(ArgumentNullException))]
176176
public void CompareToThrowsOnNull()
177-
{
177+
{
178178
Duration second = Duration.FromSeconds(1);
179179
// ReSharper disable once ReturnValueOfPureMethodIsNotUsed
180180
second.CompareTo(null);
@@ -188,7 +188,7 @@ public void EqualityOperators()
188188
Duration b = Duration.FromSeconds(2);
189189

190190
// ReSharper disable EqualExpressionComparison
191-
Assert.True(a == a);
191+
Assert.True(a == a);
192192
Assert.True(a != b);
193193

194194
Assert.False(a == b);

UnitsNet.Tests/GeneratedCode/DynamicViscosityTestsBase.g.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// Copyright © 2007 by Initial Force AS. All rights reserved.
22
// https://github.com/anjdreas/UnitsNet
3-
//
3+
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal
66
// in the Software without restriction, including without limitation the rights
77
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
88
// copies of the Software, and to permit persons to whom the Software is
99
// furnished to do so, subject to the following conditions:
10-
//
10+
//
1111
// The above copyright notice and this permission notice shall be included in
1212
// all copies or substantial portions of the Software.
13-
//
13+
//
1414
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1515
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1616
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -144,7 +144,7 @@ public void CompareToThrowsOnTypeMismatch()
144144
[Test]
145145
[ExpectedException(typeof(ArgumentNullException))]
146146
public void CompareToThrowsOnNull()
147-
{
147+
{
148148
DynamicViscosity newtonsecondpermetersquared = DynamicViscosity.FromNewtonSecondsPerMeterSquared(1);
149149
// ReSharper disable once ReturnValueOfPureMethodIsNotUsed
150150
newtonsecondpermetersquared.CompareTo(null);
@@ -158,7 +158,7 @@ public void EqualityOperators()
158158
DynamicViscosity b = DynamicViscosity.FromNewtonSecondsPerMeterSquared(2);
159159

160160
// ReSharper disable EqualExpressionComparison
161-
Assert.True(a == a);
161+
Assert.True(a == a);
162162
Assert.True(a != b);
163163

164164
Assert.False(a == b);

UnitsNet.Tests/GeneratedCode/ElectricCurrentTestsBase.g.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// Copyright © 2007 by Initial Force AS. All rights reserved.
22
// https://github.com/anjdreas/UnitsNet
3-
//
3+
//
44
// Permission is hereby granted, free of charge, to any person obtaining a copy
55
// of this software and associated documentation files (the "Software"), to deal
66
// in the Software without restriction, including without limitation the rights
77
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
88
// copies of the Software, and to permit persons to whom the Software is
99
// furnished to do so, subject to the following conditions:
10-
//
10+
//
1111
// The above copyright notice and this permission notice shall be included in
1212
// all copies or substantial portions of the Software.
13-
//
13+
//
1414
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1515
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1616
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -150,7 +150,7 @@ public void CompareToThrowsOnTypeMismatch()
150150
[Test]
151151
[ExpectedException(typeof(ArgumentNullException))]
152152
public void CompareToThrowsOnNull()
153-
{
153+
{
154154
ElectricCurrent ampere = ElectricCurrent.FromAmperes(1);
155155
// ReSharper disable once ReturnValueOfPureMethodIsNotUsed
156156
ampere.CompareTo(null);
@@ -164,7 +164,7 @@ public void EqualityOperators()
164164
ElectricCurrent b = ElectricCurrent.FromAmperes(2);
165165

166166
// ReSharper disable EqualExpressionComparison
167-
Assert.True(a == a);
167+
Assert.True(a == a);
168168
Assert.True(a != b);
169169

170170
Assert.False(a == b);

0 commit comments

Comments
 (0)