Skip to content

Commit e3df9ab

Browse files
committed
Merge pull request #119 from AgileoAutomation/feature/add-TemperatureChangeRate
Add unit TemperatureChangeRate
2 parents bb2e2ac + f1a55cb commit e3df9ab

File tree

6 files changed

+948
-0
lines changed

6 files changed

+948
-0
lines changed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
// Copyright © 2007 by Initial Force AS. All rights reserved.
2+
// https://github.com/InitialForce/UnitsNet
3+
//
4+
// Permission is hereby granted, free of charge, to any person obtaining a copy
5+
// of this software and associated documentation files (the "Software"), to deal
6+
// in the Software without restriction, including without limitation the rights
7+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
// copies of the Software, and to permit persons to whom the Software is
9+
// furnished to do so, subject to the following conditions:
10+
//
11+
// The above copyright notice and this permission notice shall be included in
12+
// all copies or substantial portions of the Software.
13+
//
14+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20+
// THE SOFTWARE.
21+
22+
23+
using System;
24+
25+
namespace UnitsNet.Tests.CustomCode
26+
{
27+
public class TemperatureChangeRateTests : TemperatureChangeRateTestsBase
28+
{
29+
protected override double DegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond
30+
{
31+
get { return 1; }
32+
}
33+
34+
protected override double DecadegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond
35+
{
36+
get { return 1E-1; }
37+
}
38+
39+
protected override double HectodegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond
40+
{
41+
get { return 1E-2; }
42+
}
43+
44+
protected override double KilodegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond
45+
{
46+
get { return 1E-3; }
47+
}
48+
49+
protected override double DecidegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond
50+
{
51+
get { return 1E1; }
52+
}
53+
54+
protected override double CentidegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond
55+
{
56+
get { return 1E2; }
57+
}
58+
59+
protected override double MillidegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond
60+
{
61+
get { return 1E3; }
62+
}
63+
64+
protected override double MicrodegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond
65+
{
66+
get { return 1E6; }
67+
}
68+
69+
protected override double NanodegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond
70+
{
71+
get { return 1E9; }
72+
}
73+
}
74+
}
Lines changed: 215 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,215 @@
1+
// Copyright © 2007 by Initial Force AS. All rights reserved.
2+
// https://github.com/InitialForce/UnitsNet
3+
//
4+
// Permission is hereby granted, free of charge, to any person obtaining a copy
5+
// of this software and associated documentation files (the "Software"), to deal
6+
// in the Software without restriction, including without limitation the rights
7+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
// copies of the Software, and to permit persons to whom the Software is
9+
// furnished to do so, subject to the following conditions:
10+
//
11+
// The above copyright notice and this permission notice shall be included in
12+
// all copies or substantial portions of the Software.
13+
//
14+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20+
// THE SOFTWARE.
21+
22+
using System;
23+
using NUnit.Framework;
24+
using UnitsNet.Units;
25+
26+
// Disable build warning CS1718: Comparison made to same variable; did you mean to compare something else?
27+
#pragma warning disable 1718
28+
29+
// ReSharper disable once CheckNamespace
30+
namespace UnitsNet.Tests
31+
{
32+
/// <summary>
33+
/// Test of TemperatureChangeRate.
34+
/// </summary>
35+
[TestFixture]
36+
// ReSharper disable once PartialTypeWithSinglePart
37+
public abstract partial class TemperatureChangeRateTestsBase
38+
{
39+
protected abstract double CentidegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond { get; }
40+
protected abstract double DecadegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond { get; }
41+
protected abstract double DecidegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond { get; }
42+
protected abstract double DegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond { get; }
43+
protected abstract double HectodegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond { get; }
44+
protected abstract double KilodegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond { get; }
45+
protected abstract double MicrodegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond { get; }
46+
protected abstract double MillidegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond { get; }
47+
protected abstract double NanodegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond { get; }
48+
49+
// ReSharper disable VirtualMemberNeverOverriden.Global
50+
protected virtual double CentidegreesCelsiusPerSecondTolerance { get { return 1e-5; } }
51+
protected virtual double DecadegreesCelsiusPerSecondTolerance { get { return 1e-5; } }
52+
protected virtual double DecidegreesCelsiusPerSecondTolerance { get { return 1e-5; } }
53+
protected virtual double DegreesCelsiusPerSecondTolerance { get { return 1e-5; } }
54+
protected virtual double HectodegreesCelsiusPerSecondTolerance { get { return 1e-5; } }
55+
protected virtual double KilodegreesCelsiusPerSecondTolerance { get { return 1e-5; } }
56+
protected virtual double MicrodegreesCelsiusPerSecondTolerance { get { return 1e-5; } }
57+
protected virtual double MillidegreesCelsiusPerSecondTolerance { get { return 1e-5; } }
58+
protected virtual double NanodegreesCelsiusPerSecondTolerance { get { return 1e-5; } }
59+
// ReSharper restore VirtualMemberNeverOverriden.Global
60+
61+
[Test]
62+
public void DegreeCelsiusPerSecondToTemperatureChangeRateUnits()
63+
{
64+
TemperatureChangeRate degreecelsiuspersecond = TemperatureChangeRate.FromDegreesCelsiusPerSecond(1);
65+
Assert.AreEqual(CentidegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond, degreecelsiuspersecond.CentidegreesCelsiusPerSecond, CentidegreesCelsiusPerSecondTolerance);
66+
Assert.AreEqual(DecadegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond, degreecelsiuspersecond.DecadegreesCelsiusPerSecond, DecadegreesCelsiusPerSecondTolerance);
67+
Assert.AreEqual(DecidegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond, degreecelsiuspersecond.DecidegreesCelsiusPerSecond, DecidegreesCelsiusPerSecondTolerance);
68+
Assert.AreEqual(DegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond, degreecelsiuspersecond.DegreesCelsiusPerSecond, DegreesCelsiusPerSecondTolerance);
69+
Assert.AreEqual(HectodegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond, degreecelsiuspersecond.HectodegreesCelsiusPerSecond, HectodegreesCelsiusPerSecondTolerance);
70+
Assert.AreEqual(KilodegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond, degreecelsiuspersecond.KilodegreesCelsiusPerSecond, KilodegreesCelsiusPerSecondTolerance);
71+
Assert.AreEqual(MicrodegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond, degreecelsiuspersecond.MicrodegreesCelsiusPerSecond, MicrodegreesCelsiusPerSecondTolerance);
72+
Assert.AreEqual(MillidegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond, degreecelsiuspersecond.MillidegreesCelsiusPerSecond, MillidegreesCelsiusPerSecondTolerance);
73+
Assert.AreEqual(NanodegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond, degreecelsiuspersecond.NanodegreesCelsiusPerSecond, NanodegreesCelsiusPerSecondTolerance);
74+
}
75+
76+
[Test]
77+
public void FromValueAndUnit()
78+
{
79+
Assert.AreEqual(1, TemperatureChangeRate.From(1, TemperatureChangeRateUnit.CentidegreeCelsiusPerSecond).CentidegreesCelsiusPerSecond, CentidegreesCelsiusPerSecondTolerance);
80+
Assert.AreEqual(1, TemperatureChangeRate.From(1, TemperatureChangeRateUnit.DecadegreeCelsiusPerSecond).DecadegreesCelsiusPerSecond, DecadegreesCelsiusPerSecondTolerance);
81+
Assert.AreEqual(1, TemperatureChangeRate.From(1, TemperatureChangeRateUnit.DecidegreeCelsiusPerSecond).DecidegreesCelsiusPerSecond, DecidegreesCelsiusPerSecondTolerance);
82+
Assert.AreEqual(1, TemperatureChangeRate.From(1, TemperatureChangeRateUnit.DegreeCelsiusPerSecond).DegreesCelsiusPerSecond, DegreesCelsiusPerSecondTolerance);
83+
Assert.AreEqual(1, TemperatureChangeRate.From(1, TemperatureChangeRateUnit.HectodegreeCelsiusPerSecond).HectodegreesCelsiusPerSecond, HectodegreesCelsiusPerSecondTolerance);
84+
Assert.AreEqual(1, TemperatureChangeRate.From(1, TemperatureChangeRateUnit.KilodegreeCelsiusPerSecond).KilodegreesCelsiusPerSecond, KilodegreesCelsiusPerSecondTolerance);
85+
Assert.AreEqual(1, TemperatureChangeRate.From(1, TemperatureChangeRateUnit.MicrodegreeCelsiusPerSecond).MicrodegreesCelsiusPerSecond, MicrodegreesCelsiusPerSecondTolerance);
86+
Assert.AreEqual(1, TemperatureChangeRate.From(1, TemperatureChangeRateUnit.MillidegreeCelsiusPerSecond).MillidegreesCelsiusPerSecond, MillidegreesCelsiusPerSecondTolerance);
87+
Assert.AreEqual(1, TemperatureChangeRate.From(1, TemperatureChangeRateUnit.NanodegreeCelsiusPerSecond).NanodegreesCelsiusPerSecond, NanodegreesCelsiusPerSecondTolerance);
88+
}
89+
90+
[Test]
91+
public void As()
92+
{
93+
var degreecelsiuspersecond = TemperatureChangeRate.FromDegreesCelsiusPerSecond(1);
94+
Assert.AreEqual(CentidegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond, degreecelsiuspersecond.As(TemperatureChangeRateUnit.CentidegreeCelsiusPerSecond), CentidegreesCelsiusPerSecondTolerance);
95+
Assert.AreEqual(DecadegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond, degreecelsiuspersecond.As(TemperatureChangeRateUnit.DecadegreeCelsiusPerSecond), DecadegreesCelsiusPerSecondTolerance);
96+
Assert.AreEqual(DecidegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond, degreecelsiuspersecond.As(TemperatureChangeRateUnit.DecidegreeCelsiusPerSecond), DecidegreesCelsiusPerSecondTolerance);
97+
Assert.AreEqual(DegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond, degreecelsiuspersecond.As(TemperatureChangeRateUnit.DegreeCelsiusPerSecond), DegreesCelsiusPerSecondTolerance);
98+
Assert.AreEqual(HectodegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond, degreecelsiuspersecond.As(TemperatureChangeRateUnit.HectodegreeCelsiusPerSecond), HectodegreesCelsiusPerSecondTolerance);
99+
Assert.AreEqual(KilodegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond, degreecelsiuspersecond.As(TemperatureChangeRateUnit.KilodegreeCelsiusPerSecond), KilodegreesCelsiusPerSecondTolerance);
100+
Assert.AreEqual(MicrodegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond, degreecelsiuspersecond.As(TemperatureChangeRateUnit.MicrodegreeCelsiusPerSecond), MicrodegreesCelsiusPerSecondTolerance);
101+
Assert.AreEqual(MillidegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond, degreecelsiuspersecond.As(TemperatureChangeRateUnit.MillidegreeCelsiusPerSecond), MillidegreesCelsiusPerSecondTolerance);
102+
Assert.AreEqual(NanodegreesCelsiusPerSecondInOneDegreeCelsiusPerSecond, degreecelsiuspersecond.As(TemperatureChangeRateUnit.NanodegreeCelsiusPerSecond), NanodegreesCelsiusPerSecondTolerance);
103+
}
104+
105+
[Test]
106+
public void ConversionRoundTrip()
107+
{
108+
TemperatureChangeRate degreecelsiuspersecond = TemperatureChangeRate.FromDegreesCelsiusPerSecond(1);
109+
Assert.AreEqual(1, TemperatureChangeRate.FromCentidegreesCelsiusPerSecond(degreecelsiuspersecond.CentidegreesCelsiusPerSecond).DegreesCelsiusPerSecond, CentidegreesCelsiusPerSecondTolerance);
110+
Assert.AreEqual(1, TemperatureChangeRate.FromDecadegreesCelsiusPerSecond(degreecelsiuspersecond.DecadegreesCelsiusPerSecond).DegreesCelsiusPerSecond, DecadegreesCelsiusPerSecondTolerance);
111+
Assert.AreEqual(1, TemperatureChangeRate.FromDecidegreesCelsiusPerSecond(degreecelsiuspersecond.DecidegreesCelsiusPerSecond).DegreesCelsiusPerSecond, DecidegreesCelsiusPerSecondTolerance);
112+
Assert.AreEqual(1, TemperatureChangeRate.FromDegreesCelsiusPerSecond(degreecelsiuspersecond.DegreesCelsiusPerSecond).DegreesCelsiusPerSecond, DegreesCelsiusPerSecondTolerance);
113+
Assert.AreEqual(1, TemperatureChangeRate.FromHectodegreesCelsiusPerSecond(degreecelsiuspersecond.HectodegreesCelsiusPerSecond).DegreesCelsiusPerSecond, HectodegreesCelsiusPerSecondTolerance);
114+
Assert.AreEqual(1, TemperatureChangeRate.FromKilodegreesCelsiusPerSecond(degreecelsiuspersecond.KilodegreesCelsiusPerSecond).DegreesCelsiusPerSecond, KilodegreesCelsiusPerSecondTolerance);
115+
Assert.AreEqual(1, TemperatureChangeRate.FromMicrodegreesCelsiusPerSecond(degreecelsiuspersecond.MicrodegreesCelsiusPerSecond).DegreesCelsiusPerSecond, MicrodegreesCelsiusPerSecondTolerance);
116+
Assert.AreEqual(1, TemperatureChangeRate.FromMillidegreesCelsiusPerSecond(degreecelsiuspersecond.MillidegreesCelsiusPerSecond).DegreesCelsiusPerSecond, MillidegreesCelsiusPerSecondTolerance);
117+
Assert.AreEqual(1, TemperatureChangeRate.FromNanodegreesCelsiusPerSecond(degreecelsiuspersecond.NanodegreesCelsiusPerSecond).DegreesCelsiusPerSecond, NanodegreesCelsiusPerSecondTolerance);
118+
}
119+
120+
[Test]
121+
public void ArithmeticOperators()
122+
{
123+
TemperatureChangeRate v = TemperatureChangeRate.FromDegreesCelsiusPerSecond(1);
124+
Assert.AreEqual(-1, -v.DegreesCelsiusPerSecond, DegreesCelsiusPerSecondTolerance);
125+
Assert.AreEqual(2, (TemperatureChangeRate.FromDegreesCelsiusPerSecond(3)-v).DegreesCelsiusPerSecond, DegreesCelsiusPerSecondTolerance);
126+
Assert.AreEqual(2, (v + v).DegreesCelsiusPerSecond, DegreesCelsiusPerSecondTolerance);
127+
Assert.AreEqual(10, (v*10).DegreesCelsiusPerSecond, DegreesCelsiusPerSecondTolerance);
128+
Assert.AreEqual(10, (10*v).DegreesCelsiusPerSecond, DegreesCelsiusPerSecondTolerance);
129+
Assert.AreEqual(2, (TemperatureChangeRate.FromDegreesCelsiusPerSecond(10)/5).DegreesCelsiusPerSecond, DegreesCelsiusPerSecondTolerance);
130+
Assert.AreEqual(2, TemperatureChangeRate.FromDegreesCelsiusPerSecond(10)/TemperatureChangeRate.FromDegreesCelsiusPerSecond(5), DegreesCelsiusPerSecondTolerance);
131+
}
132+
133+
[Test]
134+
public void ComparisonOperators()
135+
{
136+
TemperatureChangeRate oneDegreeCelsiusPerSecond = TemperatureChangeRate.FromDegreesCelsiusPerSecond(1);
137+
TemperatureChangeRate twoDegreesCelsiusPerSecond = TemperatureChangeRate.FromDegreesCelsiusPerSecond(2);
138+
139+
Assert.True(oneDegreeCelsiusPerSecond < twoDegreesCelsiusPerSecond);
140+
Assert.True(oneDegreeCelsiusPerSecond <= twoDegreesCelsiusPerSecond);
141+
Assert.True(twoDegreesCelsiusPerSecond > oneDegreeCelsiusPerSecond);
142+
Assert.True(twoDegreesCelsiusPerSecond >= oneDegreeCelsiusPerSecond);
143+
144+
Assert.False(oneDegreeCelsiusPerSecond > twoDegreesCelsiusPerSecond);
145+
Assert.False(oneDegreeCelsiusPerSecond >= twoDegreesCelsiusPerSecond);
146+
Assert.False(twoDegreesCelsiusPerSecond < oneDegreeCelsiusPerSecond);
147+
Assert.False(twoDegreesCelsiusPerSecond <= oneDegreeCelsiusPerSecond);
148+
}
149+
150+
[Test]
151+
public void CompareToIsImplemented()
152+
{
153+
TemperatureChangeRate degreecelsiuspersecond = TemperatureChangeRate.FromDegreesCelsiusPerSecond(1);
154+
Assert.AreEqual(0, degreecelsiuspersecond.CompareTo(degreecelsiuspersecond));
155+
Assert.Greater(degreecelsiuspersecond.CompareTo(TemperatureChangeRate.Zero), 0);
156+
Assert.Less(TemperatureChangeRate.Zero.CompareTo(degreecelsiuspersecond), 0);
157+
}
158+
159+
[Test]
160+
[ExpectedException(typeof(ArgumentException))]
161+
public void CompareToThrowsOnTypeMismatch()
162+
{
163+
TemperatureChangeRate degreecelsiuspersecond = TemperatureChangeRate.FromDegreesCelsiusPerSecond(1);
164+
// ReSharper disable once ReturnValueOfPureMethodIsNotUsed
165+
degreecelsiuspersecond.CompareTo(new object());
166+
}
167+
168+
[Test]
169+
[ExpectedException(typeof(ArgumentNullException))]
170+
public void CompareToThrowsOnNull()
171+
{
172+
TemperatureChangeRate degreecelsiuspersecond = TemperatureChangeRate.FromDegreesCelsiusPerSecond(1);
173+
// ReSharper disable once ReturnValueOfPureMethodIsNotUsed
174+
degreecelsiuspersecond.CompareTo(null);
175+
}
176+
177+
178+
[Test]
179+
public void EqualityOperators()
180+
{
181+
TemperatureChangeRate a = TemperatureChangeRate.FromDegreesCelsiusPerSecond(1);
182+
TemperatureChangeRate b = TemperatureChangeRate.FromDegreesCelsiusPerSecond(2);
183+
184+
// ReSharper disable EqualExpressionComparison
185+
Assert.True(a == a);
186+
Assert.True(a != b);
187+
188+
Assert.False(a == b);
189+
Assert.False(a != a);
190+
// ReSharper restore EqualExpressionComparison
191+
}
192+
193+
[Test]
194+
public void EqualsIsImplemented()
195+
{
196+
TemperatureChangeRate v = TemperatureChangeRate.FromDegreesCelsiusPerSecond(1);
197+
Assert.IsTrue(v.Equals(TemperatureChangeRate.FromDegreesCelsiusPerSecond(1)));
198+
Assert.IsFalse(v.Equals(TemperatureChangeRate.Zero));
199+
}
200+
201+
[Test]
202+
public void EqualsReturnsFalseOnTypeMismatch()
203+
{
204+
TemperatureChangeRate degreecelsiuspersecond = TemperatureChangeRate.FromDegreesCelsiusPerSecond(1);
205+
Assert.IsFalse(degreecelsiuspersecond.Equals(new object()));
206+
}
207+
208+
[Test]
209+
public void EqualsReturnsFalseOnNull()
210+
{
211+
TemperatureChangeRate degreecelsiuspersecond = TemperatureChangeRate.FromDegreesCelsiusPerSecond(1);
212+
Assert.IsFalse(degreecelsiuspersecond.Equals(null));
213+
}
214+
}
215+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Copyright © 2007 by Initial Force AS. All rights reserved.
2+
// https://github.com/InitialForce/UnitsNet
3+
//
4+
// Permission is hereby granted, free of charge, to any person obtaining a copy
5+
// of this software and associated documentation files (the "Software"), to deal
6+
// in the Software without restriction, including without limitation the rights
7+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
// copies of the Software, and to permit persons to whom the Software is
9+
// furnished to do so, subject to the following conditions:
10+
//
11+
// The above copyright notice and this permission notice shall be included in
12+
// all copies or substantial portions of the Software.
13+
//
14+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20+
// THE SOFTWARE.
21+
22+
// ReSharper disable once CheckNamespace
23+
namespace UnitsNet.Units
24+
{
25+
public enum TemperatureChangeRateUnit
26+
{
27+
Undefined = 0,
28+
CentidegreeCelsiusPerSecond,
29+
DecadegreeCelsiusPerSecond,
30+
DecidegreeCelsiusPerSecond,
31+
DegreeCelsiusPerSecond,
32+
HectodegreeCelsiusPerSecond,
33+
KilodegreeCelsiusPerSecond,
34+
MicrodegreeCelsiusPerSecond,
35+
MillidegreeCelsiusPerSecond,
36+
NanodegreeCelsiusPerSecond,
37+
}
38+
}

0 commit comments

Comments
 (0)