File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
- using System ;
2
- using System . Collections . Generic ;
3
- using System . Linq ;
4
- using System . Text ;
5
- using System . Threading . Tasks ;
6
- using NUnit . Framework ;
1
+ using NUnit . Framework ;
7
2
8
3
namespace UnitsNet . Tests . net35
9
4
{
@@ -13,9 +8,11 @@ public class UnitValueTests
13
8
[ Test ]
14
9
public void TryConvertReturnsFalseOnIncompatibleUnits ( )
15
10
{
16
- var val = new UnitValue ( 1 , Unit . Meter ) ;
17
11
double newValue ;
18
- Assert . False ( val . TryConvert ( Unit . Second , out newValue ) ) ;
12
+ Assert . False ( new UnitValue ( 1 , Unit . Meter ) . TryConvert ( Unit . Second , out newValue ) ) ;
13
+ Assert . False ( new UnitValue ( 1 , Unit . Kilogram ) . TryConvert ( Unit . Second , out newValue ) ) ;
14
+ Assert . False ( new UnitValue ( 1 , Unit . Pascal ) . TryConvert ( Unit . Second , out newValue ) ) ;
15
+ Assert . False ( new UnitValue ( 1 , Unit . CubicMeter ) . TryConvert ( Unit . Second , out newValue ) ) ;
19
16
}
20
17
}
21
18
}
You can’t perform that action at this time.
0 commit comments