1
1
// Copyright (c) 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com).
2
2
// https://github.com/angularsen/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
@@ -50,9 +50,9 @@ public void ConvertByName_UnitTypeCaseInsensitive()
50
50
51
51
[ Theory ]
52
52
[ InlineData ( 1 , "UnknownQuantity" , "Meter" , "Centimeter" ) ]
53
- public void ConvertByName_ThrowsQuantityNotFoundExceptionOnUnknownQuantity ( double inputValue , string quantityTypeName , string fromUnit , string toUnit )
53
+ public void ConvertByName_ThrowsUnitNotFoundExceptionOnUnknownQuantity ( double inputValue , string quantityTypeName , string fromUnit , string toUnit )
54
54
{
55
- Assert . Throws < QuantityNotFoundException > ( ( ) => UnitConverter . ConvertByName ( inputValue , quantityTypeName , fromUnit , toUnit ) ) ;
55
+ Assert . Throws < UnitNotFoundException > ( ( ) => UnitConverter . ConvertByName ( inputValue , quantityTypeName , fromUnit , toUnit ) ) ;
56
56
}
57
57
58
58
[ Theory ]
@@ -132,4 +132,4 @@ public void TryConvertByAbbreviation_ReturnsTrueOnSuccessAndOutputsResult(double
132
132
Assert . Equal ( expectedValue , result ) ;
133
133
}
134
134
}
135
- }
135
+ }
0 commit comments