1
1
// Copyright © 2007 by Initial Force AS. All rights reserved.
2
2
// https://github.com/anjdreas/UnitsNet
3
- //
3
+ //
4
4
// Permission is hereby granted, free of charge, to any person obtaining a copy
5
5
// of this software and associated documentation files (the "Software"), to deal
6
6
// in the Software without restriction, including without limitation the rights
7
7
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
8
// copies of the Software, and to permit persons to whom the Software is
9
9
// furnished to do so, subject to the following conditions:
10
- //
10
+ //
11
11
// The above copyright notice and this permission notice shall be included in
12
12
// all copies or substantial portions of the Software.
13
- //
13
+ //
14
14
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
15
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
16
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -93,9 +93,9 @@ public void LogarithmicArithmeticOperators()
93
93
Assert . AreEqual ( 35 , ( v / 5 ) . DecibelVolts , DecibelVoltsTolerance ) ;
94
94
Assert . AreEqual ( 35 , v / AmplitudeRatio . FromDecibelVolts ( 5 ) , DecibelVoltsTolerance ) ;
95
95
}
96
-
96
+
97
97
protected abstract void AssertLogarithmicAddition ( ) ;
98
-
98
+
99
99
protected abstract void AssertLogarithmicSubtraction ( ) ;
100
100
101
101
[ Test ]
@@ -136,7 +136,7 @@ public void CompareToThrowsOnTypeMismatch()
136
136
[ Test ]
137
137
[ ExpectedException ( typeof ( ArgumentNullException ) ) ]
138
138
public void CompareToThrowsOnNull ( )
139
- {
139
+ {
140
140
AmplitudeRatio decibelvolt = AmplitudeRatio . FromDecibelVolts ( 1 ) ;
141
141
// ReSharper disable once ReturnValueOfPureMethodIsNotUsed
142
142
decibelvolt . CompareTo ( null ) ;
@@ -150,7 +150,7 @@ public void EqualityOperators()
150
150
AmplitudeRatio b = AmplitudeRatio . FromDecibelVolts ( 2 ) ;
151
151
152
152
// ReSharper disable EqualExpressionComparison
153
- Assert . True ( a == a ) ;
153
+ Assert . True ( a == a ) ;
154
154
Assert . True ( a != b ) ;
155
155
156
156
Assert . False ( a == b ) ;
0 commit comments