11
// Copyright (c) 2013 Andreas Gullberg Larsen ([email protected] ). 22// https://github.com/angularsen/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
@@ -50,9 +50,9 @@ public void ConvertByName_UnitTypeCaseInsensitive()
5050
5151 [ Theory ]
5252 [ 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 )
5454 {
55- Assert . Throws < QuantityNotFoundException > ( ( ) => UnitConverter . ConvertByName ( inputValue , quantityTypeName , fromUnit , toUnit ) ) ;
55+ Assert . Throws < UnitNotFoundException > ( ( ) => UnitConverter . ConvertByName ( inputValue , quantityTypeName , fromUnit , toUnit ) ) ;
5656 }
5757
5858 [ Theory ]
@@ -132,4 +132,4 @@ public void TryConvertByAbbreviation_ReturnsTrueOnSuccessAndOutputsResult(double
132132 Assert . Equal ( expectedValue , result ) ;
133133 }
134134 }
135- }
135+ }
0 commit comments