From 00bdc00bc7b8c130e70425ef9eceec94b97955af Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Fri, 16 Feb 2024 00:13:33 +1100 Subject: [PATCH] collapse into a single Humanizer namespace (#1351) --- .../Bytes/ArithmeticTests.cs | 4 +- .../Bytes/ByteRateTests.cs | 5 +- .../Bytes/ByteSizeExtensionsTests.cs | 1 - .../Bytes/ComparingTests.cs | 5 +- .../Bytes/CreatingTests.cs | 2 - .../Bytes/ParsingTests.cs | 1 - .../Bytes/ToFullWordsTests.cs | 2 - .../Bytes/ToStringTests.cs | 2 - src/Humanizer.Tests.Shared/DateHumanize.cs | 3 - .../DateHumanizeDefaultStrategyTests.cs | 1 - .../DateOnlyHumanizeTests.cs | 3 - .../DateTimeHumanizePrecisionStrategyTests.cs | 4 +- .../DateTimeOffsetHumanizeTests.cs | 5 +- ...WithCustomDescriptionPropertyNamesTests.cs | 4 +- .../Localisation/ResourcesTests.cs | 1 - .../Localisation/af/DateHumanizeTests.cs | 4 +- .../Localisation/af/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/ar/DateHumanizeTests.cs | 2 - .../Localisation/ar/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/az/DateHumanizeTests.cs | 4 +- .../Localisation/az/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/bg/DateHumanizeTests.cs | 4 +- .../Localisation/bg/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/bn-BD/DateHumanizeTests.cs | 4 +- .../bn-BD/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/cs/DateHumanizeTests.cs | 4 +- .../Localisation/cs/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/da/DateHumanizeTests.cs | 4 +- .../Localisation/da/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/de/Bytes/ByteRateTests.cs | 5 +- .../Localisation/de/Bytes/ToFullWordsTests.cs | 4 +- .../Localisation/de/Bytes/ToStringTests.cs | 4 +- .../Localisation/de/DateHumanizeTests.cs | 4 +- .../Localisation/de/TimeSpanHumanizeTests.cs | 8 +- .../Localisation/de/TimeUnitToSymbolTests.cs | 4 +- .../Localisation/el/DateHumanizeTests.cs | 4 +- .../Localisation/el/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/es/DateHumanizeTests.cs | 4 +- .../Localisation/es/TimeSpanHumanizeTests.cs | 6 +- .../Localisation/fa/DateHumanizeTests.cs | 4 +- .../Localisation/fa/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/fi-FI/DateHumanizeTests.cs | 4 +- .../fil-PH/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/fr-BE/DateHumanizeTests.cs | 4 +- .../fr-BE/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/fr/Bytes/ToFullWordsTests.cs | 4 +- .../Localisation/fr/Bytes/ToStringTests.cs | 4 +- .../Localisation/fr/DateHumanizeTests.cs | 4 +- .../Localisation/fr/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/fr/TimeUnitToSymbolTests.cs | 4 +- .../Localisation/he/DateHumanizeTests.cs | 4 +- .../Localisation/he/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/hr/DateHumanizeTests.cs | 4 +- .../Localisation/hr/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/hu/DateHumanizeTests.cs | 4 +- .../Localisation/hu/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/hy/DateHumanizeTests.cs | 4 +- .../Localisation/hy/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/id/DateHumanizeTests.cs | 4 +- .../Localisation/id/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/is/Bytes/ToFullWordsTests.cs | 4 +- .../Localisation/is/Bytes/ToStringTests.cs | 4 +- .../Localisation/is/DateHumanizeTests.cs | 4 +- .../Localisation/is/ResourcesTests.cs | 2 - .../Localisation/is/TimeOnlyHumanizeTests.cs | 3 - .../Localisation/is/TimeSpanHumanizeTests.cs | 8 +- .../Localisation/it/DateHumanizeTests.cs | 4 +- .../Localisation/it/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/ja/DateHumanizeTests.cs | 4 +- .../Localisation/ja/TimeSpanHumanizeTests.cs | 4 +- .../ko-KR/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/ku/DateHumanizeTests.cs | 4 +- .../Localisation/ku/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/lb/Bytes/ByteRateTests.cs | 5 +- .../Localisation/lb/Bytes/ToFullWordsTests.cs | 4 +- .../Localisation/lb/Bytes/ToStringTests.cs | 4 +- .../Localisation/lb/DateHumanizeTests.cs | 4 +- .../Localisation/lb/TimeSpanHumanizeTests.cs | 12 +- .../Localisation/lt/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/lv/TimeSpanHumanizeTests.cs | 4 +- .../ms-MY/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/mt/DateHumanizeTests.cs | 4 +- .../Localisation/mt/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/nb-NO/DateHumanizeTests.cs | 4 +- .../nb-NO/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/nb/DateHumanizeTests.cs | 4 +- .../Localisation/nb/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/nl/DateHumanizeTests.cs | 4 +- .../Localisation/nl/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/pl/DateHumanizeTests.cs | 4 +- .../Localisation/pl/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/pt-BR/DateHumanizeTests.cs | 4 +- .../pt-BR/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/pt/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/ro-Ro/DateHumanizeTests.cs | 4 +- .../ro-Ro/TimeSpanHumanizerTests.cs | 6 +- .../Localisation/ru-RU/DateHumanizeTests.cs | 4 +- .../ru-RU/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/sk/DateHumanizeTests.cs | 4 +- .../Localisation/sk/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/sl/DateHumanizeTests.cs | 4 +- .../Localisation/sl/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/sr-Latn/DateHumanizeTests.cs | 4 +- .../sr-Latn/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/sr/DateHumanizeTests.cs | 4 +- .../Localisation/sr/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/sv/DateHumanizeTests.cs | 4 +- .../Localisation/sv/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/th-TH/DateHumanizeTests.cs | 4 +- .../Localisation/tr/DateHumanizeTests.cs | 4 +- .../Localisation/tr/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/uk-UA/DateHumanizeTests.cs | 4 +- .../uk-UA/TimeSpanHumanizeTests.cs | 4 +- .../uz-Cyrl-UZ/DateHumanizeTests.cs | 4 +- .../uz-Cyrl-UZ/TimeSpanHumanizeTests.cs | 4 +- .../uz-Latn-UZ/DateHumanizeTests.cs | 4 +- .../uz-Latn-UZ/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/vi/DateHumanizeTests.cs | 4 +- .../Localisation/vi/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/zh-CN/DateHumanizeTests.cs | 4 +- .../zh-CN/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/zh-HK/DateHumanizeTests.cs | 4 +- .../zh-HK/TimeSpanHumanizeTests.cs | 6 +- .../Localisation/zh-Hans/DateHumanizeTests.cs | 4 +- .../zh-Hans/TimeSpanHumanizeTests.cs | 4 +- .../Localisation/zh-Hant/DateHumanizeTests.cs | 4 +- .../zh-Hant/TimeSpanHumanizeTests.cs | 6 +- .../ResourceKeyTests.cs | 5 +- .../TimeOnlyHumanizeTests.cs | 3 - .../TimeSpanHumanizeTests.cs | 1 - .../TimeUnitToSymbolTests.cs | 4 +- ....Approve_Public_Api.DotNet8_0.verified.txt | 707 +++++++++--------- ...est.Approve_Public_Api.Net4_8.verified.txt | 622 ++++++++------- src/Humanizer/Bytes/ByteRate.cs | 4 +- src/Humanizer/Bytes/ByteSize.cs | 5 +- src/Humanizer/Bytes/ByteSizeExtensions.cs | 4 +- src/Humanizer/CollectionHumanizeExtensions.cs | 4 +- .../CollectionFormatterRegistry.cs | 4 +- src/Humanizer/Configuration/Configurator.cs | 11 +- ...DateOnlyToOrdinalWordsConverterRegistry.cs | 4 +- .../DateToOrdinalWordsConverterRegistry.cs | 4 +- .../Configuration/FormatterRegistry.cs | 4 +- .../Configuration/LocaliserRegistry.cs | 2 +- .../NumberToWordsConverterRegistry.cs | 4 +- .../Configuration/OrdinalizerRegistry.cs | 4 +- ...meOnlyToClockNotationConvertersRegistry.cs | 4 +- src/Humanizer/DateHumanizeExtensions.cs | 4 +- .../DateTimeHumanizeAlgorithms.cs | 5 +- .../DefaultDateOnlyHumanizeStrategy.cs | 4 +- .../DefaultDateTimeHumanizeStrategy.cs | 4 +- .../DefaultDateTimeOffsetHumanizeStrategy.cs | 4 +- .../DefaultTimeOnlyHumanizeStrategy.cs | 4 +- .../IDateOnlyHumanizeStrategy.cs | 4 +- .../IDateTimeHumanizeStrategy.cs | 4 +- .../IDateTimeOffsetHumanizeStrategy.cs | 4 +- .../ITimeOnlyHumanizeStrategy.cs | 4 +- .../PrecisionDateOnlyHumanizeStrategy.cs | 4 +- .../PrecisionDateTimeHumanizeStrategy.cs | 4 +- ...PrecisionDateTimeOffsetHumanizeStrategy.cs | 4 +- .../PrecisionTimeOnlyHumanizeStrategy.cs | 4 +- src/Humanizer/DateToOrdinalWordsExtensions.cs | 4 +- src/Humanizer/EnumHumanizeExtensions.cs | 1 - src/Humanizer/HeadingExtensions.cs | 4 +- src/Humanizer/Inflections/Vocabularies.cs | 2 +- src/Humanizer/Inflections/Vocabulary.cs | 2 +- src/Humanizer/InflectorExtensions.cs | 1 - .../DefaultCollectionFormatter.cs | 2 +- .../ICollectionFormatter.cs | 2 +- .../OxfordStyleCollectionFormatter.cs | 2 +- src/Humanizer/Localisation/DataUnit.cs | 2 +- .../DefaultDateOnlyToOrdinalWordConverter.cs | 2 +- .../DefaultDateToOrdinalWordConverter.cs | 2 +- .../EsDateOnlyToOrdinalWordsConverter.cs | 4 +- .../EsDateToOrdinalWordsConverter.cs | 2 +- .../FrDateOnlyToOrdinalWordsConverter.cs | 2 +- .../FrDateToOrdinalWordsConverter.cs | 2 +- .../IDateOnlyToOrdinalWordConverter.cs | 2 +- .../IDateToOrdinalWordConverter.cs | 2 +- .../LtDateOnlyToOrdinalWordsConverter.cs | 3 +- .../LtDateToOrdinalWordsConverter.cs | 2 +- .../UsDateOnlyToOrdinalWordsConverter.cs | 2 +- .../UsDateToOrdinalWordsConverter.cs | 4 +- .../Formatters/ArabicFormatter.cs | 2 +- .../Formatters/CroatianFormatter.cs | 2 +- .../Formatters/CzechSlovakPolishFormatter.cs | 2 +- .../Formatters/DefaultFormatter.cs | 2 +- .../Formatters/FrenchFormatter.cs | 2 +- .../Formatters/GermanFormatter.cs | 2 +- .../Formatters/HebrewFormatter.cs | 2 +- .../Localisation/Formatters/IFormatter.cs | 2 +- .../Formatters/IcelandicFormatter.cs | 2 +- .../Formatters/LithuanianFormatter.cs | 4 +- .../Formatters/LuxembourgishFormatter.cs | 2 +- .../Formatters/MalteseFormatter.cs | 2 +- .../Formatters/RomanianFormatter.cs | 2 +- .../Formatters/RussianFormatter.cs | 4 +- .../Formatters/SerbianFormatter.cs | 2 +- .../Formatters/SlovenianFormatter.cs | 2 +- .../Formatters/UkrainianFormatter.cs | 4 +- .../GrammaticalNumber/LithuanianNumberForm.cs | 2 +- .../LithuanianNumberFormDetector.cs | 2 +- .../RussianGrammaticalNumber.cs | 4 +- .../RussianGrammaticalNumberDetector.cs | 2 +- .../AfrikaansNumberToWordsConverter.cs | 2 +- .../ArabicNumberToWordsConverter.cs | 2 +- .../ArmenianNumberToWordsConverter.cs | 2 +- .../AzerbaijaniNumberToWordsConverter.cs | 2 +- .../BanglaNumberToWordsConverter.cs | 2 +- ...azilianPortugueseNumberToWordsConverter.cs | 2 +- .../BulgarianNumberToWordsConverter.cs | 2 +- .../CentralKurdishNumberToWordsConverter.cs | 2 +- .../ChineseNumberToWordsConverter.cs | 2 +- .../CroatianNumberToWordsConverter.cs | 2 +- .../CzechNumberToWordsConverter.cs | 2 +- .../DefaultNumberToWordsConverter.cs | 2 +- .../DutchNumberToWordsConverter.cs | 2 +- .../EnglishNumberToWordsConverter.cs | 2 +- .../FarsiNumberToWordsConverter.cs | 2 +- .../FinnishNumberToWordsConverter.cs | 2 +- .../FrenchBelgianNumberToWordsConverter.cs | 2 +- .../FrenchNumberToWordsConverter.cs | 2 +- .../FrenchNumberToWordsConverterBase.cs | 4 +- .../FrenchSwissNumberToWordsConverter.cs | 4 +- .../GenderedNumberToWordsConverter.cs | 2 +- .../GenderlessNumberToWordsConverter.cs | 2 +- .../GermanNumberToWordsConverter.cs | 2 +- .../GermanNumberToWordsConverterBase.cs | 2 +- ...wissLiechtensteinNumberToWordsConverter.cs | 2 +- .../GreekNumberToWordsConverter.cs | 2 +- .../HebrewNumberToWordsConverter.cs | 2 +- .../NumberToWords/INumberToWordsConverter.cs | 2 +- .../IcelandicNumberToWordsConverter.cs | 2 +- .../IndianNumberToWordsConverter.cs | 2 +- .../Italian/ItalianCardinalNumberCruncher.cs | 2 +- .../Italian/ItalianOrdinalNumberCruncher.cs | 2 +- .../ItalianNumberToWordsConverter.cs | 6 +- .../JapaneseNumberToWordsConverter.cs | 2 +- .../KoreanNumberToWordsConverter.cs | 2 +- .../LatvianNumberToWordsConverter.cs | 2 +- .../LithuanianNumberToWordsConverter.cs | 4 +- .../LuxembourgishNumberToWordsConverter.cs | 4 +- .../MalteseNumberToWordsConvertor.cs | 2 +- .../NorwegianBokmalNumberToWordsConverter.cs | 2 +- .../PolishNumberToWordsConverter.cs | 2 +- .../PortugueseNumberToWordsConverter.cs | 2 +- .../RomanianCardinalNumberConverter.cs | 2 +- .../RomanianOrdinalNumberConverter.cs | 2 +- .../RomanianNumberToWordsConverter.cs | 4 +- .../RussianNumberToWordsConverter.cs | 4 +- .../SerbianCyrlNumberToWordsConverter.cs | 2 +- .../SerbianNumberToWordsConverter.cs | 2 +- .../SlovenianNumberToWordsConverter.cs | 4 +- .../SpanishNumberToWordsConverter.cs | 2 +- .../SwedishNumberToWordsConverter.cs | 2 +- .../TamilNumberToWordsConverter.cs | 2 +- .../ThaiNumberToWordsConverter.cs | 2 +- .../TurkishNumberToWordConverter.cs | 2 +- .../UkrainianNumberToWordsConverter.cs | 4 +- .../UzbekCyrlNumberToWordConverter.cs | 2 +- .../UzbekLatnNumberToWordConverter.cs | 2 +- .../VietnameseNumberToWordsConverter.cs | 2 +- .../Ordinalizers/ArmenianOrdinalizer.cs | 2 +- .../Ordinalizers/AzerbaijaniOrdinalizer.cs | 2 +- .../Ordinalizers/DefaultOrdinalizer.cs | 2 +- .../Ordinalizers/DutchOrdinalizer.cs | 4 +- .../Ordinalizers/EnglishOrdinalizer.cs | 2 +- .../Ordinalizers/FrenchOrdinalizer.cs | 2 +- .../Ordinalizers/GermanOrdinalizer.cs | 4 +- .../Localisation/Ordinalizers/IOrdinalizer.cs | 2 +- .../Ordinalizers/IcelandicOrdinalizer.cs | 2 +- .../Ordinalizers/ItalianOrdinalizer.cs | 4 +- .../Ordinalizers/LuxembourgishOrdinalizer.cs | 2 +- .../Ordinalizers/PortugueseOrdinalizer.cs | 2 +- .../Ordinalizers/RomanianOrdinalizer.cs | 2 +- .../Ordinalizers/RussianOrdinalizer.cs | 2 +- .../Ordinalizers/SpanishOrdinalizer.cs | 2 +- .../Ordinalizers/TurkishOrdinalizer.cs | 2 +- .../Ordinalizers/UkrainianOrdinalizer.cs | 2 +- .../Localisation/ResourceKeys.Common.cs | 2 +- .../Localisation/ResourceKeys.DateHumanize.cs | 2 +- .../ResourceKeys.TimeSpanHumanize.cs | 2 +- .../ResourceKeys.TimeUnitSymbol.cs | 2 +- src/Humanizer/Localisation/Resources.cs | 2 +- src/Humanizer/Localisation/Tense.cs | 4 +- ...tugueseTimeOnlyToClockNotationConverter.cs | 2 +- ...DefaultTimeOnlyToClockNotationConverter.cs | 2 +- .../EsTimeOnlyToClockNotationConverter.cs | 2 +- .../FrTimeOnlyToClockNotationConverter.cs | 2 +- .../ITimeOnlyToClockNotationConverter.cs | 2 +- .../LbTimeOnlyToClockNotationConverter.cs | 6 +- src/Humanizer/Localisation/TimeUnit.cs | 4 +- src/Humanizer/NumberToWordsExtension.cs | 4 +- src/Humanizer/OrdinalizeExtensions.cs | 4 +- .../TimeOnlyToClockNotationExtensions.cs | 2 - src/Humanizer/TimeSpanHumanizeExtensions.cs | 6 +- src/Humanizer/TimeUnitToSymbolExtensions.cs | 5 +- 296 files changed, 986 insertions(+), 1315 deletions(-) diff --git a/src/Humanizer.Tests.Shared/Bytes/ArithmeticTests.cs b/src/Humanizer.Tests.Shared/Bytes/ArithmeticTests.cs index 8886d1dec..a3b84063b 100644 --- a/src/Humanizer.Tests.Shared/Bytes/ArithmeticTests.cs +++ b/src/Humanizer.Tests.Shared/Bytes/ArithmeticTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Bytes; - -namespace Humanizer.Tests.Bytes +namespace Humanizer.Tests.Bytes { public class ArithmeticTests { diff --git a/src/Humanizer.Tests.Shared/Bytes/ByteRateTests.cs b/src/Humanizer.Tests.Shared/Bytes/ByteRateTests.cs index 5c16e8365..09f4938e6 100644 --- a/src/Humanizer.Tests.Shared/Bytes/ByteRateTests.cs +++ b/src/Humanizer.Tests.Shared/Bytes/ByteRateTests.cs @@ -1,7 +1,4 @@ -using Humanizer.Bytes; -using Humanizer.Localisation; - -namespace Humanizer.Tests.Bytes +namespace Humanizer.Tests.Bytes { [UseCulture("en")] public class ByteRateTests diff --git a/src/Humanizer.Tests.Shared/Bytes/ByteSizeExtensionsTests.cs b/src/Humanizer.Tests.Shared/Bytes/ByteSizeExtensionsTests.cs index d9501eab1..05233234e 100644 --- a/src/Humanizer.Tests.Shared/Bytes/ByteSizeExtensionsTests.cs +++ b/src/Humanizer.Tests.Shared/Bytes/ByteSizeExtensionsTests.cs @@ -1,5 +1,4 @@ using System.Globalization; -using Humanizer.Bytes; namespace Humanizer.Tests.Bytes { diff --git a/src/Humanizer.Tests.Shared/Bytes/ComparingTests.cs b/src/Humanizer.Tests.Shared/Bytes/ComparingTests.cs index 2c3a85255..133ba9e0d 100644 --- a/src/Humanizer.Tests.Shared/Bytes/ComparingTests.cs +++ b/src/Humanizer.Tests.Shared/Bytes/ComparingTests.cs @@ -1,5 +1,4 @@ -using Humanizer.Bytes; - + namespace Humanizer.Tests.Bytes { public class ComparingTests @@ -41,4 +40,4 @@ public void SortList(IEnumerable values, IEnumerable expected) Assert.Equal(expected.Select(ByteSize.Parse), list); } } -} \ No newline at end of file +} diff --git a/src/Humanizer.Tests.Shared/Bytes/CreatingTests.cs b/src/Humanizer.Tests.Shared/Bytes/CreatingTests.cs index 95885be48..191259253 100644 --- a/src/Humanizer.Tests.Shared/Bytes/CreatingTests.cs +++ b/src/Humanizer.Tests.Shared/Bytes/CreatingTests.cs @@ -20,8 +20,6 @@ //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN //THE SOFTWARE. -using Humanizer.Bytes; - namespace Humanizer.Tests.Bytes { public class CreatingTests diff --git a/src/Humanizer.Tests.Shared/Bytes/ParsingTests.cs b/src/Humanizer.Tests.Shared/Bytes/ParsingTests.cs index 5bc27a76d..5d0da9c95 100644 --- a/src/Humanizer.Tests.Shared/Bytes/ParsingTests.cs +++ b/src/Humanizer.Tests.Shared/Bytes/ParsingTests.cs @@ -21,7 +21,6 @@ //THE SOFTWARE. using System.Globalization; -using Humanizer.Bytes; namespace Humanizer.Tests.Bytes { diff --git a/src/Humanizer.Tests.Shared/Bytes/ToFullWordsTests.cs b/src/Humanizer.Tests.Shared/Bytes/ToFullWordsTests.cs index 4df48d766..45c8d61eb 100644 --- a/src/Humanizer.Tests.Shared/Bytes/ToFullWordsTests.cs +++ b/src/Humanizer.Tests.Shared/Bytes/ToFullWordsTests.cs @@ -20,8 +20,6 @@ //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN //THE SOFTWARE. -using Humanizer.Bytes; - namespace Humanizer.Tests.Bytes { [UseCulture("en")] diff --git a/src/Humanizer.Tests.Shared/Bytes/ToStringTests.cs b/src/Humanizer.Tests.Shared/Bytes/ToStringTests.cs index 1f9a54e94..6641c792b 100644 --- a/src/Humanizer.Tests.Shared/Bytes/ToStringTests.cs +++ b/src/Humanizer.Tests.Shared/Bytes/ToStringTests.cs @@ -20,8 +20,6 @@ //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN //THE SOFTWARE. -using Humanizer.Bytes; - namespace Humanizer.Tests.Bytes { [UseCulture("en")] diff --git a/src/Humanizer.Tests.Shared/DateHumanize.cs b/src/Humanizer.Tests.Shared/DateHumanize.cs index 09d92f878..65e0cc75b 100644 --- a/src/Humanizer.Tests.Shared/DateHumanize.cs +++ b/src/Humanizer.Tests.Shared/DateHumanize.cs @@ -1,7 +1,4 @@ using System.Globalization; -using Humanizer.Configuration; -using Humanizer.DateTimeHumanizeStrategy; -using Humanizer.Localisation; namespace Humanizer.Tests { diff --git a/src/Humanizer.Tests.Shared/DateHumanizeDefaultStrategyTests.cs b/src/Humanizer.Tests.Shared/DateHumanizeDefaultStrategyTests.cs index 8a2781084..bbf2c2db5 100644 --- a/src/Humanizer.Tests.Shared/DateHumanizeDefaultStrategyTests.cs +++ b/src/Humanizer.Tests.Shared/DateHumanizeDefaultStrategyTests.cs @@ -1,5 +1,4 @@ using System.Globalization; -using Humanizer.Localisation; namespace Humanizer.Tests { diff --git a/src/Humanizer.Tests.Shared/DateOnlyHumanizeTests.cs b/src/Humanizer.Tests.Shared/DateOnlyHumanizeTests.cs index 6dd1af0cb..b249398e2 100644 --- a/src/Humanizer.Tests.Shared/DateOnlyHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/DateOnlyHumanizeTests.cs @@ -1,8 +1,5 @@ #if NET6_0_OR_GREATER -using Humanizer.Configuration; -using Humanizer.DateTimeHumanizeStrategy; - namespace Humanizer.Tests { [UseCulture("en-US")] diff --git a/src/Humanizer.Tests.Shared/DateTimeHumanizePrecisionStrategyTests.cs b/src/Humanizer.Tests.Shared/DateTimeHumanizePrecisionStrategyTests.cs index 6ac2acfdd..c35a01e5a 100644 --- a/src/Humanizer.Tests.Shared/DateTimeHumanizePrecisionStrategyTests.cs +++ b/src/Humanizer.Tests.Shared/DateTimeHumanizePrecisionStrategyTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests +namespace Humanizer.Tests { [UseCulture("en-US")] public class DateTimeHumanizePrecisionStrategyTests diff --git a/src/Humanizer.Tests.Shared/DateTimeOffsetHumanizeTests.cs b/src/Humanizer.Tests.Shared/DateTimeOffsetHumanizeTests.cs index c9d3c3956..fbd6094fe 100644 --- a/src/Humanizer.Tests.Shared/DateTimeOffsetHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/DateTimeOffsetHumanizeTests.cs @@ -1,7 +1,4 @@ -using Humanizer.Configuration; -using Humanizer.DateTimeHumanizeStrategy; - -namespace Humanizer.Tests +namespace Humanizer.Tests { [UseCulture("en-US")] public class DateTimeOffsetHumanizeTests diff --git a/src/Humanizer.Tests.Shared/EnumHumanizeWithCustomDescriptionPropertyNamesTests.cs b/src/Humanizer.Tests.Shared/EnumHumanizeWithCustomDescriptionPropertyNamesTests.cs index 6dfa9bb42..b05bc2ffe 100644 --- a/src/Humanizer.Tests.Shared/EnumHumanizeWithCustomDescriptionPropertyNamesTests.cs +++ b/src/Humanizer.Tests.Shared/EnumHumanizeWithCustomDescriptionPropertyNamesTests.cs @@ -1,5 +1,3 @@ -using Humanizer.Configuration; - namespace Humanizer.Tests { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1063:ImplementIDisposableCorrectly", @@ -30,4 +28,4 @@ public void CanHumanizeMembersWithoutDescriptionAttribute() Assert.Equal(EnumTestsResources.MemberWithoutDescriptionAttributeSentence, EnumUnderTest.MemberWithoutDescriptionAttribute.Humanize()); } } -} \ No newline at end of file +} diff --git a/src/Humanizer.Tests.Shared/Localisation/ResourcesTests.cs b/src/Humanizer.Tests.Shared/Localisation/ResourcesTests.cs index 0c885db5d..7692dae88 100644 --- a/src/Humanizer.Tests.Shared/Localisation/ResourcesTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/ResourcesTests.cs @@ -1,5 +1,4 @@ using System.Globalization; -using Humanizer.Localisation; namespace Humanizer.Tests.Localisation { diff --git a/src/Humanizer.Tests.Shared/Localisation/af/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/af/DateHumanizeTests.cs index 8474f13cf..7d5feb136 100644 --- a/src/Humanizer.Tests.Shared/Localisation/af/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/af/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.af +namespace Humanizer.Tests.Localisation.af { [UseCulture("af")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/af/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/af/TimeSpanHumanizeTests.cs index 5afb08597..8464f5ffb 100644 --- a/src/Humanizer.Tests.Shared/Localisation/af/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/af/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 jaar")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 maande")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Fact] diff --git a/src/Humanizer.Tests.Shared/Localisation/ar/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/ar/DateHumanizeTests.cs index e92ddce97..4f08e1114 100644 --- a/src/Humanizer.Tests.Shared/Localisation/ar/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/ar/DateHumanizeTests.cs @@ -1,5 +1,3 @@ -using Humanizer.Localisation; - namespace Humanizer.Tests.Localisation.ar { [UseCulture("ar")] diff --git a/src/Humanizer.Tests.Shared/Localisation/ar/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/ar/TimeSpanHumanizeTests.cs index 3e69fba16..c2fefa095 100644 --- a/src/Humanizer.Tests.Shared/Localisation/ar/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/ar/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 سنة")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 أشهر")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/az/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/az/DateHumanizeTests.cs index 2eff43146..c0638d507 100644 --- a/src/Humanizer.Tests.Shared/Localisation/az/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/az/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.az +namespace Humanizer.Tests.Localisation.az { [UseCulture("az")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/az/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/az/TimeSpanHumanizeTests.cs index 7e2c2d934..259870938 100644 --- a/src/Humanizer.Tests.Shared/Localisation/az/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/az/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 il")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 ay")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/bg/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/bg/DateHumanizeTests.cs index 3b9f639d6..423764d99 100644 --- a/src/Humanizer.Tests.Shared/Localisation/bg/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/bg/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.bg +namespace Humanizer.Tests.Localisation.bg { [UseCulture("bg-BG")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/bg/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/bg/TimeSpanHumanizeTests.cs index 00c1ed2ee..6e9579a04 100644 --- a/src/Humanizer.Tests.Shared/Localisation/bg/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/bg/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 години")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 месеца")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/bn-BD/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/bn-BD/DateHumanizeTests.cs index 16c940c6f..5f0851c78 100644 --- a/src/Humanizer.Tests.Shared/Localisation/bn-BD/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/bn-BD/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.bnBD +namespace Humanizer.Tests.Localisation.bnBD { [UseCulture("bn-BD")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/bn-BD/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/bn-BD/TimeSpanHumanizeTests.cs index cf56a2ee6..cf9d974d6 100644 --- a/src/Humanizer.Tests.Shared/Localisation/bn-BD/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/bn-BD/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 বছর")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 মাস")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/cs/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/cs/DateHumanizeTests.cs index 31c1c2643..0e026622e 100644 --- a/src/Humanizer.Tests.Shared/Localisation/cs/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/cs/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.cs +namespace Humanizer.Tests.Localisation.cs { [UseCulture("cs-CZ")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/cs/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/cs/TimeSpanHumanizeTests.cs index 65d6f3bb6..c04914aed 100644 --- a/src/Humanizer.Tests.Shared/Localisation/cs/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/cs/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 let")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 měsíců")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/da/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/da/DateHumanizeTests.cs index 11cdf97d5..e72f8f27b 100644 --- a/src/Humanizer.Tests.Shared/Localisation/da/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/da/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.da +namespace Humanizer.Tests.Localisation.da { [UseCulture("da-DK")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/da/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/da/TimeSpanHumanizeTests.cs index f3fa45cbc..dff3f468b 100644 --- a/src/Humanizer.Tests.Shared/Localisation/da/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/da/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 år")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 måneder")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/de/Bytes/ByteRateTests.cs b/src/Humanizer.Tests.Shared/Localisation/de/Bytes/ByteRateTests.cs index 79142d804..372798986 100644 --- a/src/Humanizer.Tests.Shared/Localisation/de/Bytes/ByteRateTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/de/Bytes/ByteRateTests.cs @@ -1,7 +1,4 @@ -using Humanizer.Bytes; -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.de.Bytes +namespace Humanizer.Tests.Localisation.de.Bytes { [UseCulture("de-DE")] public class ByteRateTests diff --git a/src/Humanizer.Tests.Shared/Localisation/de/Bytes/ToFullWordsTests.cs b/src/Humanizer.Tests.Shared/Localisation/de/Bytes/ToFullWordsTests.cs index 35a448bbc..fcf793810 100644 --- a/src/Humanizer.Tests.Shared/Localisation/de/Bytes/ToFullWordsTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/de/Bytes/ToFullWordsTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Bytes; - -namespace Humanizer.Tests.Localisation.de.Bytes +namespace Humanizer.Tests.Localisation.de.Bytes { [UseCulture("de-DE")] public class ToFullWordsTests diff --git a/src/Humanizer.Tests.Shared/Localisation/de/Bytes/ToStringTests.cs b/src/Humanizer.Tests.Shared/Localisation/de/Bytes/ToStringTests.cs index 43338befa..d4bbbcb50 100644 --- a/src/Humanizer.Tests.Shared/Localisation/de/Bytes/ToStringTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/de/Bytes/ToStringTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Bytes; - -namespace Humanizer.Tests.Localisation.de.Bytes +namespace Humanizer.Tests.Localisation.de.Bytes { [UseCulture("de-DE")] public class ToStringTests diff --git a/src/Humanizer.Tests.Shared/Localisation/de/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/de/DateHumanizeTests.cs index a6c06ce61..a2bdfe0d9 100644 --- a/src/Humanizer.Tests.Shared/Localisation/de/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/de/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.de +namespace Humanizer.Tests.Localisation.de { [UseCulture("de-DE")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/de/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/de/TimeSpanHumanizeTests.cs index a9d087aec..26dc8a119 100644 --- a/src/Humanizer.Tests.Shared/Localisation/de/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/de/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 Jahre")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(4018, "elf Jahre")] public void YearsToWords(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year,toWords:true)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year,toWords:true)); } [Theory] @@ -33,7 +33,7 @@ public void YearsToWords(int days, string expected) [InlineData(335, "11 Monate")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -44,7 +44,7 @@ public void Months(int days, string expected) [InlineData(335, "elf Monate")] public void MonthsToWords(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year,toWords:true)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year,toWords:true)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/de/TimeUnitToSymbolTests.cs b/src/Humanizer.Tests.Shared/Localisation/de/TimeUnitToSymbolTests.cs index 792d2754c..e63b97617 100644 --- a/src/Humanizer.Tests.Shared/Localisation/de/TimeUnitToSymbolTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/de/TimeUnitToSymbolTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.de +namespace Humanizer.Tests.Localisation.de { [UseCulture("de-DE")] public class TimeUnitToSymbolTests diff --git a/src/Humanizer.Tests.Shared/Localisation/el/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/el/DateHumanizeTests.cs index 069d1129c..d146ecc5d 100644 --- a/src/Humanizer.Tests.Shared/Localisation/el/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/el/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.el +namespace Humanizer.Tests.Localisation.el { [UseCulture("el")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/el/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/el/TimeSpanHumanizeTests.cs index 30121cdd0..0c22f786a 100644 --- a/src/Humanizer.Tests.Shared/Localisation/el/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/el/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 χρόνια")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 μήνες")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/es/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/es/DateHumanizeTests.cs index 7432bf33c..52e5ebac4 100644 --- a/src/Humanizer.Tests.Shared/Localisation/es/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/es/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.es +namespace Humanizer.Tests.Localisation.es { [UseCulture("es-ES")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/es/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/es/TimeSpanHumanizeTests.cs index 584d7f1db..e4b027da7 100644 --- a/src/Humanizer.Tests.Shared/Localisation/es/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/es/TimeSpanHumanizeTests.cs @@ -1,7 +1,5 @@ using System.Globalization; -using Humanizer.Localisation; - namespace Humanizer.Tests.Localisation.es { [UseCulture("es-ES")] @@ -15,7 +13,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 años")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -26,7 +24,7 @@ public void Years(int days, string expected) [InlineData(335, "11 meses")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Fact] diff --git a/src/Humanizer.Tests.Shared/Localisation/fa/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/fa/DateHumanizeTests.cs index f4ee79dd6..b66e9a699 100644 --- a/src/Humanizer.Tests.Shared/Localisation/fa/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/fa/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.fa +namespace Humanizer.Tests.Localisation.fa { [UseCulture("fa")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/fa/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/fa/TimeSpanHumanizeTests.cs index b19b6ac26..67f7c3a83 100644 --- a/src/Humanizer.Tests.Shared/Localisation/fa/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/fa/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 سال")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 ماه")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/fi-FI/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/fi-FI/DateHumanizeTests.cs index ab947301d..455682705 100644 --- a/src/Humanizer.Tests.Shared/Localisation/fi-FI/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/fi-FI/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.fiFI +namespace Humanizer.Tests.Localisation.fiFI { [UseCulture("fi-FI")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/fil-PH/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/fil-PH/TimeSpanHumanizeTests.cs index 47ea0f0ff..f96c9be46 100644 --- a/src/Humanizer.Tests.Shared/Localisation/fil-PH/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/fil-PH/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 taon")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 buwan")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/fr-BE/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/fr-BE/DateHumanizeTests.cs index cdab77efa..561f0f0ad 100644 --- a/src/Humanizer.Tests.Shared/Localisation/fr-BE/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/fr-BE/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.frBE +namespace Humanizer.Tests.Localisation.frBE { [UseCulture("fr-BE")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/fr-BE/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/fr-BE/TimeSpanHumanizeTests.cs index 8c4523df8..248d1005f 100644 --- a/src/Humanizer.Tests.Shared/Localisation/fr-BE/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/fr-BE/TimeSpanHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.frBE +namespace Humanizer.Tests.Localisation.frBE { [UseCulture("fr-BE")] public class TimeSpanHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/fr/Bytes/ToFullWordsTests.cs b/src/Humanizer.Tests.Shared/Localisation/fr/Bytes/ToFullWordsTests.cs index 53a131097..ef5505615 100644 --- a/src/Humanizer.Tests.Shared/Localisation/fr/Bytes/ToFullWordsTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/fr/Bytes/ToFullWordsTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Bytes; - -namespace Humanizer.Tests.Localisation.fr.Bytes +namespace Humanizer.Tests.Localisation.fr.Bytes { [UseCulture("fr-FR")] public class ToFullWordsTests diff --git a/src/Humanizer.Tests.Shared/Localisation/fr/Bytes/ToStringTests.cs b/src/Humanizer.Tests.Shared/Localisation/fr/Bytes/ToStringTests.cs index 93a9e2df4..f14c649a4 100644 --- a/src/Humanizer.Tests.Shared/Localisation/fr/Bytes/ToStringTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/fr/Bytes/ToStringTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Bytes; - -namespace Humanizer.Tests.Localisation.fr.Bytes +namespace Humanizer.Tests.Localisation.fr.Bytes { [UseCulture("fr-FR")] public class ToStringTests diff --git a/src/Humanizer.Tests.Shared/Localisation/fr/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/fr/DateHumanizeTests.cs index a8486e2d4..a1dfae18a 100644 --- a/src/Humanizer.Tests.Shared/Localisation/fr/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/fr/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.fr +namespace Humanizer.Tests.Localisation.fr { [UseCulture("fr")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/fr/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/fr/TimeSpanHumanizeTests.cs index 7d5054e9b..d81b85bae 100644 --- a/src/Humanizer.Tests.Shared/Localisation/fr/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/fr/TimeSpanHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.fr +namespace Humanizer.Tests.Localisation.fr { [UseCulture("fr")] public class TimeSpanHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/fr/TimeUnitToSymbolTests.cs b/src/Humanizer.Tests.Shared/Localisation/fr/TimeUnitToSymbolTests.cs index b75204f55..7099b1f28 100644 --- a/src/Humanizer.Tests.Shared/Localisation/fr/TimeUnitToSymbolTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/fr/TimeUnitToSymbolTests.cs @@ -1,5 +1,3 @@ -using Humanizer.Localisation; - namespace Humanizer.Tests.Localisation.fr { [UseCulture("fr")] @@ -20,4 +18,4 @@ public void ToSymbol(TimeUnit unit, string expected) Assert.Equal(expected, unit.ToSymbol()); } } -} \ No newline at end of file +} diff --git a/src/Humanizer.Tests.Shared/Localisation/he/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/he/DateHumanizeTests.cs index a69b93f6e..3fec75975 100644 --- a/src/Humanizer.Tests.Shared/Localisation/he/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/he/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.he +namespace Humanizer.Tests.Localisation.he { [UseCulture("he")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/he/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/he/TimeSpanHumanizeTests.cs index b9621e94f..a593bdd78 100644 --- a/src/Humanizer.Tests.Shared/Localisation/he/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/he/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 שנים")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 חודשים")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/hr/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/hr/DateHumanizeTests.cs index cd1c6f0f9..9045c3d47 100644 --- a/src/Humanizer.Tests.Shared/Localisation/hr/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/hr/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.hr +namespace Humanizer.Tests.Localisation.hr { [UseCulture("hr-HR")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/hr/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/hr/TimeSpanHumanizeTests.cs index 2036f6d95..2119c6eb9 100644 --- a/src/Humanizer.Tests.Shared/Localisation/hr/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/hr/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 godina")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 mjeseci")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/hu/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/hu/DateHumanizeTests.cs index 3bf20a057..bd000126f 100644 --- a/src/Humanizer.Tests.Shared/Localisation/hu/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/hu/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.hu +namespace Humanizer.Tests.Localisation.hu { [UseCulture("hu-HU")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/hu/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/hu/TimeSpanHumanizeTests.cs index 1c074f081..620b56f61 100644 --- a/src/Humanizer.Tests.Shared/Localisation/hu/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/hu/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 év")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 hónap")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/hy/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/hy/DateHumanizeTests.cs index 8c29f6328..eda4b1bf6 100644 --- a/src/Humanizer.Tests.Shared/Localisation/hy/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/hy/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.hy +namespace Humanizer.Tests.Localisation.hy { [UseCulture("hy")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/hy/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/hy/TimeSpanHumanizeTests.cs index 80a11c113..a7c141351 100644 --- a/src/Humanizer.Tests.Shared/Localisation/hy/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/hy/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 տարի")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 ամիս")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/id/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/id/DateHumanizeTests.cs index a0f72e8b1..965367077 100644 --- a/src/Humanizer.Tests.Shared/Localisation/id/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/id/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.id +namespace Humanizer.Tests.Localisation.id { [UseCulture("id-ID")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/id/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/id/TimeSpanHumanizeTests.cs index ad2ffcbc8..646d554f8 100644 --- a/src/Humanizer.Tests.Shared/Localisation/id/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/id/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 tahun")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 bulan")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/is/Bytes/ToFullWordsTests.cs b/src/Humanizer.Tests.Shared/Localisation/is/Bytes/ToFullWordsTests.cs index 88352672f..27313d9f2 100644 --- a/src/Humanizer.Tests.Shared/Localisation/is/Bytes/ToFullWordsTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/is/Bytes/ToFullWordsTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Bytes; - -namespace Humanizer.Tests.Localisation.@is.Bytes +namespace Humanizer.Tests.Localisation.@is.Bytes { [UseCulture("is")] public class ToFullWordsTests diff --git a/src/Humanizer.Tests.Shared/Localisation/is/Bytes/ToStringTests.cs b/src/Humanizer.Tests.Shared/Localisation/is/Bytes/ToStringTests.cs index 53de0f5f4..1aa7cffc6 100644 --- a/src/Humanizer.Tests.Shared/Localisation/is/Bytes/ToStringTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/is/Bytes/ToStringTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Bytes; - -namespace Humanizer.Tests.Localisation.@is.Bytes +namespace Humanizer.Tests.Localisation.@is.Bytes { [UseCulture("is")] public class ToStringTests diff --git a/src/Humanizer.Tests.Shared/Localisation/is/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/is/DateHumanizeTests.cs index 6936bfcfe..ab7eeacce 100644 --- a/src/Humanizer.Tests.Shared/Localisation/is/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/is/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.@is +namespace Humanizer.Tests.Localisation.@is { [UseCulture("is")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/is/ResourcesTests.cs b/src/Humanizer.Tests.Shared/Localisation/is/ResourcesTests.cs index bbb2e563e..55228eb24 100644 --- a/src/Humanizer.Tests.Shared/Localisation/is/ResourcesTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/is/ResourcesTests.cs @@ -1,7 +1,5 @@ using System.Globalization; -using Humanizer.Localisation; - namespace Humanizer.Tests.Localisation.@is { public class ResourcesTests diff --git a/src/Humanizer.Tests.Shared/Localisation/is/TimeOnlyHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/is/TimeOnlyHumanizeTests.cs index 40bcedfc0..98770d727 100644 --- a/src/Humanizer.Tests.Shared/Localisation/is/TimeOnlyHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/is/TimeOnlyHumanizeTests.cs @@ -1,8 +1,5 @@ #if NET6_0_OR_GREATER -using Humanizer.Configuration; -using Humanizer.DateTimeHumanizeStrategy; - namespace Humanizer.Tests.Localisation.@is { [UseCulture("is")] diff --git a/src/Humanizer.Tests.Shared/Localisation/is/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/is/TimeSpanHumanizeTests.cs index 10df5c706..3d494e503 100644 --- a/src/Humanizer.Tests.Shared/Localisation/is/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/is/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 ár")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(4018, "ellefu ár")] public void YearsToWords(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year,toWords:true)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year,toWords:true)); } [Theory] @@ -33,7 +33,7 @@ public void YearsToWords(int days, string expected) [InlineData(335, "11 mánuðir")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -44,7 +44,7 @@ public void Months(int days, string expected) [InlineData(335, "ellefu mánuðir")] public void MonthsToWords(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year,toWords:true)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year,toWords:true)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/it/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/it/DateHumanizeTests.cs index d45efecb7..06f185211 100644 --- a/src/Humanizer.Tests.Shared/Localisation/it/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/it/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.it +namespace Humanizer.Tests.Localisation.it { [UseCulture("it")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/it/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/it/TimeSpanHumanizeTests.cs index dd8bc8ac2..c3a1186d0 100644 --- a/src/Humanizer.Tests.Shared/Localisation/it/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/it/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 anni")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 mesi")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/ja/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/ja/DateHumanizeTests.cs index 3443d9482..29985b1d4 100644 --- a/src/Humanizer.Tests.Shared/Localisation/ja/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/ja/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.ja +namespace Humanizer.Tests.Localisation.ja { [UseCulture("ja")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/ja/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/ja/TimeSpanHumanizeTests.cs index 55a127583..9165f89ad 100644 --- a/src/Humanizer.Tests.Shared/Localisation/ja/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/ja/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 年")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 ヶ月")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/ko-KR/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/ko-KR/TimeSpanHumanizeTests.cs index f2daf037a..a29dc0054 100644 --- a/src/Humanizer.Tests.Shared/Localisation/ko-KR/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/ko-KR/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11년")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11개월")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/ku/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/ku/DateHumanizeTests.cs index b246d760d..f6bb703e7 100644 --- a/src/Humanizer.Tests.Shared/Localisation/ku/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/ku/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.ku +namespace Humanizer.Tests.Localisation.ku { [UseCulture("ku")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/ku/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/ku/TimeSpanHumanizeTests.cs index fa5b7ff0d..48291fa91 100644 --- a/src/Humanizer.Tests.Shared/Localisation/ku/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/ku/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 ساڵ")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 مانگ")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/lb/Bytes/ByteRateTests.cs b/src/Humanizer.Tests.Shared/Localisation/lb/Bytes/ByteRateTests.cs index 91e7fcf3f..01b608958 100644 --- a/src/Humanizer.Tests.Shared/Localisation/lb/Bytes/ByteRateTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/lb/Bytes/ByteRateTests.cs @@ -1,7 +1,4 @@ -using Humanizer.Bytes; -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.lb.Bytes; +namespace Humanizer.Tests.Localisation.lb.Bytes; [UseCulture("lb-LU")] public class ByteRateTests diff --git a/src/Humanizer.Tests.Shared/Localisation/lb/Bytes/ToFullWordsTests.cs b/src/Humanizer.Tests.Shared/Localisation/lb/Bytes/ToFullWordsTests.cs index b30d1344d..20565a2b2 100644 --- a/src/Humanizer.Tests.Shared/Localisation/lb/Bytes/ToFullWordsTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/lb/Bytes/ToFullWordsTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Bytes; - -namespace Humanizer.Tests.Localisation.lb.Bytes; +namespace Humanizer.Tests.Localisation.lb.Bytes; [UseCulture("lb-LU")] public class ToFullWordsTests diff --git a/src/Humanizer.Tests.Shared/Localisation/lb/Bytes/ToStringTests.cs b/src/Humanizer.Tests.Shared/Localisation/lb/Bytes/ToStringTests.cs index 53e1cd105..fb632980c 100644 --- a/src/Humanizer.Tests.Shared/Localisation/lb/Bytes/ToStringTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/lb/Bytes/ToStringTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Bytes; - -namespace Humanizer.Tests.Localisation.lb.Bytes; +namespace Humanizer.Tests.Localisation.lb.Bytes; [UseCulture("lb-LU")] public class ToStringTests diff --git a/src/Humanizer.Tests.Shared/Localisation/lb/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/lb/DateHumanizeTests.cs index bfdd36490..b639d9351 100644 --- a/src/Humanizer.Tests.Shared/Localisation/lb/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/lb/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.lb; +namespace Humanizer.Tests.Localisation.lb; [UseCulture("lb-LU")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/lb/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/lb/TimeSpanHumanizeTests.cs index 9c7fa4645..bff8bfc5d 100644 --- a/src/Humanizer.Tests.Shared/Localisation/lb/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/lb/TimeSpanHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.lb; +namespace Humanizer.Tests.Localisation.lb; [UseCulture("lb-LU")] public class TimeSpanHumanizeTests @@ -13,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 Joer")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -24,7 +22,7 @@ public void Years(int days, string expected) [InlineData(4018, "eelef Joer")] public void YearsToWords(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year,toWords:true)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year,toWords:true)); } [Theory] @@ -35,7 +33,7 @@ public void YearsToWords(int days, string expected) [InlineData(335, "11 Méint")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -46,7 +44,7 @@ public void Months(int days, string expected) [InlineData(335, "eelef Méint")] public void MonthsToWords(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year,toWords:true)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year,toWords:true)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/lt/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/lt/TimeSpanHumanizeTests.cs index a378ad518..6ebcd77ea 100644 --- a/src/Humanizer.Tests.Shared/Localisation/lt/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/lt/TimeSpanHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.lt +namespace Humanizer.Tests.Localisation.lt { [UseCulture("lt")] public class TimeSpanHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/lv/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/lv/TimeSpanHumanizeTests.cs index 9d15d0f58..1b12afef5 100644 --- a/src/Humanizer.Tests.Shared/Localisation/lv/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/lv/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 gadi")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 mēneši")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/ms-MY/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/ms-MY/TimeSpanHumanizeTests.cs index 17b0ffb6d..0111761d9 100644 --- a/src/Humanizer.Tests.Shared/Localisation/ms-MY/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/ms-MY/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 tahun")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 bulan")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/mt/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/mt/DateHumanizeTests.cs index 40951001b..180155096 100644 --- a/src/Humanizer.Tests.Shared/Localisation/mt/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/mt/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.mt +namespace Humanizer.Tests.Localisation.mt { [UseCulture("mt")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/mt/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/mt/TimeSpanHumanizeTests.cs index 78393cfc8..93f07b1ed 100644 --- a/src/Humanizer.Tests.Shared/Localisation/mt/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/mt/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 snin")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 xhur")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/nb-NO/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/nb-NO/DateHumanizeTests.cs index 429fad21b..a1d5ac689 100644 --- a/src/Humanizer.Tests.Shared/Localisation/nb-NO/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/nb-NO/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.nbNO +namespace Humanizer.Tests.Localisation.nbNO { [UseCulture("nb-NO")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/nb-NO/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/nb-NO/TimeSpanHumanizeTests.cs index 20cacf2d4..57432429d 100644 --- a/src/Humanizer.Tests.Shared/Localisation/nb-NO/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/nb-NO/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 år")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 måneder")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/nb/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/nb/DateHumanizeTests.cs index a573f1434..630e72726 100644 --- a/src/Humanizer.Tests.Shared/Localisation/nb/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/nb/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.nb +namespace Humanizer.Tests.Localisation.nb { [UseCulture("nb")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/nb/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/nb/TimeSpanHumanizeTests.cs index d85200bd4..ac9c5c5f4 100644 --- a/src/Humanizer.Tests.Shared/Localisation/nb/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/nb/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 år")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 måneder")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/nl/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/nl/DateHumanizeTests.cs index 0b6b04410..0d6e30865 100644 --- a/src/Humanizer.Tests.Shared/Localisation/nl/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/nl/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.nl +namespace Humanizer.Tests.Localisation.nl { [UseCulture("nl-NL")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/nl/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/nl/TimeSpanHumanizeTests.cs index 20c053fe3..d9f7d4155 100644 --- a/src/Humanizer.Tests.Shared/Localisation/nl/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/nl/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 jaar")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 maanden")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Fact] diff --git a/src/Humanizer.Tests.Shared/Localisation/pl/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/pl/DateHumanizeTests.cs index bb7a9eaff..66e6d1fff 100644 --- a/src/Humanizer.Tests.Shared/Localisation/pl/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/pl/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.pl +namespace Humanizer.Tests.Localisation.pl { [UseCulture("pl")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/pl/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/pl/TimeSpanHumanizeTests.cs index 49d381318..744f9b65f 100644 --- a/src/Humanizer.Tests.Shared/Localisation/pl/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/pl/TimeSpanHumanizeTests.cs @@ -87,7 +87,7 @@ public void Weeks(int number, string expected) [InlineData(335, "11 miesięcy")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -98,7 +98,7 @@ public void Months(int days, string expected) [InlineData(4018, "11 lat")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Fact] diff --git a/src/Humanizer.Tests.Shared/Localisation/pt-BR/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/pt-BR/DateHumanizeTests.cs index e39a5c4c2..744f3ff4c 100644 --- a/src/Humanizer.Tests.Shared/Localisation/pt-BR/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/pt-BR/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.ptBR +namespace Humanizer.Tests.Localisation.ptBR { [UseCulture("pt-BR")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/pt-BR/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/pt-BR/TimeSpanHumanizeTests.cs index 443361172..5f7179060 100644 --- a/src/Humanizer.Tests.Shared/Localisation/pt-BR/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/pt-BR/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 anos")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 meses")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Fact] diff --git a/src/Humanizer.Tests.Shared/Localisation/pt/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/pt/TimeSpanHumanizeTests.cs index 54f65921c..938c8064f 100644 --- a/src/Humanizer.Tests.Shared/Localisation/pt/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/pt/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 anos")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 meses")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Fact] diff --git a/src/Humanizer.Tests.Shared/Localisation/ro-Ro/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/ro-Ro/DateHumanizeTests.cs index 4819c2245..97682acaa 100644 --- a/src/Humanizer.Tests.Shared/Localisation/ro-Ro/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/ro-Ro/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.roRO +namespace Humanizer.Tests.Localisation.roRO { /// /// Test that for values bigger than 19 "de" is added between the numeral diff --git a/src/Humanizer.Tests.Shared/Localisation/ro-Ro/TimeSpanHumanizerTests.cs b/src/Humanizer.Tests.Shared/Localisation/ro-Ro/TimeSpanHumanizerTests.cs index 995f9b68d..a7171300b 100644 --- a/src/Humanizer.Tests.Shared/Localisation/ro-Ro/TimeSpanHumanizerTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/ro-Ro/TimeSpanHumanizerTests.cs @@ -28,7 +28,7 @@ public void Milliseconds(int milliseconds, string expected) [InlineData(156, "2 minute")] public void Seconds(int seconds, string expected, bool toWords = false) { - var actual = TimeSpan.FromSeconds(seconds).Humanize(minUnit: Humanizer.Localisation.TimeUnit.Second, + var actual = TimeSpan.FromSeconds(seconds).Humanize(minUnit: TimeUnit.Second, toWords: toWords); Assert.Equal(expected, actual); } @@ -85,7 +85,7 @@ public void Weeks(int weeks, string expected) [InlineData(335, "11 luni")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -97,7 +97,7 @@ public void Months(int days, string expected) [InlineData(7500, "20 de ani")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Fact] diff --git a/src/Humanizer.Tests.Shared/Localisation/ru-RU/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/ru-RU/DateHumanizeTests.cs index 40c6b4c20..f7dbea459 100644 --- a/src/Humanizer.Tests.Shared/Localisation/ru-RU/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/ru-RU/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.ruRU +namespace Humanizer.Tests.Localisation.ruRU { [UseCulture("ru-RU")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/ru-RU/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/ru-RU/TimeSpanHumanizeTests.cs index e6a72686c..330de3834 100644 --- a/src/Humanizer.Tests.Shared/Localisation/ru-RU/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/ru-RU/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 лет")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 месяцев")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/sk/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/sk/DateHumanizeTests.cs index e4643d3ed..1001154d3 100644 --- a/src/Humanizer.Tests.Shared/Localisation/sk/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/sk/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.sk +namespace Humanizer.Tests.Localisation.sk { [UseCulture("sk-SK")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/sk/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/sk/TimeSpanHumanizeTests.cs index 0af1d3298..c277d319b 100644 --- a/src/Humanizer.Tests.Shared/Localisation/sk/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/sk/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 rokov")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 mesiacov")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/sl/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/sl/DateHumanizeTests.cs index c68c66595..24e5a53bf 100644 --- a/src/Humanizer.Tests.Shared/Localisation/sl/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/sl/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.sl +namespace Humanizer.Tests.Localisation.sl { [UseCulture("sl-SI")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/sl/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/sl/TimeSpanHumanizeTests.cs index 8707088c6..3a0b5c6a8 100644 --- a/src/Humanizer.Tests.Shared/Localisation/sl/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/sl/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 let")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 mesecev")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/sr-Latn/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/sr-Latn/DateHumanizeTests.cs index 50bec6050..b904a548b 100644 --- a/src/Humanizer.Tests.Shared/Localisation/sr-Latn/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/sr-Latn/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.srLatn +namespace Humanizer.Tests.Localisation.srLatn { [UseCulture("sr-Latn")] public class DateHumanizeDefaultStrategyTests diff --git a/src/Humanizer.Tests.Shared/Localisation/sr-Latn/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/sr-Latn/TimeSpanHumanizeTests.cs index a5b0ef4f7..d97c91df6 100644 --- a/src/Humanizer.Tests.Shared/Localisation/sr-Latn/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/sr-Latn/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 godina")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 meseci")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/sr/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/sr/DateHumanizeTests.cs index 470826c14..b32becbde 100644 --- a/src/Humanizer.Tests.Shared/Localisation/sr/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/sr/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.sr +namespace Humanizer.Tests.Localisation.sr { [UseCulture("sr")] public class DateHumanizeDefaultStrategyTests diff --git a/src/Humanizer.Tests.Shared/Localisation/sr/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/sr/TimeSpanHumanizeTests.cs index 715f5006c..7831dc6f9 100644 --- a/src/Humanizer.Tests.Shared/Localisation/sr/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/sr/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 година")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 месеци")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/sv/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/sv/DateHumanizeTests.cs index 941282811..9c44ca772 100644 --- a/src/Humanizer.Tests.Shared/Localisation/sv/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/sv/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.sv +namespace Humanizer.Tests.Localisation.sv { [UseCulture("sv-SE")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/sv/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/sv/TimeSpanHumanizeTests.cs index 3b7db537d..357a73fff 100644 --- a/src/Humanizer.Tests.Shared/Localisation/sv/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/sv/TimeSpanHumanizeTests.cs @@ -59,7 +59,7 @@ public void Weeks(int number, string expected) [InlineData(335, "11 månader")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -70,7 +70,7 @@ public void Months(int days, string expected) [InlineData(4018, "11 år")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } } } diff --git a/src/Humanizer.Tests.Shared/Localisation/th-TH/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/th-TH/DateHumanizeTests.cs index 9618acef5..398835090 100644 --- a/src/Humanizer.Tests.Shared/Localisation/th-TH/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/th-TH/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.thTH +namespace Humanizer.Tests.Localisation.thTH { [UseCulture("th-TH")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/tr/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/tr/DateHumanizeTests.cs index 52b42cb66..50f3e4623 100644 --- a/src/Humanizer.Tests.Shared/Localisation/tr/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/tr/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.tr +namespace Humanizer.Tests.Localisation.tr { [UseCulture("tr")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/tr/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/tr/TimeSpanHumanizeTests.cs index 40a7c7c1a..5ec66a34c 100644 --- a/src/Humanizer.Tests.Shared/Localisation/tr/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/tr/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 yıl")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 ay")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/uk-UA/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/uk-UA/DateHumanizeTests.cs index a41b044b4..dab80d5c2 100644 --- a/src/Humanizer.Tests.Shared/Localisation/uk-UA/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/uk-UA/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.ukUA +namespace Humanizer.Tests.Localisation.ukUA { [UseCulture("uk-UA")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/uk-UA/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/uk-UA/TimeSpanHumanizeTests.cs index e41daed9e..af3b3fc43 100644 --- a/src/Humanizer.Tests.Shared/Localisation/uk-UA/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/uk-UA/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 років")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 місяців")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/uz-Cyrl-UZ/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/uz-Cyrl-UZ/DateHumanizeTests.cs index df21027a6..0dd2e6071 100644 --- a/src/Humanizer.Tests.Shared/Localisation/uz-Cyrl-UZ/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/uz-Cyrl-UZ/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.uzCyrl +namespace Humanizer.Tests.Localisation.uzCyrl { [UseCulture("uz-Cyrl-UZ")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/uz-Cyrl-UZ/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/uz-Cyrl-UZ/TimeSpanHumanizeTests.cs index d5a0fdb74..ed7c736e3 100644 --- a/src/Humanizer.Tests.Shared/Localisation/uz-Cyrl-UZ/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/uz-Cyrl-UZ/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 йил")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 ой")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/uz-Latn-UZ/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/uz-Latn-UZ/DateHumanizeTests.cs index 35a68114f..762cbdadc 100644 --- a/src/Humanizer.Tests.Shared/Localisation/uz-Latn-UZ/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/uz-Latn-UZ/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.uzLatn +namespace Humanizer.Tests.Localisation.uzLatn { [UseCulture("uz-Latn-UZ")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/uz-Latn-UZ/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/uz-Latn-UZ/TimeSpanHumanizeTests.cs index 175f72f4c..e6b1c1080 100644 --- a/src/Humanizer.Tests.Shared/Localisation/uz-Latn-UZ/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/uz-Latn-UZ/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 yil")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 oy")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/vi/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/vi/DateHumanizeTests.cs index f799e6f19..c1cf51d4b 100644 --- a/src/Humanizer.Tests.Shared/Localisation/vi/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/vi/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.vi +namespace Humanizer.Tests.Localisation.vi { [UseCulture("vi")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/vi/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/vi/TimeSpanHumanizeTests.cs index 12753925d..5421ed379 100644 --- a/src/Humanizer.Tests.Shared/Localisation/vi/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/vi/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 năm")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 tháng")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/zh-CN/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/zh-CN/DateHumanizeTests.cs index 49e830c4a..e0c1cc27e 100644 --- a/src/Humanizer.Tests.Shared/Localisation/zh-CN/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/zh-CN/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.zhCN +namespace Humanizer.Tests.Localisation.zhCN { [UseCulture("zh-CN")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/zh-CN/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/zh-CN/TimeSpanHumanizeTests.cs index 920496a82..db9dd700c 100644 --- a/src/Humanizer.Tests.Shared/Localisation/zh-CN/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/zh-CN/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 年")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 个月")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/zh-HK/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/zh-HK/DateHumanizeTests.cs index 9537eda98..136edaed2 100644 --- a/src/Humanizer.Tests.Shared/Localisation/zh-HK/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/zh-HK/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.zhHK +namespace Humanizer.Tests.Localisation.zhHK { [UseCulture("zh-HK")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/zh-HK/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/zh-HK/TimeSpanHumanizeTests.cs index a31f38a3e..4c296eb10 100644 --- a/src/Humanizer.Tests.Shared/Localisation/zh-HK/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/zh-HK/TimeSpanHumanizeTests.cs @@ -10,8 +10,8 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 年")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -21,7 +21,7 @@ public void Years(int days, string expected) [InlineData(335, "11 個月")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/zh-Hans/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/zh-Hans/DateHumanizeTests.cs index 530089df4..7916b4080 100644 --- a/src/Humanizer.Tests.Shared/Localisation/zh-Hans/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/zh-Hans/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.zhHans +namespace Humanizer.Tests.Localisation.zhHans { [UseCulture("zh-Hans")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/zh-Hans/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/zh-Hans/TimeSpanHumanizeTests.cs index 450e2e442..362a0446c 100644 --- a/src/Humanizer.Tests.Shared/Localisation/zh-Hans/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/zh-Hans/TimeSpanHumanizeTests.cs @@ -11,7 +11,7 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 年")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -22,7 +22,7 @@ public void Years(int days, string expected) [InlineData(335, "11 个月")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/Localisation/zh-Hant/DateHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/zh-Hant/DateHumanizeTests.cs index 1db0fb77e..d0478f72c 100644 --- a/src/Humanizer.Tests.Shared/Localisation/zh-Hant/DateHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/zh-Hant/DateHumanizeTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests.Localisation.zhHant +namespace Humanizer.Tests.Localisation.zhHant { [UseCulture("zh-Hant")] public class DateHumanizeTests diff --git a/src/Humanizer.Tests.Shared/Localisation/zh-Hant/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/Localisation/zh-Hant/TimeSpanHumanizeTests.cs index debf9b5f2..fc8da53da 100644 --- a/src/Humanizer.Tests.Shared/Localisation/zh-Hant/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/zh-Hant/TimeSpanHumanizeTests.cs @@ -11,8 +11,8 @@ public class TimeSpanHumanizeTests [InlineData(4018, "11 年")] public void Years(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] @@ -23,7 +23,7 @@ public void Years(int days, string expected) [InlineData(335, "11 個月")] public void Months(int days, string expected) { - Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: Humanizer.Localisation.TimeUnit.Year)); + Assert.Equal(expected, TimeSpan.FromDays(days).Humanize(maxUnit: TimeUnit.Year)); } [Theory] diff --git a/src/Humanizer.Tests.Shared/ResourceKeyTests.cs b/src/Humanizer.Tests.Shared/ResourceKeyTests.cs index 75b7855f1..90dbfcb03 100644 --- a/src/Humanizer.Tests.Shared/ResourceKeyTests.cs +++ b/src/Humanizer.Tests.Shared/ResourceKeyTests.cs @@ -1,8 +1,5 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests +namespace Humanizer.Tests { - #pragma warning disable xUnit1026 // Theory methods should use all of their parameters public class ResourceKeyTests { diff --git a/src/Humanizer.Tests.Shared/TimeOnlyHumanizeTests.cs b/src/Humanizer.Tests.Shared/TimeOnlyHumanizeTests.cs index 736713f04..cacf68cff 100644 --- a/src/Humanizer.Tests.Shared/TimeOnlyHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/TimeOnlyHumanizeTests.cs @@ -1,8 +1,5 @@ #if NET6_0_OR_GREATER -using Humanizer.Configuration; -using Humanizer.DateTimeHumanizeStrategy; - namespace Humanizer.Tests { [UseCulture("en-US")] diff --git a/src/Humanizer.Tests.Shared/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests.Shared/TimeSpanHumanizeTests.cs index df7afca8d..195e4e3ca 100644 --- a/src/Humanizer.Tests.Shared/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests.Shared/TimeSpanHumanizeTests.cs @@ -1,5 +1,4 @@ using System.Globalization; -using Humanizer.Localisation; namespace Humanizer.Tests { diff --git a/src/Humanizer.Tests.Shared/TimeUnitToSymbolTests.cs b/src/Humanizer.Tests.Shared/TimeUnitToSymbolTests.cs index 7e6a929cb..471568f78 100644 --- a/src/Humanizer.Tests.Shared/TimeUnitToSymbolTests.cs +++ b/src/Humanizer.Tests.Shared/TimeUnitToSymbolTests.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Tests +namespace Humanizer.Tests { [UseCulture("en-US")] public class TimeUnitToSymbolTests diff --git a/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.Approve_Public_Api.DotNet8_0.verified.txt b/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.Approve_Public_Api.DotNet8_0.verified.txt index 951710cac..01d9f2c11 100644 --- a/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.Approve_Public_Api.DotNet8_0.verified.txt +++ b/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.Approve_Public_Api.DotNet8_0.verified.txt @@ -3,59 +3,140 @@ [assembly: System.Runtime.Versioning.TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName=".NET 6.0")] namespace Humanizer { + public class ByteRate + { + public ByteRate(Humanizer.ByteSize size, System.TimeSpan interval) { } + public System.TimeSpan Interval { get; } + public Humanizer.ByteSize Size { get; } + public string Humanize(Humanizer.TimeUnit timeUnit = 1) { } + public string Humanize(string format, Humanizer.TimeUnit timeUnit = 1, System.Globalization.CultureInfo culture = null) { } + } + public struct ByteSize : System.IComparable, System.IComparable, System.IEquatable, System.IFormattable + { + public const string Bit = "bit"; + public const string BitSymbol = "b"; + public const long BitsInByte = 8; + public const string Byte = "byte"; + public const string ByteSymbol = "B"; + public const long BytesInGigabyte = 1073741824; + public const long BytesInKilobyte = 1024; + public const long BytesInMegabyte = 1048576; + public const long BytesInTerabyte = 1099511627776; + public const string Gigabyte = "gigabyte"; + public const string GigabyteSymbol = "GB"; + public const string Kilobyte = "kilobyte"; + public const string KilobyteSymbol = "KB"; + public const string Megabyte = "megabyte"; + public const string MegabyteSymbol = "MB"; + public const string Terabyte = "terabyte"; + public const string TerabyteSymbol = "TB"; + public static readonly Humanizer.ByteSize MaxValue; + public static readonly Humanizer.ByteSize MinValue; + public ByteSize(double byteSize) { } + public long Bits { get; } + public double Bytes { get; } + public double Gigabytes { get; } + public double Kilobytes { get; } + public string LargestWholeNumberFullWord { get; } + public string LargestWholeNumberSymbol { get; } + public double LargestWholeNumberValue { get; } + public double Megabytes { get; } + public double Terabytes { get; } + public Humanizer.ByteSize Add(Humanizer.ByteSize bs) { } + public Humanizer.ByteSize AddBits(long value) { } + public Humanizer.ByteSize AddBytes(double value) { } + public Humanizer.ByteSize AddGigabytes(double value) { } + public Humanizer.ByteSize AddKilobytes(double value) { } + public Humanizer.ByteSize AddMegabytes(double value) { } + public Humanizer.ByteSize AddTerabytes(double value) { } + public int CompareTo(Humanizer.ByteSize other) { } + public int CompareTo(object obj) { } + public bool Equals(Humanizer.ByteSize value) { } + public override bool Equals(object value) { } + public override int GetHashCode() { } + public string GetLargestWholeNumberFullWord(System.IFormatProvider provider = null) { } + public string GetLargestWholeNumberSymbol(System.IFormatProvider provider = null) { } + public Humanizer.ByteSize Subtract(Humanizer.ByteSize bs) { } + public string ToFullWords(string format = null, System.IFormatProvider provider = null) { } + public override string ToString() { } + public string ToString(System.IFormatProvider provider) { } + public string ToString(string format) { } + public string ToString(string format, System.IFormatProvider provider) { } + public static Humanizer.ByteSize FromBits(long value) { } + public static Humanizer.ByteSize FromBytes(double value) { } + public static Humanizer.ByteSize FromGigabytes(double value) { } + public static Humanizer.ByteSize FromKilobytes(double value) { } + public static Humanizer.ByteSize FromMegabytes(double value) { } + public static Humanizer.ByteSize FromTerabytes(double value) { } + public static Humanizer.ByteSize Parse(string s) { } + public static Humanizer.ByteSize Parse(string s, System.IFormatProvider formatProvider) { } + public static bool TryParse(string s, out Humanizer.ByteSize result) { } + public static bool TryParse(string s, System.IFormatProvider formatProvider, out Humanizer.ByteSize result) { } + public static bool operator !=(Humanizer.ByteSize b1, Humanizer.ByteSize b2) { } + public static Humanizer.ByteSize operator +(Humanizer.ByteSize b1, Humanizer.ByteSize b2) { } + public static Humanizer.ByteSize operator ++(Humanizer.ByteSize b) { } + public static Humanizer.ByteSize operator -(Humanizer.ByteSize b) { } + public static Humanizer.ByteSize operator -(Humanizer.ByteSize b1, Humanizer.ByteSize b2) { } + public static Humanizer.ByteSize operator --(Humanizer.ByteSize b) { } + public static bool operator <(Humanizer.ByteSize b1, Humanizer.ByteSize b2) { } + public static bool operator <=(Humanizer.ByteSize b1, Humanizer.ByteSize b2) { } + public static bool operator ==(Humanizer.ByteSize b1, Humanizer.ByteSize b2) { } + public static bool operator >(Humanizer.ByteSize b1, Humanizer.ByteSize b2) { } + public static bool operator >=(Humanizer.ByteSize b1, Humanizer.ByteSize b2) { } + } public static class ByteSizeExtensions { - public static Humanizer.Bytes.ByteSize Bits(this byte input) { } - public static Humanizer.Bytes.ByteSize Bits(this int input) { } - public static Humanizer.Bytes.ByteSize Bits(this long input) { } - public static Humanizer.Bytes.ByteSize Bits(this sbyte input) { } - public static Humanizer.Bytes.ByteSize Bits(this short input) { } - public static Humanizer.Bytes.ByteSize Bits(this uint input) { } - public static Humanizer.Bytes.ByteSize Bits(this ushort input) { } - public static Humanizer.Bytes.ByteSize Bytes(this byte input) { } - public static Humanizer.Bytes.ByteSize Bytes(this double input) { } - public static Humanizer.Bytes.ByteSize Bytes(this int input) { } - public static Humanizer.Bytes.ByteSize Bytes(this long input) { } - public static Humanizer.Bytes.ByteSize Bytes(this sbyte input) { } - public static Humanizer.Bytes.ByteSize Bytes(this short input) { } - public static Humanizer.Bytes.ByteSize Bytes(this uint input) { } - public static Humanizer.Bytes.ByteSize Bytes(this ushort input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this byte input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this double input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this int input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this long input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this sbyte input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this short input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this uint input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this ushort input) { } - public static string Humanize(this Humanizer.Bytes.ByteSize input, System.IFormatProvider formatProvider) { } - public static string Humanize(this Humanizer.Bytes.ByteSize input, string format = null) { } - public static string Humanize(this Humanizer.Bytes.ByteSize input, string format, System.IFormatProvider formatProvider) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this byte input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this double input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this int input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this long input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this sbyte input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this short input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this uint input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this ushort input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this byte input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this double input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this int input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this long input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this sbyte input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this short input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this uint input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this ushort input) { } - public static Humanizer.Bytes.ByteRate Per(this Humanizer.Bytes.ByteSize size, System.TimeSpan interval) { } - public static Humanizer.Bytes.ByteSize Terabytes(this byte input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this double input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this int input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this long input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this sbyte input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this short input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this uint input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this ushort input) { } + public static Humanizer.ByteSize Bits(this byte input) { } + public static Humanizer.ByteSize Bits(this int input) { } + public static Humanizer.ByteSize Bits(this long input) { } + public static Humanizer.ByteSize Bits(this sbyte input) { } + public static Humanizer.ByteSize Bits(this short input) { } + public static Humanizer.ByteSize Bits(this uint input) { } + public static Humanizer.ByteSize Bits(this ushort input) { } + public static Humanizer.ByteSize Bytes(this byte input) { } + public static Humanizer.ByteSize Bytes(this double input) { } + public static Humanizer.ByteSize Bytes(this int input) { } + public static Humanizer.ByteSize Bytes(this long input) { } + public static Humanizer.ByteSize Bytes(this sbyte input) { } + public static Humanizer.ByteSize Bytes(this short input) { } + public static Humanizer.ByteSize Bytes(this uint input) { } + public static Humanizer.ByteSize Bytes(this ushort input) { } + public static Humanizer.ByteSize Gigabytes(this byte input) { } + public static Humanizer.ByteSize Gigabytes(this double input) { } + public static Humanizer.ByteSize Gigabytes(this int input) { } + public static Humanizer.ByteSize Gigabytes(this long input) { } + public static Humanizer.ByteSize Gigabytes(this sbyte input) { } + public static Humanizer.ByteSize Gigabytes(this short input) { } + public static Humanizer.ByteSize Gigabytes(this uint input) { } + public static Humanizer.ByteSize Gigabytes(this ushort input) { } + public static string Humanize(this Humanizer.ByteSize input, System.IFormatProvider formatProvider) { } + public static string Humanize(this Humanizer.ByteSize input, string format = null) { } + public static string Humanize(this Humanizer.ByteSize input, string format, System.IFormatProvider formatProvider) { } + public static Humanizer.ByteSize Kilobytes(this byte input) { } + public static Humanizer.ByteSize Kilobytes(this double input) { } + public static Humanizer.ByteSize Kilobytes(this int input) { } + public static Humanizer.ByteSize Kilobytes(this long input) { } + public static Humanizer.ByteSize Kilobytes(this sbyte input) { } + public static Humanizer.ByteSize Kilobytes(this short input) { } + public static Humanizer.ByteSize Kilobytes(this uint input) { } + public static Humanizer.ByteSize Kilobytes(this ushort input) { } + public static Humanizer.ByteSize Megabytes(this byte input) { } + public static Humanizer.ByteSize Megabytes(this double input) { } + public static Humanizer.ByteSize Megabytes(this int input) { } + public static Humanizer.ByteSize Megabytes(this long input) { } + public static Humanizer.ByteSize Megabytes(this sbyte input) { } + public static Humanizer.ByteSize Megabytes(this short input) { } + public static Humanizer.ByteSize Megabytes(this uint input) { } + public static Humanizer.ByteSize Megabytes(this ushort input) { } + public static Humanizer.ByteRate Per(this Humanizer.ByteSize size, System.TimeSpan interval) { } + public static Humanizer.ByteSize Terabytes(this byte input) { } + public static Humanizer.ByteSize Terabytes(this double input) { } + public static Humanizer.ByteSize Terabytes(this int input) { } + public static Humanizer.ByteSize Terabytes(this long input) { } + public static Humanizer.ByteSize Terabytes(this sbyte input) { } + public static Humanizer.ByteSize Terabytes(this short input) { } + public static Humanizer.ByteSize Terabytes(this uint input) { } + public static Humanizer.ByteSize Terabytes(this ushort input) { } } public static class CasingExtensions { @@ -75,6 +156,30 @@ namespace Humanizer public static string Humanize(this System.Collections.Generic.IEnumerable collection, System.Func displayFormatter, string separator) { } public static string Humanize(this System.Collections.Generic.IEnumerable collection, System.Func displayFormatter, string separator) { } } + public static class Configurator + { + public static Humanizer.LocaliserRegistry CollectionFormatters { get; } + public static Humanizer.LocaliserRegistry DateOnlyToOrdinalWordsConverters { get; } + public static Humanizer.LocaliserRegistry DateToOrdinalWordsConverters { get; } + public static Humanizer.LocaliserRegistry Formatters { get; } + public static Humanizer.LocaliserRegistry NumberToWordsConverters { get; } + public static Humanizer.LocaliserRegistry Ordinalizers { get; } + public static Humanizer.LocaliserRegistry TimeOnlyToClockNotationConverters { get; } + public static Humanizer.IDateOnlyHumanizeStrategy DateOnlyHumanizeStrategy { get; set; } + public static Humanizer.IDateTimeHumanizeStrategy DateTimeHumanizeStrategy { get; set; } + public static Humanizer.IDateTimeOffsetHumanizeStrategy DateTimeOffsetHumanizeStrategy { get; set; } + public static System.Func EnumDescriptionPropertyLocator { get; set; } + public static Humanizer.ITimeOnlyHumanizeStrategy TimeOnlyHumanizeStrategy { get; set; } + } + public enum DataUnit + { + Bit = 0, + Byte = 1, + Kilobyte = 2, + Megabyte = 3, + Gigabyte = 4, + Terabyte = 5, + } public static class DateHumanizeExtensions { public static string Humanize(this System.DateOnly input, System.DateOnly? dateToCompareAgainst = default, System.Globalization.CultureInfo culture = null) { } @@ -93,6 +198,41 @@ namespace Humanizer public static string ToOrdinalWords(this System.DateOnly input, Humanizer.GrammaticalCase grammaticalCase) { } public static string ToOrdinalWords(this System.DateTime input, Humanizer.GrammaticalCase grammaticalCase) { } } + public class DefaultDateOnlyHumanizeStrategy : Humanizer.IDateOnlyHumanizeStrategy + { + public DefaultDateOnlyHumanizeStrategy() { } + public string Humanize(System.DateOnly input, System.DateOnly comparisonBase, System.Globalization.CultureInfo culture) { } + } + public class DefaultDateTimeHumanizeStrategy : Humanizer.IDateTimeHumanizeStrategy + { + public DefaultDateTimeHumanizeStrategy() { } + public string Humanize(System.DateTime input, System.DateTime comparisonBase, System.Globalization.CultureInfo culture) { } + } + public class DefaultDateTimeOffsetHumanizeStrategy : Humanizer.IDateTimeOffsetHumanizeStrategy + { + public DefaultDateTimeOffsetHumanizeStrategy() { } + public string Humanize(System.DateTimeOffset input, System.DateTimeOffset comparisonBase, System.Globalization.CultureInfo culture) { } + } + public class DefaultFormatter : Humanizer.IFormatter + { + public DefaultFormatter(string localeCode) { } + public virtual string DataUnitHumanize(Humanizer.DataUnit dataUnit, double count, bool toSymbol = true) { } + public virtual string DateHumanize(Humanizer.TimeUnit timeUnit, Humanizer.Tense timeUnitTense, int unit) { } + public virtual string DateHumanize_Never() { } + public virtual string DateHumanize_Now() { } + protected virtual string Format(string resourceKey) { } + protected virtual string Format(string resourceKey, int number, bool toWords = false) { } + protected virtual string GetResourceKey(string resourceKey) { } + protected virtual string GetResourceKey(string resourceKey, int number) { } + public virtual string TimeSpanHumanize(Humanizer.TimeUnit timeUnit, int unit, bool toWords = false) { } + public virtual string TimeSpanHumanize_Zero() { } + public virtual string TimeUnitHumanize(Humanizer.TimeUnit timeUnit) { } + } + public class DefaultTimeOnlyHumanizeStrategy : Humanizer.ITimeOnlyHumanizeStrategy + { + public DefaultTimeOnlyHumanizeStrategy() { } + public string Humanize(System.TimeOnly input, System.TimeOnly comparisonBase, System.Globalization.CultureInfo culture) { } + } public static class EnglishArticle { public static string[] AppendArticlePrefix(string[] items) { } @@ -144,14 +284,84 @@ namespace Humanizer Abbreviated = 0, Full = 1, } + public interface ICollectionFormatter + { + string Humanize(System.Collections.Generic.IEnumerable collection); + string Humanize(System.Collections.Generic.IEnumerable collection, System.Func objectFormatter); + string Humanize(System.Collections.Generic.IEnumerable collection, System.Func objectFormatter); + string Humanize(System.Collections.Generic.IEnumerable collection, string separator); + string Humanize(System.Collections.Generic.IEnumerable collection, System.Func objectFormatter, string separator); + string Humanize(System.Collections.Generic.IEnumerable collection, System.Func objectFormatter, string separator); + } public interface ICulturedStringTransformer : Humanizer.IStringTransformer { string Transform(string input, System.Globalization.CultureInfo culture); } + public interface IDateOnlyHumanizeStrategy + { + string Humanize(System.DateOnly input, System.DateOnly comparisonBase, System.Globalization.CultureInfo culture); + } + public interface IDateOnlyToOrdinalWordConverter + { + string Convert(System.DateOnly date); + string Convert(System.DateOnly date, Humanizer.GrammaticalCase grammaticalCase); + } + public interface IDateTimeHumanizeStrategy + { + string Humanize(System.DateTime input, System.DateTime comparisonBase, System.Globalization.CultureInfo culture); + } + public interface IDateTimeOffsetHumanizeStrategy + { + string Humanize(System.DateTimeOffset input, System.DateTimeOffset comparisonBase, System.Globalization.CultureInfo culture); + } + public interface IDateToOrdinalWordConverter + { + string Convert(System.DateTime date); + string Convert(System.DateTime date, Humanizer.GrammaticalCase grammaticalCase); + } + public interface IFormatter + { + string DataUnitHumanize(Humanizer.DataUnit dataUnit, double count, bool toSymbol = true); + string DateHumanize(Humanizer.TimeUnit timeUnit, Humanizer.Tense timeUnitTense, int unit); + string DateHumanize_Never(); + string DateHumanize_Now(); + string TimeSpanHumanize(Humanizer.TimeUnit timeUnit, int unit, bool toWords = false); + string TimeSpanHumanize_Zero(); + string TimeUnitHumanize(Humanizer.TimeUnit timeUnit); + } + public interface INumberToWordsConverter + { + string Convert(long number); + string Convert(long number, Humanizer.WordForm wordForm); + string Convert(long number, bool addAnd); + string Convert(long number, Humanizer.GrammaticalGender gender, bool addAnd = true); + string Convert(long number, bool addAnd, Humanizer.WordForm wordForm); + string Convert(long number, Humanizer.WordForm wordForm, Humanizer.GrammaticalGender gender, bool addAnd = true); + string ConvertToOrdinal(int number); + string ConvertToOrdinal(int number, Humanizer.GrammaticalGender gender); + string ConvertToOrdinal(int number, Humanizer.WordForm wordForm); + string ConvertToOrdinal(int number, Humanizer.GrammaticalGender gender, Humanizer.WordForm wordForm); + string ConvertToTuple(int number); + } + public interface IOrdinalizer + { + string Convert(int number, string numberString); + string Convert(int number, string numberString, Humanizer.GrammaticalGender gender); + string Convert(int number, string numberString, Humanizer.WordForm wordForm); + string Convert(int number, string numberString, Humanizer.GrammaticalGender gender, Humanizer.WordForm wordForm); + } public interface IStringTransformer { string Transform(string input); } + public interface ITimeOnlyHumanizeStrategy + { + string Humanize(System.TimeOnly input, System.TimeOnly comparisonBase, System.Globalization.CultureInfo culture); + } + public interface ITimeOnlyToClockNotationConverter + { + string Convert(System.TimeOnly time, Humanizer.ClockNotationRounding roundToNearestFive); + } public interface ITruncator { string Truncate(string value, int length, string truncationString, Humanizer.TruncateFrom truncateFrom = 1); @@ -553,6 +763,16 @@ namespace Humanizer LowerCase = 2, Sentence = 3, } + public class LocaliserRegistry + where TLocaliser : class + { + public LocaliserRegistry(System.Func defaultLocaliser) { } + public LocaliserRegistry(TLocaliser defaultLocaliser) { } + public void Register(string localeCode, System.Func localiser) { } + public void Register(string localeCode, TLocaliser localiser) { } + public TLocaliser ResolveForCulture(System.Globalization.CultureInfo culture) { } + public TLocaliser ResolveForUiCulture() { } + } public static class MetricNumeralExtensions { public static double FromMetric(this string input) { } @@ -1570,6 +1790,26 @@ namespace Humanizer Plural = 1, CouldBeEither = 2, } + public class PrecisionDateOnlyHumanizeStrategy : Humanizer.IDateOnlyHumanizeStrategy + { + public PrecisionDateOnlyHumanizeStrategy(double precision = 0.75) { } + public string Humanize(System.DateOnly input, System.DateOnly comparisonBase, System.Globalization.CultureInfo culture) { } + } + public class PrecisionDateTimeHumanizeStrategy : Humanizer.IDateTimeHumanizeStrategy + { + public PrecisionDateTimeHumanizeStrategy(double precision = 0.75) { } + public string Humanize(System.DateTime input, System.DateTime comparisonBase, System.Globalization.CultureInfo culture) { } + } + public class PrecisionDateTimeOffsetHumanizeStrategy : Humanizer.IDateTimeOffsetHumanizeStrategy + { + public PrecisionDateTimeOffsetHumanizeStrategy(double precision = 0.75) { } + public string Humanize(System.DateTimeOffset input, System.DateTimeOffset comparisonBase, System.Globalization.CultureInfo culture) { } + } + public class PrecisionTimeOnlyHumanizeStrategy : Humanizer.ITimeOnlyHumanizeStrategy + { + public PrecisionTimeOnlyHumanizeStrategy(double precision = 0.75) { } + public string Humanize(System.TimeOnly input, System.TimeOnly comparisonBase, System.Globalization.CultureInfo culture) { } + } public static class PrepositionsExtensions { public static System.DateTime At(this System.DateTime date, int hour, int min = 0, int second = 0, int millisecond = 0) { } @@ -1577,6 +1817,28 @@ namespace Humanizer public static System.DateTime AtNoon(this System.DateTime date) { } public static System.DateTime In(this System.DateTime date, int year) { } } + public class ResourceKeys + { + public ResourceKeys() { } + public static class DateHumanize + { + public const string Never = "DateHumanize_Never"; + public const string Now = "DateHumanize_Now"; + public static string GetResourceKey(Humanizer.TimeUnit timeUnit, Humanizer.Tense timeUnitTense, int count = 1) { } + } + public static class TimeSpanHumanize + { + public static string GetResourceKey(Humanizer.TimeUnit unit, int count = 1, bool toWords = false) { } + } + public static class TimeUnitSymbol + { + public static string GetResourceKey(Humanizer.TimeUnit unit) { } + } + } + public static class Resources + { + public static string GetResource(string resourceKey, System.Globalization.CultureInfo culture = null) { } + } public static class RomanNumeralExtensions { public static int FromRoman(this string input) { } @@ -1602,18 +1864,34 @@ namespace Humanizer public static string Humanize(this string input) { } public static string Humanize(this string input, Humanizer.LetterCasing casing) { } } + public enum Tense + { + Future = 0, + Past = 1, + } public static class TimeOnlyToClockNotationExtensions { public static string ToClockNotation(this System.TimeOnly input, Humanizer.ClockNotationRounding roundToNearestFive = 0) { } } public static class TimeSpanHumanizeExtensions { - public static string Humanize(this System.TimeSpan timeSpan, int precision = 1, System.Globalization.CultureInfo culture = null, Humanizer.Localisation.TimeUnit maxUnit = 5, Humanizer.Localisation.TimeUnit minUnit = 0, string collectionSeparator = ", ", bool toWords = false) { } - public static string Humanize(this System.TimeSpan timeSpan, int precision, bool countEmptyUnits, System.Globalization.CultureInfo culture = null, Humanizer.Localisation.TimeUnit maxUnit = 5, Humanizer.Localisation.TimeUnit minUnit = 0, string collectionSeparator = ", ", bool toWords = false) { } + public static string Humanize(this System.TimeSpan timeSpan, int precision = 1, System.Globalization.CultureInfo culture = null, Humanizer.TimeUnit maxUnit = 5, Humanizer.TimeUnit minUnit = 0, string collectionSeparator = ", ", bool toWords = false) { } + public static string Humanize(this System.TimeSpan timeSpan, int precision, bool countEmptyUnits, System.Globalization.CultureInfo culture = null, Humanizer.TimeUnit maxUnit = 5, Humanizer.TimeUnit minUnit = 0, string collectionSeparator = ", ", bool toWords = false) { } + } + public enum TimeUnit + { + Millisecond = 0, + Second = 1, + Minute = 2, + Hour = 3, + Day = 4, + Week = 5, + Month = 6, + Year = 7, } public static class TimeUnitToSymbolExtensions { - public static string ToSymbol(this Humanizer.Localisation.TimeUnit unit, System.Globalization.CultureInfo culture = null) { } + public static string ToSymbol(this Humanizer.TimeUnit unit, System.Globalization.CultureInfo culture = null) { } } public static class To { @@ -1653,189 +1931,9 @@ namespace Humanizer { public static string Tupleize(this int input) { } } - public enum WordForm - { - Normal = 0, - Abbreviation = 1, - Eifeler = 2, - } -} -namespace Humanizer.Bytes -{ - public class ByteRate - { - public ByteRate(Humanizer.Bytes.ByteSize size, System.TimeSpan interval) { } - public System.TimeSpan Interval { get; } - public Humanizer.Bytes.ByteSize Size { get; } - public string Humanize(Humanizer.Localisation.TimeUnit timeUnit = 1) { } - public string Humanize(string format, Humanizer.Localisation.TimeUnit timeUnit = 1, System.Globalization.CultureInfo culture = null) { } - } - public struct ByteSize : System.IComparable, System.IComparable, System.IEquatable, System.IFormattable - { - public const string Bit = "bit"; - public const string BitSymbol = "b"; - public const long BitsInByte = 8; - public const string Byte = "byte"; - public const string ByteSymbol = "B"; - public const long BytesInGigabyte = 1073741824; - public const long BytesInKilobyte = 1024; - public const long BytesInMegabyte = 1048576; - public const long BytesInTerabyte = 1099511627776; - public const string Gigabyte = "gigabyte"; - public const string GigabyteSymbol = "GB"; - public const string Kilobyte = "kilobyte"; - public const string KilobyteSymbol = "KB"; - public const string Megabyte = "megabyte"; - public const string MegabyteSymbol = "MB"; - public const string Terabyte = "terabyte"; - public const string TerabyteSymbol = "TB"; - public static readonly Humanizer.Bytes.ByteSize MaxValue; - public static readonly Humanizer.Bytes.ByteSize MinValue; - public ByteSize(double byteSize) { } - public long Bits { get; } - public double Bytes { get; } - public double Gigabytes { get; } - public double Kilobytes { get; } - public string LargestWholeNumberFullWord { get; } - public string LargestWholeNumberSymbol { get; } - public double LargestWholeNumberValue { get; } - public double Megabytes { get; } - public double Terabytes { get; } - public Humanizer.Bytes.ByteSize Add(Humanizer.Bytes.ByteSize bs) { } - public Humanizer.Bytes.ByteSize AddBits(long value) { } - public Humanizer.Bytes.ByteSize AddBytes(double value) { } - public Humanizer.Bytes.ByteSize AddGigabytes(double value) { } - public Humanizer.Bytes.ByteSize AddKilobytes(double value) { } - public Humanizer.Bytes.ByteSize AddMegabytes(double value) { } - public Humanizer.Bytes.ByteSize AddTerabytes(double value) { } - public int CompareTo(Humanizer.Bytes.ByteSize other) { } - public int CompareTo(object obj) { } - public bool Equals(Humanizer.Bytes.ByteSize value) { } - public override bool Equals(object value) { } - public override int GetHashCode() { } - public string GetLargestWholeNumberFullWord(System.IFormatProvider provider = null) { } - public string GetLargestWholeNumberSymbol(System.IFormatProvider provider = null) { } - public Humanizer.Bytes.ByteSize Subtract(Humanizer.Bytes.ByteSize bs) { } - public string ToFullWords(string format = null, System.IFormatProvider provider = null) { } - public override string ToString() { } - public string ToString(System.IFormatProvider provider) { } - public string ToString(string format) { } - public string ToString(string format, System.IFormatProvider provider) { } - public static Humanizer.Bytes.ByteSize FromBits(long value) { } - public static Humanizer.Bytes.ByteSize FromBytes(double value) { } - public static Humanizer.Bytes.ByteSize FromGigabytes(double value) { } - public static Humanizer.Bytes.ByteSize FromKilobytes(double value) { } - public static Humanizer.Bytes.ByteSize FromMegabytes(double value) { } - public static Humanizer.Bytes.ByteSize FromTerabytes(double value) { } - public static Humanizer.Bytes.ByteSize Parse(string s) { } - public static Humanizer.Bytes.ByteSize Parse(string s, System.IFormatProvider formatProvider) { } - public static bool TryParse(string s, out Humanizer.Bytes.ByteSize result) { } - public static bool TryParse(string s, System.IFormatProvider formatProvider, out Humanizer.Bytes.ByteSize result) { } - public static bool operator !=(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static Humanizer.Bytes.ByteSize operator +(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static Humanizer.Bytes.ByteSize operator ++(Humanizer.Bytes.ByteSize b) { } - public static Humanizer.Bytes.ByteSize operator -(Humanizer.Bytes.ByteSize b) { } - public static Humanizer.Bytes.ByteSize operator -(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static Humanizer.Bytes.ByteSize operator --(Humanizer.Bytes.ByteSize b) { } - public static bool operator <(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static bool operator <=(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static bool operator ==(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static bool operator >(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static bool operator >=(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - } -} -namespace Humanizer.Configuration -{ - public static class Configurator - { - public static Humanizer.Configuration.LocaliserRegistry CollectionFormatters { get; } - public static Humanizer.Configuration.LocaliserRegistry DateOnlyToOrdinalWordsConverters { get; } - public static Humanizer.Configuration.LocaliserRegistry DateToOrdinalWordsConverters { get; } - public static Humanizer.Configuration.LocaliserRegistry Formatters { get; } - public static Humanizer.Configuration.LocaliserRegistry NumberToWordsConverters { get; } - public static Humanizer.Configuration.LocaliserRegistry Ordinalizers { get; } - public static Humanizer.Configuration.LocaliserRegistry TimeOnlyToClockNotationConverters { get; } - public static Humanizer.DateTimeHumanizeStrategy.IDateOnlyHumanizeStrategy DateOnlyHumanizeStrategy { get; set; } - public static Humanizer.DateTimeHumanizeStrategy.IDateTimeHumanizeStrategy DateTimeHumanizeStrategy { get; set; } - public static Humanizer.DateTimeHumanizeStrategy.IDateTimeOffsetHumanizeStrategy DateTimeOffsetHumanizeStrategy { get; set; } - public static System.Func EnumDescriptionPropertyLocator { get; set; } - public static Humanizer.DateTimeHumanizeStrategy.ITimeOnlyHumanizeStrategy TimeOnlyHumanizeStrategy { get; set; } - } - public class LocaliserRegistry - where TLocaliser : class - { - public LocaliserRegistry(System.Func defaultLocaliser) { } - public LocaliserRegistry(TLocaliser defaultLocaliser) { } - public void Register(string localeCode, System.Func localiser) { } - public void Register(string localeCode, TLocaliser localiser) { } - public TLocaliser ResolveForCulture(System.Globalization.CultureInfo culture) { } - public TLocaliser ResolveForUiCulture() { } - } -} -namespace Humanizer.DateTimeHumanizeStrategy -{ - public class DefaultDateOnlyHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.IDateOnlyHumanizeStrategy - { - public DefaultDateOnlyHumanizeStrategy() { } - public string Humanize(System.DateOnly input, System.DateOnly comparisonBase, System.Globalization.CultureInfo culture) { } - } - public class DefaultDateTimeHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.IDateTimeHumanizeStrategy - { - public DefaultDateTimeHumanizeStrategy() { } - public string Humanize(System.DateTime input, System.DateTime comparisonBase, System.Globalization.CultureInfo culture) { } - } - public class DefaultDateTimeOffsetHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.IDateTimeOffsetHumanizeStrategy - { - public DefaultDateTimeOffsetHumanizeStrategy() { } - public string Humanize(System.DateTimeOffset input, System.DateTimeOffset comparisonBase, System.Globalization.CultureInfo culture) { } - } - public class DefaultTimeOnlyHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.ITimeOnlyHumanizeStrategy - { - public DefaultTimeOnlyHumanizeStrategy() { } - public string Humanize(System.TimeOnly input, System.TimeOnly comparisonBase, System.Globalization.CultureInfo culture) { } - } - public interface IDateOnlyHumanizeStrategy - { - string Humanize(System.DateOnly input, System.DateOnly comparisonBase, System.Globalization.CultureInfo culture); - } - public interface IDateTimeHumanizeStrategy - { - string Humanize(System.DateTime input, System.DateTime comparisonBase, System.Globalization.CultureInfo culture); - } - public interface IDateTimeOffsetHumanizeStrategy - { - string Humanize(System.DateTimeOffset input, System.DateTimeOffset comparisonBase, System.Globalization.CultureInfo culture); - } - public interface ITimeOnlyHumanizeStrategy - { - string Humanize(System.TimeOnly input, System.TimeOnly comparisonBase, System.Globalization.CultureInfo culture); - } - public class PrecisionDateOnlyHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.IDateOnlyHumanizeStrategy - { - public PrecisionDateOnlyHumanizeStrategy(double precision = 0.75) { } - public string Humanize(System.DateOnly input, System.DateOnly comparisonBase, System.Globalization.CultureInfo culture) { } - } - public class PrecisionDateTimeHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.IDateTimeHumanizeStrategy - { - public PrecisionDateTimeHumanizeStrategy(double precision = 0.75) { } - public string Humanize(System.DateTime input, System.DateTime comparisonBase, System.Globalization.CultureInfo culture) { } - } - public class PrecisionDateTimeOffsetHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.IDateTimeOffsetHumanizeStrategy - { - public PrecisionDateTimeOffsetHumanizeStrategy(double precision = 0.75) { } - public string Humanize(System.DateTimeOffset input, System.DateTimeOffset comparisonBase, System.Globalization.CultureInfo culture) { } - } - public class PrecisionTimeOnlyHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.ITimeOnlyHumanizeStrategy - { - public PrecisionTimeOnlyHumanizeStrategy(double precision = 0.75) { } - public string Humanize(System.TimeOnly input, System.TimeOnly comparisonBase, System.Globalization.CultureInfo culture) { } - } -} -namespace Humanizer.Inflections -{ public static class Vocabularies { - public static Humanizer.Inflections.Vocabulary Default { get; } + public static Humanizer.Vocabulary Default { get; } } public class Vocabulary { @@ -1846,141 +1944,10 @@ namespace Humanizer.Inflections public string Pluralize(string word, bool inputIsKnownToBeSingular = true) { } public string Singularize(string word, bool inputIsKnownToBePlural = true, bool skipSimpleWords = false) { } } -} -namespace Humanizer.Localisation.CollectionFormatters -{ - public interface ICollectionFormatter - { - string Humanize(System.Collections.Generic.IEnumerable collection); - string Humanize(System.Collections.Generic.IEnumerable collection, System.Func objectFormatter); - string Humanize(System.Collections.Generic.IEnumerable collection, System.Func objectFormatter); - string Humanize(System.Collections.Generic.IEnumerable collection, string separator); - string Humanize(System.Collections.Generic.IEnumerable collection, System.Func objectFormatter, string separator); - string Humanize(System.Collections.Generic.IEnumerable collection, System.Func objectFormatter, string separator); - } -} -namespace Humanizer.Localisation -{ - public enum DataUnit - { - Bit = 0, - Byte = 1, - Kilobyte = 2, - Megabyte = 3, - Gigabyte = 4, - Terabyte = 5, - } - public class ResourceKeys - { - public ResourceKeys() { } - public static class DateHumanize - { - public const string Never = "DateHumanize_Never"; - public const string Now = "DateHumanize_Now"; - public static string GetResourceKey(Humanizer.Localisation.TimeUnit timeUnit, Humanizer.Localisation.Tense timeUnitTense, int count = 1) { } - } - public static class TimeSpanHumanize - { - public static string GetResourceKey(Humanizer.Localisation.TimeUnit unit, int count = 1, bool toWords = false) { } - } - public static class TimeUnitSymbol - { - public static string GetResourceKey(Humanizer.Localisation.TimeUnit unit) { } - } - } - public static class Resources - { - public static string GetResource(string resourceKey, System.Globalization.CultureInfo culture = null) { } - } - public enum Tense - { - Future = 0, - Past = 1, - } - public enum TimeUnit - { - Millisecond = 0, - Second = 1, - Minute = 2, - Hour = 3, - Day = 4, - Week = 5, - Month = 6, - Year = 7, - } -} -namespace Humanizer.Localisation.DateToOrdinalWords -{ - public interface IDateOnlyToOrdinalWordConverter - { - string Convert(System.DateOnly date); - string Convert(System.DateOnly date, Humanizer.GrammaticalCase grammaticalCase); - } - public interface IDateToOrdinalWordConverter - { - string Convert(System.DateTime date); - string Convert(System.DateTime date, Humanizer.GrammaticalCase grammaticalCase); - } -} -namespace Humanizer.Localisation.Formatters -{ - public class DefaultFormatter : Humanizer.Localisation.Formatters.IFormatter - { - public DefaultFormatter(string localeCode) { } - public virtual string DataUnitHumanize(Humanizer.Localisation.DataUnit dataUnit, double count, bool toSymbol = true) { } - public virtual string DateHumanize(Humanizer.Localisation.TimeUnit timeUnit, Humanizer.Localisation.Tense timeUnitTense, int unit) { } - public virtual string DateHumanize_Never() { } - public virtual string DateHumanize_Now() { } - protected virtual string Format(string resourceKey) { } - protected virtual string Format(string resourceKey, int number, bool toWords = false) { } - protected virtual string GetResourceKey(string resourceKey) { } - protected virtual string GetResourceKey(string resourceKey, int number) { } - public virtual string TimeSpanHumanize(Humanizer.Localisation.TimeUnit timeUnit, int unit, bool toWords = false) { } - public virtual string TimeSpanHumanize_Zero() { } - public virtual string TimeUnitHumanize(Humanizer.Localisation.TimeUnit timeUnit) { } - } - public interface IFormatter - { - string DataUnitHumanize(Humanizer.Localisation.DataUnit dataUnit, double count, bool toSymbol = true); - string DateHumanize(Humanizer.Localisation.TimeUnit timeUnit, Humanizer.Localisation.Tense timeUnitTense, int unit); - string DateHumanize_Never(); - string DateHumanize_Now(); - string TimeSpanHumanize(Humanizer.Localisation.TimeUnit timeUnit, int unit, bool toWords = false); - string TimeSpanHumanize_Zero(); - string TimeUnitHumanize(Humanizer.Localisation.TimeUnit timeUnit); - } -} -namespace Humanizer.Localisation.NumberToWords -{ - public interface INumberToWordsConverter - { - string Convert(long number); - string Convert(long number, Humanizer.WordForm wordForm); - string Convert(long number, bool addAnd); - string Convert(long number, Humanizer.GrammaticalGender gender, bool addAnd = true); - string Convert(long number, bool addAnd, Humanizer.WordForm wordForm); - string Convert(long number, Humanizer.WordForm wordForm, Humanizer.GrammaticalGender gender, bool addAnd = true); - string ConvertToOrdinal(int number); - string ConvertToOrdinal(int number, Humanizer.GrammaticalGender gender); - string ConvertToOrdinal(int number, Humanizer.WordForm wordForm); - string ConvertToOrdinal(int number, Humanizer.GrammaticalGender gender, Humanizer.WordForm wordForm); - string ConvertToTuple(int number); - } -} -namespace Humanizer.Localisation.Ordinalizers -{ - public interface IOrdinalizer - { - string Convert(int number, string numberString); - string Convert(int number, string numberString, Humanizer.GrammaticalGender gender); - string Convert(int number, string numberString, Humanizer.WordForm wordForm); - string Convert(int number, string numberString, Humanizer.GrammaticalGender gender, Humanizer.WordForm wordForm); - } -} -namespace Humanizer.Localisation.TimeToClockNotation -{ - public interface ITimeOnlyToClockNotationConverter + public enum WordForm { - string Convert(System.TimeOnly time, Humanizer.ClockNotationRounding roundToNearestFive); + Normal = 0, + Abbreviation = 1, + Eifeler = 2, } } \ No newline at end of file diff --git a/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.Approve_Public_Api.Net4_8.verified.txt b/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.Approve_Public_Api.Net4_8.verified.txt index 5374bb507..b181e540c 100644 --- a/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.Approve_Public_Api.Net4_8.verified.txt +++ b/src/Humanizer.Tests/ApiApprover/PublicApiApprovalTest.Approve_Public_Api.Net4_8.verified.txt @@ -3,59 +3,140 @@ [assembly: System.Runtime.Versioning.TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName=".NET Standard 2.0")] namespace Humanizer { + public class ByteRate + { + public ByteRate(Humanizer.ByteSize size, System.TimeSpan interval) { } + public System.TimeSpan Interval { get; } + public Humanizer.ByteSize Size { get; } + public string Humanize(Humanizer.TimeUnit timeUnit = 1) { } + public string Humanize(string format, Humanizer.TimeUnit timeUnit = 1, System.Globalization.CultureInfo culture = null) { } + } + public struct ByteSize : System.IComparable, System.IComparable, System.IEquatable, System.IFormattable + { + public const string Bit = "bit"; + public const string BitSymbol = "b"; + public const long BitsInByte = 8; + public const string Byte = "byte"; + public const string ByteSymbol = "B"; + public const long BytesInGigabyte = 1073741824; + public const long BytesInKilobyte = 1024; + public const long BytesInMegabyte = 1048576; + public const long BytesInTerabyte = 1099511627776; + public const string Gigabyte = "gigabyte"; + public const string GigabyteSymbol = "GB"; + public const string Kilobyte = "kilobyte"; + public const string KilobyteSymbol = "KB"; + public const string Megabyte = "megabyte"; + public const string MegabyteSymbol = "MB"; + public const string Terabyte = "terabyte"; + public const string TerabyteSymbol = "TB"; + public static readonly Humanizer.ByteSize MaxValue; + public static readonly Humanizer.ByteSize MinValue; + public ByteSize(double byteSize) { } + public long Bits { get; } + public double Bytes { get; } + public double Gigabytes { get; } + public double Kilobytes { get; } + public string LargestWholeNumberFullWord { get; } + public string LargestWholeNumberSymbol { get; } + public double LargestWholeNumberValue { get; } + public double Megabytes { get; } + public double Terabytes { get; } + public Humanizer.ByteSize Add(Humanizer.ByteSize bs) { } + public Humanizer.ByteSize AddBits(long value) { } + public Humanizer.ByteSize AddBytes(double value) { } + public Humanizer.ByteSize AddGigabytes(double value) { } + public Humanizer.ByteSize AddKilobytes(double value) { } + public Humanizer.ByteSize AddMegabytes(double value) { } + public Humanizer.ByteSize AddTerabytes(double value) { } + public int CompareTo(Humanizer.ByteSize other) { } + public int CompareTo(object obj) { } + public bool Equals(Humanizer.ByteSize value) { } + public override bool Equals(object value) { } + public override int GetHashCode() { } + public string GetLargestWholeNumberFullWord(System.IFormatProvider provider = null) { } + public string GetLargestWholeNumberSymbol(System.IFormatProvider provider = null) { } + public Humanizer.ByteSize Subtract(Humanizer.ByteSize bs) { } + public string ToFullWords(string format = null, System.IFormatProvider provider = null) { } + public override string ToString() { } + public string ToString(System.IFormatProvider provider) { } + public string ToString(string format) { } + public string ToString(string format, System.IFormatProvider provider) { } + public static Humanizer.ByteSize FromBits(long value) { } + public static Humanizer.ByteSize FromBytes(double value) { } + public static Humanizer.ByteSize FromGigabytes(double value) { } + public static Humanizer.ByteSize FromKilobytes(double value) { } + public static Humanizer.ByteSize FromMegabytes(double value) { } + public static Humanizer.ByteSize FromTerabytes(double value) { } + public static Humanizer.ByteSize Parse(string s) { } + public static Humanizer.ByteSize Parse(string s, System.IFormatProvider formatProvider) { } + public static bool TryParse(string s, out Humanizer.ByteSize result) { } + public static bool TryParse(string s, System.IFormatProvider formatProvider, out Humanizer.ByteSize result) { } + public static bool operator !=(Humanizer.ByteSize b1, Humanizer.ByteSize b2) { } + public static Humanizer.ByteSize operator +(Humanizer.ByteSize b1, Humanizer.ByteSize b2) { } + public static Humanizer.ByteSize operator ++(Humanizer.ByteSize b) { } + public static Humanizer.ByteSize operator -(Humanizer.ByteSize b) { } + public static Humanizer.ByteSize operator -(Humanizer.ByteSize b1, Humanizer.ByteSize b2) { } + public static Humanizer.ByteSize operator --(Humanizer.ByteSize b) { } + public static bool operator <(Humanizer.ByteSize b1, Humanizer.ByteSize b2) { } + public static bool operator <=(Humanizer.ByteSize b1, Humanizer.ByteSize b2) { } + public static bool operator ==(Humanizer.ByteSize b1, Humanizer.ByteSize b2) { } + public static bool operator >(Humanizer.ByteSize b1, Humanizer.ByteSize b2) { } + public static bool operator >=(Humanizer.ByteSize b1, Humanizer.ByteSize b2) { } + } public static class ByteSizeExtensions { - public static Humanizer.Bytes.ByteSize Bits(this byte input) { } - public static Humanizer.Bytes.ByteSize Bits(this int input) { } - public static Humanizer.Bytes.ByteSize Bits(this long input) { } - public static Humanizer.Bytes.ByteSize Bits(this sbyte input) { } - public static Humanizer.Bytes.ByteSize Bits(this short input) { } - public static Humanizer.Bytes.ByteSize Bits(this uint input) { } - public static Humanizer.Bytes.ByteSize Bits(this ushort input) { } - public static Humanizer.Bytes.ByteSize Bytes(this byte input) { } - public static Humanizer.Bytes.ByteSize Bytes(this double input) { } - public static Humanizer.Bytes.ByteSize Bytes(this int input) { } - public static Humanizer.Bytes.ByteSize Bytes(this long input) { } - public static Humanizer.Bytes.ByteSize Bytes(this sbyte input) { } - public static Humanizer.Bytes.ByteSize Bytes(this short input) { } - public static Humanizer.Bytes.ByteSize Bytes(this uint input) { } - public static Humanizer.Bytes.ByteSize Bytes(this ushort input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this byte input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this double input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this int input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this long input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this sbyte input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this short input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this uint input) { } - public static Humanizer.Bytes.ByteSize Gigabytes(this ushort input) { } - public static string Humanize(this Humanizer.Bytes.ByteSize input, System.IFormatProvider formatProvider) { } - public static string Humanize(this Humanizer.Bytes.ByteSize input, string format = null) { } - public static string Humanize(this Humanizer.Bytes.ByteSize input, string format, System.IFormatProvider formatProvider) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this byte input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this double input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this int input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this long input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this sbyte input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this short input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this uint input) { } - public static Humanizer.Bytes.ByteSize Kilobytes(this ushort input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this byte input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this double input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this int input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this long input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this sbyte input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this short input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this uint input) { } - public static Humanizer.Bytes.ByteSize Megabytes(this ushort input) { } - public static Humanizer.Bytes.ByteRate Per(this Humanizer.Bytes.ByteSize size, System.TimeSpan interval) { } - public static Humanizer.Bytes.ByteSize Terabytes(this byte input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this double input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this int input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this long input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this sbyte input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this short input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this uint input) { } - public static Humanizer.Bytes.ByteSize Terabytes(this ushort input) { } + public static Humanizer.ByteSize Bits(this byte input) { } + public static Humanizer.ByteSize Bits(this int input) { } + public static Humanizer.ByteSize Bits(this long input) { } + public static Humanizer.ByteSize Bits(this sbyte input) { } + public static Humanizer.ByteSize Bits(this short input) { } + public static Humanizer.ByteSize Bits(this uint input) { } + public static Humanizer.ByteSize Bits(this ushort input) { } + public static Humanizer.ByteSize Bytes(this byte input) { } + public static Humanizer.ByteSize Bytes(this double input) { } + public static Humanizer.ByteSize Bytes(this int input) { } + public static Humanizer.ByteSize Bytes(this long input) { } + public static Humanizer.ByteSize Bytes(this sbyte input) { } + public static Humanizer.ByteSize Bytes(this short input) { } + public static Humanizer.ByteSize Bytes(this uint input) { } + public static Humanizer.ByteSize Bytes(this ushort input) { } + public static Humanizer.ByteSize Gigabytes(this byte input) { } + public static Humanizer.ByteSize Gigabytes(this double input) { } + public static Humanizer.ByteSize Gigabytes(this int input) { } + public static Humanizer.ByteSize Gigabytes(this long input) { } + public static Humanizer.ByteSize Gigabytes(this sbyte input) { } + public static Humanizer.ByteSize Gigabytes(this short input) { } + public static Humanizer.ByteSize Gigabytes(this uint input) { } + public static Humanizer.ByteSize Gigabytes(this ushort input) { } + public static string Humanize(this Humanizer.ByteSize input, System.IFormatProvider formatProvider) { } + public static string Humanize(this Humanizer.ByteSize input, string format = null) { } + public static string Humanize(this Humanizer.ByteSize input, string format, System.IFormatProvider formatProvider) { } + public static Humanizer.ByteSize Kilobytes(this byte input) { } + public static Humanizer.ByteSize Kilobytes(this double input) { } + public static Humanizer.ByteSize Kilobytes(this int input) { } + public static Humanizer.ByteSize Kilobytes(this long input) { } + public static Humanizer.ByteSize Kilobytes(this sbyte input) { } + public static Humanizer.ByteSize Kilobytes(this short input) { } + public static Humanizer.ByteSize Kilobytes(this uint input) { } + public static Humanizer.ByteSize Kilobytes(this ushort input) { } + public static Humanizer.ByteSize Megabytes(this byte input) { } + public static Humanizer.ByteSize Megabytes(this double input) { } + public static Humanizer.ByteSize Megabytes(this int input) { } + public static Humanizer.ByteSize Megabytes(this long input) { } + public static Humanizer.ByteSize Megabytes(this sbyte input) { } + public static Humanizer.ByteSize Megabytes(this short input) { } + public static Humanizer.ByteSize Megabytes(this uint input) { } + public static Humanizer.ByteSize Megabytes(this ushort input) { } + public static Humanizer.ByteRate Per(this Humanizer.ByteSize size, System.TimeSpan interval) { } + public static Humanizer.ByteSize Terabytes(this byte input) { } + public static Humanizer.ByteSize Terabytes(this double input) { } + public static Humanizer.ByteSize Terabytes(this int input) { } + public static Humanizer.ByteSize Terabytes(this long input) { } + public static Humanizer.ByteSize Terabytes(this sbyte input) { } + public static Humanizer.ByteSize Terabytes(this short input) { } + public static Humanizer.ByteSize Terabytes(this uint input) { } + public static Humanizer.ByteSize Terabytes(this ushort input) { } } public static class CasingExtensions { @@ -75,6 +156,26 @@ namespace Humanizer public static string Humanize(this System.Collections.Generic.IEnumerable collection, System.Func displayFormatter, string separator) { } public static string Humanize(this System.Collections.Generic.IEnumerable collection, System.Func displayFormatter, string separator) { } } + public static class Configurator + { + public static Humanizer.LocaliserRegistry CollectionFormatters { get; } + public static Humanizer.LocaliserRegistry DateToOrdinalWordsConverters { get; } + public static Humanizer.LocaliserRegistry Formatters { get; } + public static Humanizer.LocaliserRegistry NumberToWordsConverters { get; } + public static Humanizer.LocaliserRegistry Ordinalizers { get; } + public static Humanizer.IDateTimeHumanizeStrategy DateTimeHumanizeStrategy { get; set; } + public static Humanizer.IDateTimeOffsetHumanizeStrategy DateTimeOffsetHumanizeStrategy { get; set; } + public static System.Func EnumDescriptionPropertyLocator { get; set; } + } + public enum DataUnit + { + Bit = 0, + Byte = 1, + Kilobyte = 2, + Megabyte = 3, + Gigabyte = 4, + Terabyte = 5, + } public static class DateHumanizeExtensions { public static string Humanize(this System.DateTimeOffset input, System.DateTimeOffset? dateToCompareAgainst = default, System.Globalization.CultureInfo culture = null) { } @@ -87,6 +188,31 @@ namespace Humanizer public static string ToOrdinalWords(this System.DateTime input) { } public static string ToOrdinalWords(this System.DateTime input, Humanizer.GrammaticalCase grammaticalCase) { } } + public class DefaultDateTimeHumanizeStrategy : Humanizer.IDateTimeHumanizeStrategy + { + public DefaultDateTimeHumanizeStrategy() { } + public string Humanize(System.DateTime input, System.DateTime comparisonBase, System.Globalization.CultureInfo culture) { } + } + public class DefaultDateTimeOffsetHumanizeStrategy : Humanizer.IDateTimeOffsetHumanizeStrategy + { + public DefaultDateTimeOffsetHumanizeStrategy() { } + public string Humanize(System.DateTimeOffset input, System.DateTimeOffset comparisonBase, System.Globalization.CultureInfo culture) { } + } + public class DefaultFormatter : Humanizer.IFormatter + { + public DefaultFormatter(string localeCode) { } + public virtual string DataUnitHumanize(Humanizer.DataUnit dataUnit, double count, bool toSymbol = true) { } + public virtual string DateHumanize(Humanizer.TimeUnit timeUnit, Humanizer.Tense timeUnitTense, int unit) { } + public virtual string DateHumanize_Never() { } + public virtual string DateHumanize_Now() { } + protected virtual string Format(string resourceKey) { } + protected virtual string Format(string resourceKey, int number, bool toWords = false) { } + protected virtual string GetResourceKey(string resourceKey) { } + protected virtual string GetResourceKey(string resourceKey, int number) { } + public virtual string TimeSpanHumanize(Humanizer.TimeUnit timeUnit, int unit, bool toWords = false) { } + public virtual string TimeSpanHumanize_Zero() { } + public virtual string TimeUnitHumanize(Humanizer.TimeUnit timeUnit) { } + } public static class EnglishArticle { public static string[] AppendArticlePrefix(string[] items) { } @@ -138,10 +264,63 @@ namespace Humanizer Abbreviated = 0, Full = 1, } + public interface ICollectionFormatter + { + string Humanize(System.Collections.Generic.IEnumerable collection); + string Humanize(System.Collections.Generic.IEnumerable collection, System.Func objectFormatter); + string Humanize(System.Collections.Generic.IEnumerable collection, System.Func objectFormatter); + string Humanize(System.Collections.Generic.IEnumerable collection, string separator); + string Humanize(System.Collections.Generic.IEnumerable collection, System.Func objectFormatter, string separator); + string Humanize(System.Collections.Generic.IEnumerable collection, System.Func objectFormatter, string separator); + } public interface ICulturedStringTransformer : Humanizer.IStringTransformer { string Transform(string input, System.Globalization.CultureInfo culture); } + public interface IDateTimeHumanizeStrategy + { + string Humanize(System.DateTime input, System.DateTime comparisonBase, System.Globalization.CultureInfo culture); + } + public interface IDateTimeOffsetHumanizeStrategy + { + string Humanize(System.DateTimeOffset input, System.DateTimeOffset comparisonBase, System.Globalization.CultureInfo culture); + } + public interface IDateToOrdinalWordConverter + { + string Convert(System.DateTime date); + string Convert(System.DateTime date, Humanizer.GrammaticalCase grammaticalCase); + } + public interface IFormatter + { + string DataUnitHumanize(Humanizer.DataUnit dataUnit, double count, bool toSymbol = true); + string DateHumanize(Humanizer.TimeUnit timeUnit, Humanizer.Tense timeUnitTense, int unit); + string DateHumanize_Never(); + string DateHumanize_Now(); + string TimeSpanHumanize(Humanizer.TimeUnit timeUnit, int unit, bool toWords = false); + string TimeSpanHumanize_Zero(); + string TimeUnitHumanize(Humanizer.TimeUnit timeUnit); + } + public interface INumberToWordsConverter + { + string Convert(long number); + string Convert(long number, Humanizer.WordForm wordForm); + string Convert(long number, bool addAnd); + string Convert(long number, Humanizer.GrammaticalGender gender, bool addAnd = true); + string Convert(long number, bool addAnd, Humanizer.WordForm wordForm); + string Convert(long number, Humanizer.WordForm wordForm, Humanizer.GrammaticalGender gender, bool addAnd = true); + string ConvertToOrdinal(int number); + string ConvertToOrdinal(int number, Humanizer.GrammaticalGender gender); + string ConvertToOrdinal(int number, Humanizer.WordForm wordForm); + string ConvertToOrdinal(int number, Humanizer.GrammaticalGender gender, Humanizer.WordForm wordForm); + string ConvertToTuple(int number); + } + public interface IOrdinalizer + { + string Convert(int number, string numberString); + string Convert(int number, string numberString, Humanizer.GrammaticalGender gender); + string Convert(int number, string numberString, Humanizer.WordForm wordForm); + string Convert(int number, string numberString, Humanizer.GrammaticalGender gender, Humanizer.WordForm wordForm); + } public interface IStringTransformer { string Transform(string input); @@ -368,6 +547,16 @@ namespace Humanizer LowerCase = 2, Sentence = 3, } + public class LocaliserRegistry + where TLocaliser : class + { + public LocaliserRegistry(System.Func defaultLocaliser) { } + public LocaliserRegistry(TLocaliser defaultLocaliser) { } + public void Register(string localeCode, System.Func localiser) { } + public void Register(string localeCode, TLocaliser localiser) { } + public TLocaliser ResolveForCulture(System.Globalization.CultureInfo culture) { } + public TLocaliser ResolveForUiCulture() { } + } public static class MetricNumeralExtensions { public static double FromMetric(this string input) { } @@ -955,6 +1144,16 @@ namespace Humanizer Plural = 1, CouldBeEither = 2, } + public class PrecisionDateTimeHumanizeStrategy : Humanizer.IDateTimeHumanizeStrategy + { + public PrecisionDateTimeHumanizeStrategy(double precision = 0.75) { } + public string Humanize(System.DateTime input, System.DateTime comparisonBase, System.Globalization.CultureInfo culture) { } + } + public class PrecisionDateTimeOffsetHumanizeStrategy : Humanizer.IDateTimeOffsetHumanizeStrategy + { + public PrecisionDateTimeOffsetHumanizeStrategy(double precision = 0.75) { } + public string Humanize(System.DateTimeOffset input, System.DateTimeOffset comparisonBase, System.Globalization.CultureInfo culture) { } + } public static class PrepositionsExtensions { public static System.DateTime At(this System.DateTime date, int hour, int min = 0, int second = 0, int millisecond = 0) { } @@ -962,6 +1161,28 @@ namespace Humanizer public static System.DateTime AtNoon(this System.DateTime date) { } public static System.DateTime In(this System.DateTime date, int year) { } } + public class ResourceKeys + { + public ResourceKeys() { } + public static class DateHumanize + { + public const string Never = "DateHumanize_Never"; + public const string Now = "DateHumanize_Now"; + public static string GetResourceKey(Humanizer.TimeUnit timeUnit, Humanizer.Tense timeUnitTense, int count = 1) { } + } + public static class TimeSpanHumanize + { + public static string GetResourceKey(Humanizer.TimeUnit unit, int count = 1, bool toWords = false) { } + } + public static class TimeUnitSymbol + { + public static string GetResourceKey(Humanizer.TimeUnit unit) { } + } + } + public static class Resources + { + public static string GetResource(string resourceKey, System.Globalization.CultureInfo culture = null) { } + } public static class RomanNumeralExtensions { public static int FromRoman(this string input) { } @@ -987,14 +1208,30 @@ namespace Humanizer public static string Humanize(this string input) { } public static string Humanize(this string input, Humanizer.LetterCasing casing) { } } + public enum Tense + { + Future = 0, + Past = 1, + } public static class TimeSpanHumanizeExtensions { - public static string Humanize(this System.TimeSpan timeSpan, int precision = 1, System.Globalization.CultureInfo culture = null, Humanizer.Localisation.TimeUnit maxUnit = 5, Humanizer.Localisation.TimeUnit minUnit = 0, string collectionSeparator = ", ", bool toWords = false) { } - public static string Humanize(this System.TimeSpan timeSpan, int precision, bool countEmptyUnits, System.Globalization.CultureInfo culture = null, Humanizer.Localisation.TimeUnit maxUnit = 5, Humanizer.Localisation.TimeUnit minUnit = 0, string collectionSeparator = ", ", bool toWords = false) { } + public static string Humanize(this System.TimeSpan timeSpan, int precision = 1, System.Globalization.CultureInfo culture = null, Humanizer.TimeUnit maxUnit = 5, Humanizer.TimeUnit minUnit = 0, string collectionSeparator = ", ", bool toWords = false) { } + public static string Humanize(this System.TimeSpan timeSpan, int precision, bool countEmptyUnits, System.Globalization.CultureInfo culture = null, Humanizer.TimeUnit maxUnit = 5, Humanizer.TimeUnit minUnit = 0, string collectionSeparator = ", ", bool toWords = false) { } + } + public enum TimeUnit + { + Millisecond = 0, + Second = 1, + Minute = 2, + Hour = 3, + Day = 4, + Week = 5, + Month = 6, + Year = 7, } public static class TimeUnitToSymbolExtensions { - public static string ToSymbol(this Humanizer.Localisation.TimeUnit unit, System.Globalization.CultureInfo culture = null) { } + public static string ToSymbol(this Humanizer.TimeUnit unit, System.Globalization.CultureInfo culture = null) { } } public static class To { @@ -1034,157 +1271,9 @@ namespace Humanizer { public static string Tupleize(this int input) { } } - public enum WordForm - { - Normal = 0, - Abbreviation = 1, - Eifeler = 2, - } -} -namespace Humanizer.Bytes -{ - public class ByteRate - { - public ByteRate(Humanizer.Bytes.ByteSize size, System.TimeSpan interval) { } - public System.TimeSpan Interval { get; } - public Humanizer.Bytes.ByteSize Size { get; } - public string Humanize(Humanizer.Localisation.TimeUnit timeUnit = 1) { } - public string Humanize(string format, Humanizer.Localisation.TimeUnit timeUnit = 1, System.Globalization.CultureInfo culture = null) { } - } - public struct ByteSize : System.IComparable, System.IComparable, System.IEquatable, System.IFormattable - { - public const string Bit = "bit"; - public const string BitSymbol = "b"; - public const long BitsInByte = 8; - public const string Byte = "byte"; - public const string ByteSymbol = "B"; - public const long BytesInGigabyte = 1073741824; - public const long BytesInKilobyte = 1024; - public const long BytesInMegabyte = 1048576; - public const long BytesInTerabyte = 1099511627776; - public const string Gigabyte = "gigabyte"; - public const string GigabyteSymbol = "GB"; - public const string Kilobyte = "kilobyte"; - public const string KilobyteSymbol = "KB"; - public const string Megabyte = "megabyte"; - public const string MegabyteSymbol = "MB"; - public const string Terabyte = "terabyte"; - public const string TerabyteSymbol = "TB"; - public static readonly Humanizer.Bytes.ByteSize MaxValue; - public static readonly Humanizer.Bytes.ByteSize MinValue; - public ByteSize(double byteSize) { } - public long Bits { get; } - public double Bytes { get; } - public double Gigabytes { get; } - public double Kilobytes { get; } - public string LargestWholeNumberFullWord { get; } - public string LargestWholeNumberSymbol { get; } - public double LargestWholeNumberValue { get; } - public double Megabytes { get; } - public double Terabytes { get; } - public Humanizer.Bytes.ByteSize Add(Humanizer.Bytes.ByteSize bs) { } - public Humanizer.Bytes.ByteSize AddBits(long value) { } - public Humanizer.Bytes.ByteSize AddBytes(double value) { } - public Humanizer.Bytes.ByteSize AddGigabytes(double value) { } - public Humanizer.Bytes.ByteSize AddKilobytes(double value) { } - public Humanizer.Bytes.ByteSize AddMegabytes(double value) { } - public Humanizer.Bytes.ByteSize AddTerabytes(double value) { } - public int CompareTo(Humanizer.Bytes.ByteSize other) { } - public int CompareTo(object obj) { } - public bool Equals(Humanizer.Bytes.ByteSize value) { } - public override bool Equals(object value) { } - public override int GetHashCode() { } - public string GetLargestWholeNumberFullWord(System.IFormatProvider provider = null) { } - public string GetLargestWholeNumberSymbol(System.IFormatProvider provider = null) { } - public Humanizer.Bytes.ByteSize Subtract(Humanizer.Bytes.ByteSize bs) { } - public string ToFullWords(string format = null, System.IFormatProvider provider = null) { } - public override string ToString() { } - public string ToString(System.IFormatProvider provider) { } - public string ToString(string format) { } - public string ToString(string format, System.IFormatProvider provider) { } - public static Humanizer.Bytes.ByteSize FromBits(long value) { } - public static Humanizer.Bytes.ByteSize FromBytes(double value) { } - public static Humanizer.Bytes.ByteSize FromGigabytes(double value) { } - public static Humanizer.Bytes.ByteSize FromKilobytes(double value) { } - public static Humanizer.Bytes.ByteSize FromMegabytes(double value) { } - public static Humanizer.Bytes.ByteSize FromTerabytes(double value) { } - public static Humanizer.Bytes.ByteSize Parse(string s) { } - public static Humanizer.Bytes.ByteSize Parse(string s, System.IFormatProvider formatProvider) { } - public static bool TryParse(string s, out Humanizer.Bytes.ByteSize result) { } - public static bool TryParse(string s, System.IFormatProvider formatProvider, out Humanizer.Bytes.ByteSize result) { } - public static bool operator !=(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static Humanizer.Bytes.ByteSize operator +(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static Humanizer.Bytes.ByteSize operator ++(Humanizer.Bytes.ByteSize b) { } - public static Humanizer.Bytes.ByteSize operator -(Humanizer.Bytes.ByteSize b) { } - public static Humanizer.Bytes.ByteSize operator -(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static Humanizer.Bytes.ByteSize operator --(Humanizer.Bytes.ByteSize b) { } - public static bool operator <(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static bool operator <=(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static bool operator ==(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static bool operator >(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - public static bool operator >=(Humanizer.Bytes.ByteSize b1, Humanizer.Bytes.ByteSize b2) { } - } -} -namespace Humanizer.Configuration -{ - public static class Configurator - { - public static Humanizer.Configuration.LocaliserRegistry CollectionFormatters { get; } - public static Humanizer.Configuration.LocaliserRegistry DateToOrdinalWordsConverters { get; } - public static Humanizer.Configuration.LocaliserRegistry Formatters { get; } - public static Humanizer.Configuration.LocaliserRegistry NumberToWordsConverters { get; } - public static Humanizer.Configuration.LocaliserRegistry Ordinalizers { get; } - public static Humanizer.DateTimeHumanizeStrategy.IDateTimeHumanizeStrategy DateTimeHumanizeStrategy { get; set; } - public static Humanizer.DateTimeHumanizeStrategy.IDateTimeOffsetHumanizeStrategy DateTimeOffsetHumanizeStrategy { get; set; } - public static System.Func EnumDescriptionPropertyLocator { get; set; } - } - public class LocaliserRegistry - where TLocaliser : class - { - public LocaliserRegistry(System.Func defaultLocaliser) { } - public LocaliserRegistry(TLocaliser defaultLocaliser) { } - public void Register(string localeCode, System.Func localiser) { } - public void Register(string localeCode, TLocaliser localiser) { } - public TLocaliser ResolveForCulture(System.Globalization.CultureInfo culture) { } - public TLocaliser ResolveForUiCulture() { } - } -} -namespace Humanizer.DateTimeHumanizeStrategy -{ - public class DefaultDateTimeHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.IDateTimeHumanizeStrategy - { - public DefaultDateTimeHumanizeStrategy() { } - public string Humanize(System.DateTime input, System.DateTime comparisonBase, System.Globalization.CultureInfo culture) { } - } - public class DefaultDateTimeOffsetHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.IDateTimeOffsetHumanizeStrategy - { - public DefaultDateTimeOffsetHumanizeStrategy() { } - public string Humanize(System.DateTimeOffset input, System.DateTimeOffset comparisonBase, System.Globalization.CultureInfo culture) { } - } - public interface IDateTimeHumanizeStrategy - { - string Humanize(System.DateTime input, System.DateTime comparisonBase, System.Globalization.CultureInfo culture); - } - public interface IDateTimeOffsetHumanizeStrategy - { - string Humanize(System.DateTimeOffset input, System.DateTimeOffset comparisonBase, System.Globalization.CultureInfo culture); - } - public class PrecisionDateTimeHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.IDateTimeHumanizeStrategy - { - public PrecisionDateTimeHumanizeStrategy(double precision = 0.75) { } - public string Humanize(System.DateTime input, System.DateTime comparisonBase, System.Globalization.CultureInfo culture) { } - } - public class PrecisionDateTimeOffsetHumanizeStrategy : Humanizer.DateTimeHumanizeStrategy.IDateTimeOffsetHumanizeStrategy - { - public PrecisionDateTimeOffsetHumanizeStrategy(double precision = 0.75) { } - public string Humanize(System.DateTimeOffset input, System.DateTimeOffset comparisonBase, System.Globalization.CultureInfo culture) { } - } -} -namespace Humanizer.Inflections -{ public static class Vocabularies { - public static Humanizer.Inflections.Vocabulary Default { get; } + public static Humanizer.Vocabulary Default { get; } } public class Vocabulary { @@ -1195,129 +1284,10 @@ namespace Humanizer.Inflections public string Pluralize(string word, bool inputIsKnownToBeSingular = true) { } public string Singularize(string word, bool inputIsKnownToBePlural = true, bool skipSimpleWords = false) { } } -} -namespace Humanizer.Localisation.CollectionFormatters -{ - public interface ICollectionFormatter - { - string Humanize(System.Collections.Generic.IEnumerable collection); - string Humanize(System.Collections.Generic.IEnumerable collection, System.Func objectFormatter); - string Humanize(System.Collections.Generic.IEnumerable collection, System.Func objectFormatter); - string Humanize(System.Collections.Generic.IEnumerable collection, string separator); - string Humanize(System.Collections.Generic.IEnumerable collection, System.Func objectFormatter, string separator); - string Humanize(System.Collections.Generic.IEnumerable collection, System.Func objectFormatter, string separator); - } -} -namespace Humanizer.Localisation -{ - public enum DataUnit - { - Bit = 0, - Byte = 1, - Kilobyte = 2, - Megabyte = 3, - Gigabyte = 4, - Terabyte = 5, - } - public class ResourceKeys - { - public ResourceKeys() { } - public static class DateHumanize - { - public const string Never = "DateHumanize_Never"; - public const string Now = "DateHumanize_Now"; - public static string GetResourceKey(Humanizer.Localisation.TimeUnit timeUnit, Humanizer.Localisation.Tense timeUnitTense, int count = 1) { } - } - public static class TimeSpanHumanize - { - public static string GetResourceKey(Humanizer.Localisation.TimeUnit unit, int count = 1, bool toWords = false) { } - } - public static class TimeUnitSymbol - { - public static string GetResourceKey(Humanizer.Localisation.TimeUnit unit) { } - } - } - public static class Resources - { - public static string GetResource(string resourceKey, System.Globalization.CultureInfo culture = null) { } - } - public enum Tense - { - Future = 0, - Past = 1, - } - public enum TimeUnit - { - Millisecond = 0, - Second = 1, - Minute = 2, - Hour = 3, - Day = 4, - Week = 5, - Month = 6, - Year = 7, - } -} -namespace Humanizer.Localisation.DateToOrdinalWords -{ - public interface IDateToOrdinalWordConverter - { - string Convert(System.DateTime date); - string Convert(System.DateTime date, Humanizer.GrammaticalCase grammaticalCase); - } -} -namespace Humanizer.Localisation.Formatters -{ - public class DefaultFormatter : Humanizer.Localisation.Formatters.IFormatter - { - public DefaultFormatter(string localeCode) { } - public virtual string DataUnitHumanize(Humanizer.Localisation.DataUnit dataUnit, double count, bool toSymbol = true) { } - public virtual string DateHumanize(Humanizer.Localisation.TimeUnit timeUnit, Humanizer.Localisation.Tense timeUnitTense, int unit) { } - public virtual string DateHumanize_Never() { } - public virtual string DateHumanize_Now() { } - protected virtual string Format(string resourceKey) { } - protected virtual string Format(string resourceKey, int number, bool toWords = false) { } - protected virtual string GetResourceKey(string resourceKey) { } - protected virtual string GetResourceKey(string resourceKey, int number) { } - public virtual string TimeSpanHumanize(Humanizer.Localisation.TimeUnit timeUnit, int unit, bool toWords = false) { } - public virtual string TimeSpanHumanize_Zero() { } - public virtual string TimeUnitHumanize(Humanizer.Localisation.TimeUnit timeUnit) { } - } - public interface IFormatter - { - string DataUnitHumanize(Humanizer.Localisation.DataUnit dataUnit, double count, bool toSymbol = true); - string DateHumanize(Humanizer.Localisation.TimeUnit timeUnit, Humanizer.Localisation.Tense timeUnitTense, int unit); - string DateHumanize_Never(); - string DateHumanize_Now(); - string TimeSpanHumanize(Humanizer.Localisation.TimeUnit timeUnit, int unit, bool toWords = false); - string TimeSpanHumanize_Zero(); - string TimeUnitHumanize(Humanizer.Localisation.TimeUnit timeUnit); - } -} -namespace Humanizer.Localisation.NumberToWords -{ - public interface INumberToWordsConverter - { - string Convert(long number); - string Convert(long number, Humanizer.WordForm wordForm); - string Convert(long number, bool addAnd); - string Convert(long number, Humanizer.GrammaticalGender gender, bool addAnd = true); - string Convert(long number, bool addAnd, Humanizer.WordForm wordForm); - string Convert(long number, Humanizer.WordForm wordForm, Humanizer.GrammaticalGender gender, bool addAnd = true); - string ConvertToOrdinal(int number); - string ConvertToOrdinal(int number, Humanizer.GrammaticalGender gender); - string ConvertToOrdinal(int number, Humanizer.WordForm wordForm); - string ConvertToOrdinal(int number, Humanizer.GrammaticalGender gender, Humanizer.WordForm wordForm); - string ConvertToTuple(int number); - } -} -namespace Humanizer.Localisation.Ordinalizers -{ - public interface IOrdinalizer + public enum WordForm { - string Convert(int number, string numberString); - string Convert(int number, string numberString, Humanizer.GrammaticalGender gender); - string Convert(int number, string numberString, Humanizer.WordForm wordForm); - string Convert(int number, string numberString, Humanizer.GrammaticalGender gender, Humanizer.WordForm wordForm); + Normal = 0, + Abbreviation = 1, + Eifeler = 2, } } \ No newline at end of file diff --git a/src/Humanizer/Bytes/ByteRate.cs b/src/Humanizer/Bytes/ByteRate.cs index 7277d0c78..093a02dd6 100644 --- a/src/Humanizer/Bytes/ByteRate.cs +++ b/src/Humanizer/Bytes/ByteRate.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer.Bytes +namespace Humanizer { /// /// Class to hold a ByteSize and a measurement interval, for the purpose of calculating the rate of transfer diff --git a/src/Humanizer/Bytes/ByteSize.cs b/src/Humanizer/Bytes/ByteSize.cs index bd8b33cc6..39dd4606a 100644 --- a/src/Humanizer/Bytes/ByteSize.cs +++ b/src/Humanizer/Bytes/ByteSize.cs @@ -20,12 +20,9 @@ //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN //THE SOFTWARE. -using Humanizer.Configuration; -using Humanizer.Localisation; - using static System.Globalization.NumberStyles; -namespace Humanizer.Bytes +namespace Humanizer { /// /// Represents a byte size value. diff --git a/src/Humanizer/Bytes/ByteSizeExtensions.cs b/src/Humanizer/Bytes/ByteSizeExtensions.cs index 2c50be492..7d06d6ba0 100644 --- a/src/Humanizer/Bytes/ByteSizeExtensions.cs +++ b/src/Humanizer/Bytes/ByteSizeExtensions.cs @@ -1,6 +1,4 @@ -using Humanizer.Bytes; - -// ReSharper disable once CheckNamespace +// ReSharper disable once CheckNamespace namespace Humanizer { /// diff --git a/src/Humanizer/CollectionHumanizeExtensions.cs b/src/Humanizer/CollectionHumanizeExtensions.cs index 4c737503f..cfbb0a509 100644 --- a/src/Humanizer/CollectionHumanizeExtensions.cs +++ b/src/Humanizer/CollectionHumanizeExtensions.cs @@ -1,6 +1,4 @@ -using Humanizer.Configuration; - -namespace Humanizer +namespace Humanizer { /// /// Humanizes an IEnumerable into a human readable list diff --git a/src/Humanizer/Configuration/CollectionFormatterRegistry.cs b/src/Humanizer/Configuration/CollectionFormatterRegistry.cs index 8fcea0864..0dcbdd222 100644 --- a/src/Humanizer/Configuration/CollectionFormatterRegistry.cs +++ b/src/Humanizer/Configuration/CollectionFormatterRegistry.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation.CollectionFormatters; - -namespace Humanizer.Configuration +namespace Humanizer { internal class CollectionFormatterRegistry : LocaliserRegistry { diff --git a/src/Humanizer/Configuration/Configurator.cs b/src/Humanizer/Configuration/Configurator.cs index 47930b8d6..51f6c7f61 100644 --- a/src/Humanizer/Configuration/Configurator.cs +++ b/src/Humanizer/Configuration/Configurator.cs @@ -1,15 +1,6 @@ using System.Reflection; -using Humanizer.DateTimeHumanizeStrategy; -using Humanizer.Localisation.CollectionFormatters; -using Humanizer.Localisation.DateToOrdinalWords; -using Humanizer.Localisation.Formatters; -using Humanizer.Localisation.NumberToWords; -using Humanizer.Localisation.Ordinalizers; -#if NET6_0_OR_GREATER -using Humanizer.Localisation.TimeToClockNotation; -#endif -namespace Humanizer.Configuration +namespace Humanizer { /// /// Provides a configuration point for Humanizer diff --git a/src/Humanizer/Configuration/DateOnlyToOrdinalWordsConverterRegistry.cs b/src/Humanizer/Configuration/DateOnlyToOrdinalWordsConverterRegistry.cs index 1ee7c0864..16d7ba05c 100644 --- a/src/Humanizer/Configuration/DateOnlyToOrdinalWordsConverterRegistry.cs +++ b/src/Humanizer/Configuration/DateOnlyToOrdinalWordsConverterRegistry.cs @@ -1,7 +1,5 @@ #if NET6_0_OR_GREATER -using Humanizer.Localisation.DateToOrdinalWords; - -namespace Humanizer.Configuration +namespace Humanizer { internal class DateOnlyToOrdinalWordsConverterRegistry : LocaliserRegistry { diff --git a/src/Humanizer/Configuration/DateToOrdinalWordsConverterRegistry.cs b/src/Humanizer/Configuration/DateToOrdinalWordsConverterRegistry.cs index bfa0b883d..7f44ce719 100644 --- a/src/Humanizer/Configuration/DateToOrdinalWordsConverterRegistry.cs +++ b/src/Humanizer/Configuration/DateToOrdinalWordsConverterRegistry.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation.DateToOrdinalWords; - -namespace Humanizer.Configuration +namespace Humanizer { internal class DateToOrdinalWordsConverterRegistry : LocaliserRegistry { diff --git a/src/Humanizer/Configuration/FormatterRegistry.cs b/src/Humanizer/Configuration/FormatterRegistry.cs index b695755df..5cbbca587 100644 --- a/src/Humanizer/Configuration/FormatterRegistry.cs +++ b/src/Humanizer/Configuration/FormatterRegistry.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation.Formatters; - -namespace Humanizer.Configuration +namespace Humanizer { internal class FormatterRegistry : LocaliserRegistry { diff --git a/src/Humanizer/Configuration/LocaliserRegistry.cs b/src/Humanizer/Configuration/LocaliserRegistry.cs index a6536fa46..c59c45afd 100644 --- a/src/Humanizer/Configuration/LocaliserRegistry.cs +++ b/src/Humanizer/Configuration/LocaliserRegistry.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Configuration +namespace Humanizer { /// /// A registry of localised system components with their associated locales diff --git a/src/Humanizer/Configuration/NumberToWordsConverterRegistry.cs b/src/Humanizer/Configuration/NumberToWordsConverterRegistry.cs index 5c566b581..ad58c8058 100644 --- a/src/Humanizer/Configuration/NumberToWordsConverterRegistry.cs +++ b/src/Humanizer/Configuration/NumberToWordsConverterRegistry.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation.NumberToWords; - -namespace Humanizer.Configuration +namespace Humanizer { internal class NumberToWordsConverterRegistry : LocaliserRegistry { diff --git a/src/Humanizer/Configuration/OrdinalizerRegistry.cs b/src/Humanizer/Configuration/OrdinalizerRegistry.cs index da1b44ce5..75642a904 100644 --- a/src/Humanizer/Configuration/OrdinalizerRegistry.cs +++ b/src/Humanizer/Configuration/OrdinalizerRegistry.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation.Ordinalizers; - -namespace Humanizer.Configuration +namespace Humanizer { internal class OrdinalizerRegistry : LocaliserRegistry { diff --git a/src/Humanizer/Configuration/TimeOnlyToClockNotationConvertersRegistry.cs b/src/Humanizer/Configuration/TimeOnlyToClockNotationConvertersRegistry.cs index 12ee20792..5cb509ca7 100644 --- a/src/Humanizer/Configuration/TimeOnlyToClockNotationConvertersRegistry.cs +++ b/src/Humanizer/Configuration/TimeOnlyToClockNotationConvertersRegistry.cs @@ -1,8 +1,6 @@ #if NET6_0_OR_GREATER -using Humanizer.Localisation.TimeToClockNotation; - -namespace Humanizer.Configuration +namespace Humanizer { internal class TimeOnlyToClockNotationConvertersRegistry : LocaliserRegistry { diff --git a/src/Humanizer/DateHumanizeExtensions.cs b/src/Humanizer/DateHumanizeExtensions.cs index c78bb1a9c..914f4d8b0 100644 --- a/src/Humanizer/DateHumanizeExtensions.cs +++ b/src/Humanizer/DateHumanizeExtensions.cs @@ -1,6 +1,4 @@ -using Humanizer.Configuration; - -namespace Humanizer +namespace Humanizer { /// /// Humanizes DateTime into human readable sentence diff --git a/src/Humanizer/DateTimeHumanizeStrategy/DateTimeHumanizeAlgorithms.cs b/src/Humanizer/DateTimeHumanizeStrategy/DateTimeHumanizeAlgorithms.cs index d0032b53b..e005fccd8 100644 --- a/src/Humanizer/DateTimeHumanizeStrategy/DateTimeHumanizeAlgorithms.cs +++ b/src/Humanizer/DateTimeHumanizeStrategy/DateTimeHumanizeAlgorithms.cs @@ -1,7 +1,4 @@ -using Humanizer.Configuration; -using Humanizer.Localisation; - -namespace Humanizer.DateTimeHumanizeStrategy +namespace Humanizer { /// /// Algorithms used to convert distance between two dates into words. diff --git a/src/Humanizer/DateTimeHumanizeStrategy/DefaultDateOnlyHumanizeStrategy.cs b/src/Humanizer/DateTimeHumanizeStrategy/DefaultDateOnlyHumanizeStrategy.cs index 248c00f03..f63fd6c85 100644 --- a/src/Humanizer/DateTimeHumanizeStrategy/DefaultDateOnlyHumanizeStrategy.cs +++ b/src/Humanizer/DateTimeHumanizeStrategy/DefaultDateOnlyHumanizeStrategy.cs @@ -1,8 +1,6 @@ #if NET6_0_OR_GREATER -using System.Globalization; - -namespace Humanizer.DateTimeHumanizeStrategy +namespace Humanizer { /// /// The default 'distance of time' -> words calculator. diff --git a/src/Humanizer/DateTimeHumanizeStrategy/DefaultDateTimeHumanizeStrategy.cs b/src/Humanizer/DateTimeHumanizeStrategy/DefaultDateTimeHumanizeStrategy.cs index deeb8def9..c9d686ed1 100644 --- a/src/Humanizer/DateTimeHumanizeStrategy/DefaultDateTimeHumanizeStrategy.cs +++ b/src/Humanizer/DateTimeHumanizeStrategy/DefaultDateTimeHumanizeStrategy.cs @@ -1,4 +1,4 @@ -namespace Humanizer.DateTimeHumanizeStrategy +namespace Humanizer { /// /// The default 'distance of time' -> words calculator. @@ -13,4 +13,4 @@ public string Humanize(DateTime input, DateTime comparisonBase, CultureInfo cult return DateTimeHumanizeAlgorithms.DefaultHumanize(input, comparisonBase, culture); } } -} \ No newline at end of file +} diff --git a/src/Humanizer/DateTimeHumanizeStrategy/DefaultDateTimeOffsetHumanizeStrategy.cs b/src/Humanizer/DateTimeHumanizeStrategy/DefaultDateTimeOffsetHumanizeStrategy.cs index 6a0b4210b..2c839b278 100644 --- a/src/Humanizer/DateTimeHumanizeStrategy/DefaultDateTimeOffsetHumanizeStrategy.cs +++ b/src/Humanizer/DateTimeHumanizeStrategy/DefaultDateTimeOffsetHumanizeStrategy.cs @@ -1,4 +1,4 @@ -namespace Humanizer.DateTimeHumanizeStrategy +namespace Humanizer { /// /// The default 'distance of time' -> words calculator. @@ -13,4 +13,4 @@ public string Humanize(DateTimeOffset input, DateTimeOffset comparisonBase, Cult return DateTimeHumanizeAlgorithms.DefaultHumanize(input.UtcDateTime, comparisonBase.UtcDateTime, culture); } } -} \ No newline at end of file +} diff --git a/src/Humanizer/DateTimeHumanizeStrategy/DefaultTimeOnlyHumanizeStrategy.cs b/src/Humanizer/DateTimeHumanizeStrategy/DefaultTimeOnlyHumanizeStrategy.cs index 30bf50625..880acf17d 100644 --- a/src/Humanizer/DateTimeHumanizeStrategy/DefaultTimeOnlyHumanizeStrategy.cs +++ b/src/Humanizer/DateTimeHumanizeStrategy/DefaultTimeOnlyHumanizeStrategy.cs @@ -1,8 +1,6 @@ #if NET6_0_OR_GREATER -using System.Globalization; - -namespace Humanizer.DateTimeHumanizeStrategy +namespace Humanizer { /// /// The default 'distance of time' -> words calculator. diff --git a/src/Humanizer/DateTimeHumanizeStrategy/IDateOnlyHumanizeStrategy.cs b/src/Humanizer/DateTimeHumanizeStrategy/IDateOnlyHumanizeStrategy.cs index 4c3a8a627..ce9c3d841 100644 --- a/src/Humanizer/DateTimeHumanizeStrategy/IDateOnlyHumanizeStrategy.cs +++ b/src/Humanizer/DateTimeHumanizeStrategy/IDateOnlyHumanizeStrategy.cs @@ -1,8 +1,6 @@ #if NET6_0_OR_GREATER -using System.Globalization; - -namespace Humanizer.DateTimeHumanizeStrategy +namespace Humanizer { /// /// Implement this interface to create a new strategy for DateOnly.Humanize and hook it in the Configurator.DateOnlyHumanizeStrategy diff --git a/src/Humanizer/DateTimeHumanizeStrategy/IDateTimeHumanizeStrategy.cs b/src/Humanizer/DateTimeHumanizeStrategy/IDateTimeHumanizeStrategy.cs index 2a4c6b2fa..272236759 100644 --- a/src/Humanizer/DateTimeHumanizeStrategy/IDateTimeHumanizeStrategy.cs +++ b/src/Humanizer/DateTimeHumanizeStrategy/IDateTimeHumanizeStrategy.cs @@ -1,4 +1,4 @@ -namespace Humanizer.DateTimeHumanizeStrategy +namespace Humanizer { /// /// Implement this interface to create a new strategy for DateTime.Humanize and hook it in the Configurator.DateTimeHumanizeStrategy @@ -10,4 +10,4 @@ public interface IDateTimeHumanizeStrategy /// string Humanize(DateTime input, DateTime comparisonBase, CultureInfo culture); } -} \ No newline at end of file +} diff --git a/src/Humanizer/DateTimeHumanizeStrategy/IDateTimeOffsetHumanizeStrategy.cs b/src/Humanizer/DateTimeHumanizeStrategy/IDateTimeOffsetHumanizeStrategy.cs index 9b8ccc348..28eae6aef 100644 --- a/src/Humanizer/DateTimeHumanizeStrategy/IDateTimeOffsetHumanizeStrategy.cs +++ b/src/Humanizer/DateTimeHumanizeStrategy/IDateTimeOffsetHumanizeStrategy.cs @@ -1,4 +1,4 @@ -namespace Humanizer.DateTimeHumanizeStrategy +namespace Humanizer { /// /// Implement this interface to create a new strategy for DateTime.Humanize and hook it in the Configurator.DateTimeOffsetHumanizeStrategy @@ -10,4 +10,4 @@ public interface IDateTimeOffsetHumanizeStrategy /// string Humanize(DateTimeOffset input, DateTimeOffset comparisonBase, CultureInfo culture); } -} \ No newline at end of file +} diff --git a/src/Humanizer/DateTimeHumanizeStrategy/ITimeOnlyHumanizeStrategy.cs b/src/Humanizer/DateTimeHumanizeStrategy/ITimeOnlyHumanizeStrategy.cs index b70faeb8e..01659062a 100644 --- a/src/Humanizer/DateTimeHumanizeStrategy/ITimeOnlyHumanizeStrategy.cs +++ b/src/Humanizer/DateTimeHumanizeStrategy/ITimeOnlyHumanizeStrategy.cs @@ -1,8 +1,6 @@ #if NET6_0_OR_GREATER -using System.Globalization; - -namespace Humanizer.DateTimeHumanizeStrategy +namespace Humanizer { /// /// Implement this interface to create a new strategy for TimeOnly.Humanize and hook it in the Configurator.TimeOnlyHumanizeStrategy diff --git a/src/Humanizer/DateTimeHumanizeStrategy/PrecisionDateOnlyHumanizeStrategy.cs b/src/Humanizer/DateTimeHumanizeStrategy/PrecisionDateOnlyHumanizeStrategy.cs index c98de94fb..f2dacb15b 100644 --- a/src/Humanizer/DateTimeHumanizeStrategy/PrecisionDateOnlyHumanizeStrategy.cs +++ b/src/Humanizer/DateTimeHumanizeStrategy/PrecisionDateOnlyHumanizeStrategy.cs @@ -1,8 +1,6 @@ #if NET6_0_OR_GREATER -using System.Globalization; - -namespace Humanizer.DateTimeHumanizeStrategy +namespace Humanizer { /// /// Precision-based calculator for distance between two times diff --git a/src/Humanizer/DateTimeHumanizeStrategy/PrecisionDateTimeHumanizeStrategy.cs b/src/Humanizer/DateTimeHumanizeStrategy/PrecisionDateTimeHumanizeStrategy.cs index 1d21e6068..16e3df86f 100644 --- a/src/Humanizer/DateTimeHumanizeStrategy/PrecisionDateTimeHumanizeStrategy.cs +++ b/src/Humanizer/DateTimeHumanizeStrategy/PrecisionDateTimeHumanizeStrategy.cs @@ -1,4 +1,4 @@ -namespace Humanizer.DateTimeHumanizeStrategy +namespace Humanizer { /// /// Precision-based calculator for distance between two times @@ -24,4 +24,4 @@ public string Humanize(DateTime input, DateTime comparisonBase, CultureInfo cult return DateTimeHumanizeAlgorithms.PrecisionHumanize(input, comparisonBase, _precision, culture); } } -} \ No newline at end of file +} diff --git a/src/Humanizer/DateTimeHumanizeStrategy/PrecisionDateTimeOffsetHumanizeStrategy.cs b/src/Humanizer/DateTimeHumanizeStrategy/PrecisionDateTimeOffsetHumanizeStrategy.cs index a6959bba6..69bd5b6db 100644 --- a/src/Humanizer/DateTimeHumanizeStrategy/PrecisionDateTimeOffsetHumanizeStrategy.cs +++ b/src/Humanizer/DateTimeHumanizeStrategy/PrecisionDateTimeOffsetHumanizeStrategy.cs @@ -1,4 +1,4 @@ -namespace Humanizer.DateTimeHumanizeStrategy +namespace Humanizer { /// /// Precision-based calculator for distance between two times @@ -24,4 +24,4 @@ public string Humanize(DateTimeOffset input, DateTimeOffset comparisonBase, Cult return DateTimeHumanizeAlgorithms.PrecisionHumanize(input.UtcDateTime, comparisonBase.UtcDateTime, _precision, culture); } } -} \ No newline at end of file +} diff --git a/src/Humanizer/DateTimeHumanizeStrategy/PrecisionTimeOnlyHumanizeStrategy.cs b/src/Humanizer/DateTimeHumanizeStrategy/PrecisionTimeOnlyHumanizeStrategy.cs index b658e24ab..d5ee2fecb 100644 --- a/src/Humanizer/DateTimeHumanizeStrategy/PrecisionTimeOnlyHumanizeStrategy.cs +++ b/src/Humanizer/DateTimeHumanizeStrategy/PrecisionTimeOnlyHumanizeStrategy.cs @@ -1,8 +1,6 @@ #if NET6_0_OR_GREATER -using System.Globalization; - -namespace Humanizer.DateTimeHumanizeStrategy +namespace Humanizer { /// /// Precision-based calculator for distance between two times diff --git a/src/Humanizer/DateToOrdinalWordsExtensions.cs b/src/Humanizer/DateToOrdinalWordsExtensions.cs index ae26f8ae4..6a8791f8e 100644 --- a/src/Humanizer/DateToOrdinalWordsExtensions.cs +++ b/src/Humanizer/DateToOrdinalWordsExtensions.cs @@ -1,6 +1,4 @@ -using Humanizer.Configuration; - -namespace Humanizer +namespace Humanizer { /// /// Humanizes DateTime into human readable sentence diff --git a/src/Humanizer/EnumHumanizeExtensions.cs b/src/Humanizer/EnumHumanizeExtensions.cs index 30712fc0b..40d67b3ad 100644 --- a/src/Humanizer/EnumHumanizeExtensions.cs +++ b/src/Humanizer/EnumHumanizeExtensions.cs @@ -1,5 +1,4 @@ using System.Reflection; -using Humanizer.Configuration; using System.ComponentModel.DataAnnotations; namespace Humanizer diff --git a/src/Humanizer/HeadingExtensions.cs b/src/Humanizer/HeadingExtensions.cs index 57902b51e..1a6ccd2c8 100644 --- a/src/Humanizer/HeadingExtensions.cs +++ b/src/Humanizer/HeadingExtensions.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation; - -namespace Humanizer +namespace Humanizer { /// /// Style for the cardinal direction humanization diff --git a/src/Humanizer/Inflections/Vocabularies.cs b/src/Humanizer/Inflections/Vocabularies.cs index f0ff523eb..691a283f7 100644 --- a/src/Humanizer/Inflections/Vocabularies.cs +++ b/src/Humanizer/Inflections/Vocabularies.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Inflections +namespace Humanizer { /// /// Container for registered Vocabularies. At present, only a single vocabulary is supported: Default. diff --git a/src/Humanizer/Inflections/Vocabulary.cs b/src/Humanizer/Inflections/Vocabulary.cs index 508991894..317b819ca 100644 --- a/src/Humanizer/Inflections/Vocabulary.cs +++ b/src/Humanizer/Inflections/Vocabulary.cs @@ -1,6 +1,6 @@ using System.Text.RegularExpressions; -namespace Humanizer.Inflections +namespace Humanizer { /// /// A container for exceptions to simple pluralization/singularization rules. diff --git a/src/Humanizer/InflectorExtensions.cs b/src/Humanizer/InflectorExtensions.cs index f15236b94..13879ecce 100644 --- a/src/Humanizer/InflectorExtensions.cs +++ b/src/Humanizer/InflectorExtensions.cs @@ -22,7 +22,6 @@ //CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. using System.Text.RegularExpressions; -using Humanizer.Inflections; namespace Humanizer { diff --git a/src/Humanizer/Localisation/CollectionFormatters/DefaultCollectionFormatter.cs b/src/Humanizer/Localisation/CollectionFormatters/DefaultCollectionFormatter.cs index 4ecfb66a5..565f1d499 100644 --- a/src/Humanizer/Localisation/CollectionFormatters/DefaultCollectionFormatter.cs +++ b/src/Humanizer/Localisation/CollectionFormatters/DefaultCollectionFormatter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.CollectionFormatters +namespace Humanizer { internal class DefaultCollectionFormatter : ICollectionFormatter { diff --git a/src/Humanizer/Localisation/CollectionFormatters/ICollectionFormatter.cs b/src/Humanizer/Localisation/CollectionFormatters/ICollectionFormatter.cs index 807ce9dd6..c4f791693 100644 --- a/src/Humanizer/Localisation/CollectionFormatters/ICollectionFormatter.cs +++ b/src/Humanizer/Localisation/CollectionFormatters/ICollectionFormatter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.CollectionFormatters +namespace Humanizer { /// /// An interface you should implement to localize Humanize for collections diff --git a/src/Humanizer/Localisation/CollectionFormatters/OxfordStyleCollectionFormatter.cs b/src/Humanizer/Localisation/CollectionFormatters/OxfordStyleCollectionFormatter.cs index 15b5f227e..6118b3716 100644 --- a/src/Humanizer/Localisation/CollectionFormatters/OxfordStyleCollectionFormatter.cs +++ b/src/Humanizer/Localisation/CollectionFormatters/OxfordStyleCollectionFormatter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.CollectionFormatters +namespace Humanizer { internal class OxfordStyleCollectionFormatter(string defaultSeparator) : DefaultCollectionFormatter(defaultSeparator ?? "and") diff --git a/src/Humanizer/Localisation/DataUnit.cs b/src/Humanizer/Localisation/DataUnit.cs index a2228903a..d8e564f6d 100644 --- a/src/Humanizer/Localisation/DataUnit.cs +++ b/src/Humanizer/Localisation/DataUnit.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation +namespace Humanizer { /// /// Units of data diff --git a/src/Humanizer/Localisation/DateToOrdinalWords/DefaultDateOnlyToOrdinalWordConverter.cs b/src/Humanizer/Localisation/DateToOrdinalWords/DefaultDateOnlyToOrdinalWordConverter.cs index 4a5d5eac7..3029155f6 100644 --- a/src/Humanizer/Localisation/DateToOrdinalWords/DefaultDateOnlyToOrdinalWordConverter.cs +++ b/src/Humanizer/Localisation/DateToOrdinalWords/DefaultDateOnlyToOrdinalWordConverter.cs @@ -1,6 +1,6 @@ #if NET6_0_OR_GREATER -namespace Humanizer.Localisation.DateToOrdinalWords +namespace Humanizer { internal class DefaultDateOnlyToOrdinalWordConverter : IDateOnlyToOrdinalWordConverter { diff --git a/src/Humanizer/Localisation/DateToOrdinalWords/DefaultDateToOrdinalWordConverter.cs b/src/Humanizer/Localisation/DateToOrdinalWords/DefaultDateToOrdinalWordConverter.cs index 734d64ad2..d842f3796 100644 --- a/src/Humanizer/Localisation/DateToOrdinalWords/DefaultDateToOrdinalWordConverter.cs +++ b/src/Humanizer/Localisation/DateToOrdinalWords/DefaultDateToOrdinalWordConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.DateToOrdinalWords +namespace Humanizer { internal class DefaultDateToOrdinalWordConverter : IDateToOrdinalWordConverter { diff --git a/src/Humanizer/Localisation/DateToOrdinalWords/EsDateOnlyToOrdinalWordsConverter.cs b/src/Humanizer/Localisation/DateToOrdinalWords/EsDateOnlyToOrdinalWordsConverter.cs index 96a665ed8..bd7f992e5 100644 --- a/src/Humanizer/Localisation/DateToOrdinalWords/EsDateOnlyToOrdinalWordsConverter.cs +++ b/src/Humanizer/Localisation/DateToOrdinalWords/EsDateOnlyToOrdinalWordsConverter.cs @@ -1,8 +1,6 @@ #if NET6_0_OR_GREATER -using Humanizer.Configuration; - -namespace Humanizer.Localisation.DateToOrdinalWords +namespace Humanizer { internal class EsDateOnlyToOrdinalWordsConverter : DefaultDateOnlyToOrdinalWordConverter { diff --git a/src/Humanizer/Localisation/DateToOrdinalWords/EsDateToOrdinalWordsConverter.cs b/src/Humanizer/Localisation/DateToOrdinalWords/EsDateToOrdinalWordsConverter.cs index ddcf7fe61..749c82e96 100644 --- a/src/Humanizer/Localisation/DateToOrdinalWords/EsDateToOrdinalWordsConverter.cs +++ b/src/Humanizer/Localisation/DateToOrdinalWords/EsDateToOrdinalWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.DateToOrdinalWords +namespace Humanizer { internal class EsDateToOrdinalWordsConverter : DefaultDateToOrdinalWordConverter { diff --git a/src/Humanizer/Localisation/DateToOrdinalWords/FrDateOnlyToOrdinalWordsConverter.cs b/src/Humanizer/Localisation/DateToOrdinalWords/FrDateOnlyToOrdinalWordsConverter.cs index 382ab4aaa..39b0c9a06 100644 --- a/src/Humanizer/Localisation/DateToOrdinalWords/FrDateOnlyToOrdinalWordsConverter.cs +++ b/src/Humanizer/Localisation/DateToOrdinalWords/FrDateOnlyToOrdinalWordsConverter.cs @@ -1,6 +1,6 @@ #if NET6_0_OR_GREATER -namespace Humanizer.Localisation.DateToOrdinalWords +namespace Humanizer { internal class FrDateOnlyToOrdinalWordsConverter : DefaultDateOnlyToOrdinalWordConverter { diff --git a/src/Humanizer/Localisation/DateToOrdinalWords/FrDateToOrdinalWordsConverter.cs b/src/Humanizer/Localisation/DateToOrdinalWords/FrDateToOrdinalWordsConverter.cs index 085f2e7f9..1c008a7f2 100644 --- a/src/Humanizer/Localisation/DateToOrdinalWords/FrDateToOrdinalWordsConverter.cs +++ b/src/Humanizer/Localisation/DateToOrdinalWords/FrDateToOrdinalWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.DateToOrdinalWords +namespace Humanizer { internal class FrDateToOrdinalWordsConverter : DefaultDateToOrdinalWordConverter { diff --git a/src/Humanizer/Localisation/DateToOrdinalWords/IDateOnlyToOrdinalWordConverter.cs b/src/Humanizer/Localisation/DateToOrdinalWords/IDateOnlyToOrdinalWordConverter.cs index 631006ede..7ba40fd99 100644 --- a/src/Humanizer/Localisation/DateToOrdinalWords/IDateOnlyToOrdinalWordConverter.cs +++ b/src/Humanizer/Localisation/DateToOrdinalWords/IDateOnlyToOrdinalWordConverter.cs @@ -1,6 +1,6 @@ #if NET6_0_OR_GREATER -namespace Humanizer.Localisation.DateToOrdinalWords +namespace Humanizer { /// /// The interface used to localise the ToOrdinalWords method. diff --git a/src/Humanizer/Localisation/DateToOrdinalWords/IDateToOrdinalWordConverter.cs b/src/Humanizer/Localisation/DateToOrdinalWords/IDateToOrdinalWordConverter.cs index b5fba5b9f..df887740a 100644 --- a/src/Humanizer/Localisation/DateToOrdinalWords/IDateToOrdinalWordConverter.cs +++ b/src/Humanizer/Localisation/DateToOrdinalWords/IDateToOrdinalWordConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.DateToOrdinalWords +namespace Humanizer { /// /// The interface used to localise the ToOrdinalWords method. diff --git a/src/Humanizer/Localisation/DateToOrdinalWords/LtDateOnlyToOrdinalWordsConverter.cs b/src/Humanizer/Localisation/DateToOrdinalWords/LtDateOnlyToOrdinalWordsConverter.cs index fac6c5f7c..3ef30434a 100644 --- a/src/Humanizer/Localisation/DateToOrdinalWords/LtDateOnlyToOrdinalWordsConverter.cs +++ b/src/Humanizer/Localisation/DateToOrdinalWords/LtDateOnlyToOrdinalWordsConverter.cs @@ -1,7 +1,6 @@ #if NET6_0_OR_GREATER -using System; -namespace Humanizer.Localisation.DateToOrdinalWords +namespace Humanizer { internal class LtDateOnlyToOrdinalWordsConverter : IDateOnlyToOrdinalWordConverter { diff --git a/src/Humanizer/Localisation/DateToOrdinalWords/LtDateToOrdinalWordsConverter.cs b/src/Humanizer/Localisation/DateToOrdinalWords/LtDateToOrdinalWordsConverter.cs index abee9bdf4..66bdb2e7a 100644 --- a/src/Humanizer/Localisation/DateToOrdinalWords/LtDateToOrdinalWordsConverter.cs +++ b/src/Humanizer/Localisation/DateToOrdinalWords/LtDateToOrdinalWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.DateToOrdinalWords +namespace Humanizer { internal class LtDateToOrdinalWordsConverter : IDateToOrdinalWordConverter { diff --git a/src/Humanizer/Localisation/DateToOrdinalWords/UsDateOnlyToOrdinalWordsConverter.cs b/src/Humanizer/Localisation/DateToOrdinalWords/UsDateOnlyToOrdinalWordsConverter.cs index 36d010e58..0dfd27a9e 100644 --- a/src/Humanizer/Localisation/DateToOrdinalWords/UsDateOnlyToOrdinalWordsConverter.cs +++ b/src/Humanizer/Localisation/DateToOrdinalWords/UsDateOnlyToOrdinalWordsConverter.cs @@ -1,6 +1,6 @@ #if NET6_0_OR_GREATER -namespace Humanizer.Localisation.DateToOrdinalWords +namespace Humanizer { internal class UsDateOnlyToOrdinalWordsConverter : DefaultDateOnlyToOrdinalWordConverter { diff --git a/src/Humanizer/Localisation/DateToOrdinalWords/UsDateToOrdinalWordsConverter.cs b/src/Humanizer/Localisation/DateToOrdinalWords/UsDateToOrdinalWordsConverter.cs index ec403da07..cd095da74 100644 --- a/src/Humanizer/Localisation/DateToOrdinalWords/UsDateToOrdinalWordsConverter.cs +++ b/src/Humanizer/Localisation/DateToOrdinalWords/UsDateToOrdinalWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.DateToOrdinalWords +namespace Humanizer { internal class UsDateToOrdinalWordsConverter : DefaultDateToOrdinalWordConverter { @@ -7,4 +7,4 @@ public override string Convert(DateTime date) return date.ToString("MMMM ") + date.Day.Ordinalize() + date.ToString(", yyyy"); } } -} \ No newline at end of file +} diff --git a/src/Humanizer/Localisation/Formatters/ArabicFormatter.cs b/src/Humanizer/Localisation/Formatters/ArabicFormatter.cs index fa2c58008..4d793a580 100644 --- a/src/Humanizer/Localisation/Formatters/ArabicFormatter.cs +++ b/src/Humanizer/Localisation/Formatters/ArabicFormatter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Formatters +namespace Humanizer { internal class ArabicFormatter() : DefaultFormatter("ar") diff --git a/src/Humanizer/Localisation/Formatters/CroatianFormatter.cs b/src/Humanizer/Localisation/Formatters/CroatianFormatter.cs index ebcfb3804..1bbc37308 100644 --- a/src/Humanizer/Localisation/Formatters/CroatianFormatter.cs +++ b/src/Humanizer/Localisation/Formatters/CroatianFormatter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Formatters +namespace Humanizer { internal class CroatianFormatter() : DefaultFormatter("hr") diff --git a/src/Humanizer/Localisation/Formatters/CzechSlovakPolishFormatter.cs b/src/Humanizer/Localisation/Formatters/CzechSlovakPolishFormatter.cs index 72b392174..c1ce9a007 100644 --- a/src/Humanizer/Localisation/Formatters/CzechSlovakPolishFormatter.cs +++ b/src/Humanizer/Localisation/Formatters/CzechSlovakPolishFormatter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Formatters +namespace Humanizer { internal class CzechSlovakPolishFormatter(string localeCode) : DefaultFormatter(localeCode) diff --git a/src/Humanizer/Localisation/Formatters/DefaultFormatter.cs b/src/Humanizer/Localisation/Formatters/DefaultFormatter.cs index 7b72115ae..1d5ea8388 100644 --- a/src/Humanizer/Localisation/Formatters/DefaultFormatter.cs +++ b/src/Humanizer/Localisation/Formatters/DefaultFormatter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Formatters +namespace Humanizer { /// /// Default implementation of IFormatter interface. diff --git a/src/Humanizer/Localisation/Formatters/FrenchFormatter.cs b/src/Humanizer/Localisation/Formatters/FrenchFormatter.cs index fb9c93810..b3667d0f6 100644 --- a/src/Humanizer/Localisation/Formatters/FrenchFormatter.cs +++ b/src/Humanizer/Localisation/Formatters/FrenchFormatter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Formatters +namespace Humanizer { internal class FrenchFormatter(string localeCode) : DefaultFormatter(localeCode) diff --git a/src/Humanizer/Localisation/Formatters/GermanFormatter.cs b/src/Humanizer/Localisation/Formatters/GermanFormatter.cs index 630690c5b..809fe3bbf 100644 --- a/src/Humanizer/Localisation/Formatters/GermanFormatter.cs +++ b/src/Humanizer/Localisation/Formatters/GermanFormatter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Formatters +namespace Humanizer { internal class GermanFormatter() : DefaultFormatter("de") diff --git a/src/Humanizer/Localisation/Formatters/HebrewFormatter.cs b/src/Humanizer/Localisation/Formatters/HebrewFormatter.cs index 2f68d7734..662b8c0ce 100644 --- a/src/Humanizer/Localisation/Formatters/HebrewFormatter.cs +++ b/src/Humanizer/Localisation/Formatters/HebrewFormatter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Formatters +namespace Humanizer { internal class HebrewFormatter() : DefaultFormatter("he") diff --git a/src/Humanizer/Localisation/Formatters/IFormatter.cs b/src/Humanizer/Localisation/Formatters/IFormatter.cs index 682809f18..4ac0eaf29 100644 --- a/src/Humanizer/Localisation/Formatters/IFormatter.cs +++ b/src/Humanizer/Localisation/Formatters/IFormatter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Formatters +namespace Humanizer { /// /// Implement this interface if your language has complex rules around dealing with numbers. diff --git a/src/Humanizer/Localisation/Formatters/IcelandicFormatter.cs b/src/Humanizer/Localisation/Formatters/IcelandicFormatter.cs index afc54a52f..56bb9d74b 100644 --- a/src/Humanizer/Localisation/Formatters/IcelandicFormatter.cs +++ b/src/Humanizer/Localisation/Formatters/IcelandicFormatter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Formatters +namespace Humanizer { internal class IcelandicFormatter() : DefaultFormatter(LocaleCode) diff --git a/src/Humanizer/Localisation/Formatters/LithuanianFormatter.cs b/src/Humanizer/Localisation/Formatters/LithuanianFormatter.cs index fc709605a..a9b6fe29e 100644 --- a/src/Humanizer/Localisation/Formatters/LithuanianFormatter.cs +++ b/src/Humanizer/Localisation/Formatters/LithuanianFormatter.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation.GrammaticalNumber; - -namespace Humanizer.Localisation.Formatters +namespace Humanizer { internal class LithuanianFormatter() : DefaultFormatter("lt") diff --git a/src/Humanizer/Localisation/Formatters/LuxembourgishFormatter.cs b/src/Humanizer/Localisation/Formatters/LuxembourgishFormatter.cs index 9618d977e..00a791397 100644 --- a/src/Humanizer/Localisation/Formatters/LuxembourgishFormatter.cs +++ b/src/Humanizer/Localisation/Formatters/LuxembourgishFormatter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Formatters; +namespace Humanizer; internal class LuxembourgishFormatter() : DefaultFormatter(LocaleCode) diff --git a/src/Humanizer/Localisation/Formatters/MalteseFormatter.cs b/src/Humanizer/Localisation/Formatters/MalteseFormatter.cs index 52ea341d4..86d668555 100644 --- a/src/Humanizer/Localisation/Formatters/MalteseFormatter.cs +++ b/src/Humanizer/Localisation/Formatters/MalteseFormatter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Formatters +namespace Humanizer { internal class MalteseFormatter(string localeCode) : DefaultFormatter(localeCode) diff --git a/src/Humanizer/Localisation/Formatters/RomanianFormatter.cs b/src/Humanizer/Localisation/Formatters/RomanianFormatter.cs index 9f21283f2..5e7fccdbe 100644 --- a/src/Humanizer/Localisation/Formatters/RomanianFormatter.cs +++ b/src/Humanizer/Localisation/Formatters/RomanianFormatter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Formatters +namespace Humanizer { using System; diff --git a/src/Humanizer/Localisation/Formatters/RussianFormatter.cs b/src/Humanizer/Localisation/Formatters/RussianFormatter.cs index 8f53a8fb9..4387ce457 100644 --- a/src/Humanizer/Localisation/Formatters/RussianFormatter.cs +++ b/src/Humanizer/Localisation/Formatters/RussianFormatter.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation.GrammaticalNumber; - -namespace Humanizer.Localisation.Formatters +namespace Humanizer { internal class RussianFormatter() : DefaultFormatter("ru") diff --git a/src/Humanizer/Localisation/Formatters/SerbianFormatter.cs b/src/Humanizer/Localisation/Formatters/SerbianFormatter.cs index 3b5c81b2c..6979842d6 100644 --- a/src/Humanizer/Localisation/Formatters/SerbianFormatter.cs +++ b/src/Humanizer/Localisation/Formatters/SerbianFormatter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Formatters +namespace Humanizer { internal class SerbianFormatter(string localeCode) : DefaultFormatter(localeCode) diff --git a/src/Humanizer/Localisation/Formatters/SlovenianFormatter.cs b/src/Humanizer/Localisation/Formatters/SlovenianFormatter.cs index 0bef85940..7570dcb25 100644 --- a/src/Humanizer/Localisation/Formatters/SlovenianFormatter.cs +++ b/src/Humanizer/Localisation/Formatters/SlovenianFormatter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Formatters +namespace Humanizer { internal class SlovenianFormatter() : DefaultFormatter("sl") diff --git a/src/Humanizer/Localisation/Formatters/UkrainianFormatter.cs b/src/Humanizer/Localisation/Formatters/UkrainianFormatter.cs index 0fb42906e..d426ff81b 100644 --- a/src/Humanizer/Localisation/Formatters/UkrainianFormatter.cs +++ b/src/Humanizer/Localisation/Formatters/UkrainianFormatter.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation.GrammaticalNumber; - -namespace Humanizer.Localisation.Formatters +namespace Humanizer { internal class UkrainianFormatter() : DefaultFormatter("uk") { diff --git a/src/Humanizer/Localisation/GrammaticalNumber/LithuanianNumberForm.cs b/src/Humanizer/Localisation/GrammaticalNumber/LithuanianNumberForm.cs index 402bd37c7..e37168677 100644 --- a/src/Humanizer/Localisation/GrammaticalNumber/LithuanianNumberForm.cs +++ b/src/Humanizer/Localisation/GrammaticalNumber/LithuanianNumberForm.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.GrammaticalNumber +namespace Humanizer { internal enum LithuanianNumberForm { diff --git a/src/Humanizer/Localisation/GrammaticalNumber/LithuanianNumberFormDetector.cs b/src/Humanizer/Localisation/GrammaticalNumber/LithuanianNumberFormDetector.cs index e6ec0b0ce..bf3cd9d4b 100644 --- a/src/Humanizer/Localisation/GrammaticalNumber/LithuanianNumberFormDetector.cs +++ b/src/Humanizer/Localisation/GrammaticalNumber/LithuanianNumberFormDetector.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.GrammaticalNumber +namespace Humanizer { internal static class LithuanianNumberFormDetector { diff --git a/src/Humanizer/Localisation/GrammaticalNumber/RussianGrammaticalNumber.cs b/src/Humanizer/Localisation/GrammaticalNumber/RussianGrammaticalNumber.cs index 79d1a778b..1e58b312b 100644 --- a/src/Humanizer/Localisation/GrammaticalNumber/RussianGrammaticalNumber.cs +++ b/src/Humanizer/Localisation/GrammaticalNumber/RussianGrammaticalNumber.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.GrammaticalNumber +namespace Humanizer { internal enum RussianGrammaticalNumber { @@ -6,4 +6,4 @@ internal enum RussianGrammaticalNumber Paucal, Plural } -} \ No newline at end of file +} diff --git a/src/Humanizer/Localisation/GrammaticalNumber/RussianGrammaticalNumberDetector.cs b/src/Humanizer/Localisation/GrammaticalNumber/RussianGrammaticalNumberDetector.cs index ffee2a57b..d44e064fe 100644 --- a/src/Humanizer/Localisation/GrammaticalNumber/RussianGrammaticalNumberDetector.cs +++ b/src/Humanizer/Localisation/GrammaticalNumber/RussianGrammaticalNumberDetector.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.GrammaticalNumber +namespace Humanizer { internal static class RussianGrammaticalNumberDetector { diff --git a/src/Humanizer/Localisation/NumberToWords/AfrikaansNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/AfrikaansNumberToWordsConverter.cs index 47c318e9e..6e5d33de7 100644 --- a/src/Humanizer/Localisation/NumberToWords/AfrikaansNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/AfrikaansNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class AfrikaansNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/ArabicNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/ArabicNumberToWordsConverter.cs index 7b8a53d2a..760779442 100644 --- a/src/Humanizer/Localisation/NumberToWords/ArabicNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/ArabicNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class ArabicNumberToWordsConverter : GenderedNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/ArmenianNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/ArmenianNumberToWordsConverter.cs index 812188bae..77a4b2e1c 100644 --- a/src/Humanizer/Localisation/NumberToWords/ArmenianNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/ArmenianNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class ArmenianNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/AzerbaijaniNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/AzerbaijaniNumberToWordsConverter.cs index f5f7a087e..f33536b25 100644 --- a/src/Humanizer/Localisation/NumberToWords/AzerbaijaniNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/AzerbaijaniNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class AzerbaijaniNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/BanglaNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/BanglaNumberToWordsConverter.cs index 9d5722d66..3c93779a7 100644 --- a/src/Humanizer/Localisation/NumberToWords/BanglaNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/BanglaNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class BanglaNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/BrazilianPortugueseNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/BrazilianPortugueseNumberToWordsConverter.cs index 299f85fc5..95d326bfa 100644 --- a/src/Humanizer/Localisation/NumberToWords/BrazilianPortugueseNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/BrazilianPortugueseNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class BrazilianPortugueseNumberToWordsConverter : GenderedNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/BulgarianNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/BulgarianNumberToWordsConverter.cs index d6890c0cc..53cf4142a 100644 --- a/src/Humanizer/Localisation/NumberToWords/BulgarianNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/BulgarianNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class BulgarianNumberToWordsConverter : GenderedNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/CentralKurdishNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/CentralKurdishNumberToWordsConverter.cs index 1f938244d..7e9e1c915 100644 --- a/src/Humanizer/Localisation/NumberToWords/CentralKurdishNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/CentralKurdishNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class CentralKurdishNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/ChineseNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/ChineseNumberToWordsConverter.cs index 937486c0b..078240c24 100644 --- a/src/Humanizer/Localisation/NumberToWords/ChineseNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/ChineseNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class ChineseNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/CroatianNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/CroatianNumberToWordsConverter.cs index 06b21f7b0..f028bbe08 100644 --- a/src/Humanizer/Localisation/NumberToWords/CroatianNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/CroatianNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class CroatianNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/CzechNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/CzechNumberToWordsConverter.cs index 119233a9c..fa9102bb6 100644 --- a/src/Humanizer/Localisation/NumberToWords/CzechNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/CzechNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class CzechNumberToWordsConverter : GenderedNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/DefaultNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/DefaultNumberToWordsConverter.cs index 6f644e3fe..85538a9a3 100644 --- a/src/Humanizer/Localisation/NumberToWords/DefaultNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/DefaultNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class DefaultNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/DutchNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/DutchNumberToWordsConverter.cs index 5c0850760..0fe5ec67c 100644 --- a/src/Humanizer/Localisation/NumberToWords/DutchNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/DutchNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { /// /// Dutch spelling of numbers is not really officially regulated. diff --git a/src/Humanizer/Localisation/NumberToWords/EnglishNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/EnglishNumberToWordsConverter.cs index 2736c1996..be3f1d110 100644 --- a/src/Humanizer/Localisation/NumberToWords/EnglishNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/EnglishNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class EnglishNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/FarsiNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/FarsiNumberToWordsConverter.cs index adda87cf0..55e1f306f 100644 --- a/src/Humanizer/Localisation/NumberToWords/FarsiNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/FarsiNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class FarsiNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/FinnishNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/FinnishNumberToWordsConverter.cs index db6e871fc..161d1b0b5 100644 --- a/src/Humanizer/Localisation/NumberToWords/FinnishNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/FinnishNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class FinnishNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/FrenchBelgianNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/FrenchBelgianNumberToWordsConverter.cs index 735110aa0..94927fb0d 100644 --- a/src/Humanizer/Localisation/NumberToWords/FrenchBelgianNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/FrenchBelgianNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class FrenchBelgianNumberToWordsConverter : FrenchNumberToWordsConverterBase { diff --git a/src/Humanizer/Localisation/NumberToWords/FrenchNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/FrenchNumberToWordsConverter.cs index 2ca705d11..446cb8af7 100644 --- a/src/Humanizer/Localisation/NumberToWords/FrenchNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/FrenchNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class FrenchNumberToWordsConverter : FrenchNumberToWordsConverterBase { diff --git a/src/Humanizer/Localisation/NumberToWords/FrenchNumberToWordsConverterBase.cs b/src/Humanizer/Localisation/NumberToWords/FrenchNumberToWordsConverterBase.cs index 26dcc6d7a..96c02313a 100644 --- a/src/Humanizer/Localisation/NumberToWords/FrenchNumberToWordsConverterBase.cs +++ b/src/Humanizer/Localisation/NumberToWords/FrenchNumberToWordsConverterBase.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal abstract class FrenchNumberToWordsConverterBase : GenderedNumberToWordsConverter { @@ -190,4 +190,4 @@ protected virtual string GetTens(long tens) return TensMap[tens]; } } -} \ No newline at end of file +} diff --git a/src/Humanizer/Localisation/NumberToWords/FrenchSwissNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/FrenchSwissNumberToWordsConverter.cs index eaf7dd2bc..cfef8c24a 100644 --- a/src/Humanizer/Localisation/NumberToWords/FrenchSwissNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/FrenchSwissNumberToWordsConverter.cs @@ -1,6 +1,6 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class FrenchSwissNumberToWordsConverter : FrenchNumberToWordsConverterBase { } -} \ No newline at end of file +} diff --git a/src/Humanizer/Localisation/NumberToWords/GenderedNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/GenderedNumberToWordsConverter.cs index 20bf0285f..97c9a488c 100644 --- a/src/Humanizer/Localisation/NumberToWords/GenderedNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/GenderedNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal abstract class GenderedNumberToWordsConverter : INumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/GenderlessNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/GenderlessNumberToWordsConverter.cs index 887dbb7b4..8bd8cc137 100644 --- a/src/Humanizer/Localisation/NumberToWords/GenderlessNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/GenderlessNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal abstract class GenderlessNumberToWordsConverter : INumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/GermanNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/GermanNumberToWordsConverter.cs index 7e2f5c29c..d68caf17f 100644 --- a/src/Humanizer/Localisation/NumberToWords/GermanNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/GermanNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class GermanNumberToWordsConverter : GermanNumberToWordsConverterBase { diff --git a/src/Humanizer/Localisation/NumberToWords/GermanNumberToWordsConverterBase.cs b/src/Humanizer/Localisation/NumberToWords/GermanNumberToWordsConverterBase.cs index b57b11390..fe4cba2aa 100644 --- a/src/Humanizer/Localisation/NumberToWords/GermanNumberToWordsConverterBase.cs +++ b/src/Humanizer/Localisation/NumberToWords/GermanNumberToWordsConverterBase.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal abstract class GermanNumberToWordsConverterBase : GenderedNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/GermanSwissLiechtensteinNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/GermanSwissLiechtensteinNumberToWordsConverter.cs index a4efa7537..5c12cf2bd 100644 --- a/src/Humanizer/Localisation/NumberToWords/GermanSwissLiechtensteinNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/GermanSwissLiechtensteinNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class GermanSwissLiechtensteinNumberToWordsConverter : GermanNumberToWordsConverterBase { diff --git a/src/Humanizer/Localisation/NumberToWords/GreekNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/GreekNumberToWordsConverter.cs index 9526ce853..56c64b3b0 100644 --- a/src/Humanizer/Localisation/NumberToWords/GreekNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/GreekNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class GreekNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/HebrewNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/HebrewNumberToWordsConverter.cs index 4fffaa827..4e90ec909 100644 --- a/src/Humanizer/Localisation/NumberToWords/HebrewNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/HebrewNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class HebrewNumberToWordsConverter : GenderedNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/INumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/INumberToWordsConverter.cs index bff2e807c..2dc2b858d 100644 --- a/src/Humanizer/Localisation/NumberToWords/INumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/INumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { /// /// An interface you should implement to localise ToWords and ToOrdinalWords methods diff --git a/src/Humanizer/Localisation/NumberToWords/IcelandicNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/IcelandicNumberToWordsConverter.cs index 4981356fd..c5a7c2498 100644 --- a/src/Humanizer/Localisation/NumberToWords/IcelandicNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/IcelandicNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class IcelandicNumberToWordsConverter : GenderedNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/IndianNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/IndianNumberToWordsConverter.cs index f3c23e63e..357a5fa87 100644 --- a/src/Humanizer/Localisation/NumberToWords/IndianNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/IndianNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class IndianNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/Italian/ItalianCardinalNumberCruncher.cs b/src/Humanizer/Localisation/NumberToWords/Italian/ItalianCardinalNumberCruncher.cs index 5df33ad78..a0098d997 100644 --- a/src/Humanizer/Localisation/NumberToWords/Italian/ItalianCardinalNumberCruncher.cs +++ b/src/Humanizer/Localisation/NumberToWords/Italian/ItalianCardinalNumberCruncher.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords.Italian +namespace Humanizer { internal class ItalianCardinalNumberCruncher(int number, GrammaticalGender gender) { diff --git a/src/Humanizer/Localisation/NumberToWords/Italian/ItalianOrdinalNumberCruncher.cs b/src/Humanizer/Localisation/NumberToWords/Italian/ItalianOrdinalNumberCruncher.cs index 0627749ba..35ad7e5b1 100644 --- a/src/Humanizer/Localisation/NumberToWords/Italian/ItalianOrdinalNumberCruncher.cs +++ b/src/Humanizer/Localisation/NumberToWords/Italian/ItalianOrdinalNumberCruncher.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords.Italian +namespace Humanizer { internal class ItalianOrdinalNumberCruncher(int number, GrammaticalGender gender) { diff --git a/src/Humanizer/Localisation/NumberToWords/ItalianNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/ItalianNumberToWordsConverter.cs index be1316899..f164b97fa 100644 --- a/src/Humanizer/Localisation/NumberToWords/ItalianNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/ItalianNumberToWordsConverter.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation.NumberToWords.Italian; - -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class ItalianNumberToWordsConverter : GenderedNumberToWordsConverter { @@ -29,4 +27,4 @@ public override string ConvertToOrdinal(int number, GrammaticalGender gender) return cruncher.Convert(); } } -} \ No newline at end of file +} diff --git a/src/Humanizer/Localisation/NumberToWords/JapaneseNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/JapaneseNumberToWordsConverter.cs index c5480d67e..178bc2368 100644 --- a/src/Humanizer/Localisation/NumberToWords/JapaneseNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/JapaneseNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class JapaneseNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/KoreanNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/KoreanNumberToWordsConverter.cs index bf459889f..d9c8c1a74 100644 --- a/src/Humanizer/Localisation/NumberToWords/KoreanNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/KoreanNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class KoreanNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/LatvianNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/LatvianNumberToWordsConverter.cs index 503eb8c0b..4f1f30f66 100644 --- a/src/Humanizer/Localisation/NumberToWords/LatvianNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/LatvianNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class LatvianNumberToWordsConverter : GenderedNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/LithuanianNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/LithuanianNumberToWordsConverter.cs index 6bb17e1ef..5beadfd63 100644 --- a/src/Humanizer/Localisation/NumberToWords/LithuanianNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/LithuanianNumberToWordsConverter.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation.GrammaticalNumber; - -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class LithuanianNumberToWordsConverter : GenderedNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/LuxembourgishNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/LuxembourgishNumberToWordsConverter.cs index 5e46c4e1c..647035b58 100644 --- a/src/Humanizer/Localisation/NumberToWords/LuxembourgishNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/LuxembourgishNumberToWordsConverter.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation.Formatters; - -namespace Humanizer.Localisation.NumberToWords; +namespace Humanizer; internal class LuxembourgishNumberToWordsConverter : GenderedNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/MalteseNumberToWordsConvertor.cs b/src/Humanizer/Localisation/NumberToWords/MalteseNumberToWordsConvertor.cs index c82d205a5..04252e747 100644 --- a/src/Humanizer/Localisation/NumberToWords/MalteseNumberToWordsConvertor.cs +++ b/src/Humanizer/Localisation/NumberToWords/MalteseNumberToWordsConvertor.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class MalteseNumberToWordsConvertor : GenderedNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/NorwegianBokmalNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/NorwegianBokmalNumberToWordsConverter.cs index 34c7b4189..767ea9078 100644 --- a/src/Humanizer/Localisation/NumberToWords/NorwegianBokmalNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/NorwegianBokmalNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class NorwegianBokmalNumberToWordsConverter : GenderedNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/PolishNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/PolishNumberToWordsConverter.cs index 2f7af776e..221dd588f 100644 --- a/src/Humanizer/Localisation/NumberToWords/PolishNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/PolishNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class PolishNumberToWordsConverter : GenderedNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/PortugueseNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/PortugueseNumberToWordsConverter.cs index f7c9e92ec..6df88f94a 100644 --- a/src/Humanizer/Localisation/NumberToWords/PortugueseNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/PortugueseNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class PortugueseNumberToWordsConverter : GenderedNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/Romanian/RomanianCardinalNumberConverter.cs b/src/Humanizer/Localisation/NumberToWords/Romanian/RomanianCardinalNumberConverter.cs index c13301ea4..3f5ddf84f 100644 --- a/src/Humanizer/Localisation/NumberToWords/Romanian/RomanianCardinalNumberConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/Romanian/RomanianCardinalNumberConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords.Romanian +namespace Humanizer { internal class RomanianCardinalNumberConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/Romanian/RomanianOrdinalNumberConverter.cs b/src/Humanizer/Localisation/NumberToWords/Romanian/RomanianOrdinalNumberConverter.cs index 782d92c72..5b18eaf19 100644 --- a/src/Humanizer/Localisation/NumberToWords/Romanian/RomanianOrdinalNumberConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/Romanian/RomanianOrdinalNumberConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords.Romanian +namespace Humanizer { internal class RomanianOrdinalNumberConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/RomanianNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/RomanianNumberToWordsConverter.cs index dd85670b6..f1738e525 100644 --- a/src/Humanizer/Localisation/NumberToWords/RomanianNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/RomanianNumberToWordsConverter.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation.NumberToWords.Romanian; - -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class RomanianNumberToWordsConverter : GenderedNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/RussianNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/RussianNumberToWordsConverter.cs index 10efaea8c..70059445e 100644 --- a/src/Humanizer/Localisation/NumberToWords/RussianNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/RussianNumberToWordsConverter.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation.GrammaticalNumber; - -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class RussianNumberToWordsConverter : GenderedNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/SerbianCyrlNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/SerbianCyrlNumberToWordsConverter.cs index a2e4c0c03..d15d75b6d 100644 --- a/src/Humanizer/Localisation/NumberToWords/SerbianCyrlNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/SerbianCyrlNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class SerbianCyrlNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/SerbianNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/SerbianNumberToWordsConverter.cs index 80fc128dc..bced2ddf6 100644 --- a/src/Humanizer/Localisation/NumberToWords/SerbianNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/SerbianNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class SerbianNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/SlovenianNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/SlovenianNumberToWordsConverter.cs index 630c61fe1..e4a705986 100644 --- a/src/Humanizer/Localisation/NumberToWords/SlovenianNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/SlovenianNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class SlovenianNumberToWordsConverter : GenderlessNumberToWordsConverter { @@ -128,4 +128,4 @@ private string Part(string singular, string dual, string trialQuadral, string pl return string.Format(plural, Convert(number)); } } -} \ No newline at end of file +} diff --git a/src/Humanizer/Localisation/NumberToWords/SpanishNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/SpanishNumberToWordsConverter.cs index 14a2c2031..27770386f 100644 --- a/src/Humanizer/Localisation/NumberToWords/SpanishNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/SpanishNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class SpanishNumberToWordsConverter : GenderedNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/SwedishNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/SwedishNumberToWordsConverter.cs index 801c7c624..0b5e0ecc1 100644 --- a/src/Humanizer/Localisation/NumberToWords/SwedishNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/SwedishNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class SwedishNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/TamilNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/TamilNumberToWordsConverter.cs index d06e2d9a9..2cfb7b130 100644 --- a/src/Humanizer/Localisation/NumberToWords/TamilNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/TamilNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class TamilNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/ThaiNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/ThaiNumberToWordsConverter.cs index 0c5525953..fbdb66691 100644 --- a/src/Humanizer/Localisation/NumberToWords/ThaiNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/ThaiNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class ThaiNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/TurkishNumberToWordConverter.cs b/src/Humanizer/Localisation/NumberToWords/TurkishNumberToWordConverter.cs index 9d5bef158..f9b6565e6 100644 --- a/src/Humanizer/Localisation/NumberToWords/TurkishNumberToWordConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/TurkishNumberToWordConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class TurkishNumberToWordConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/UkrainianNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/UkrainianNumberToWordsConverter.cs index 2e294d8b2..67b842cc3 100644 --- a/src/Humanizer/Localisation/NumberToWords/UkrainianNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/UkrainianNumberToWordsConverter.cs @@ -1,6 +1,4 @@ -using Humanizer.Localisation.GrammaticalNumber; - -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class UkrainianNumberToWordsConverter : GenderedNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/UzbekCyrlNumberToWordConverter.cs b/src/Humanizer/Localisation/NumberToWords/UzbekCyrlNumberToWordConverter.cs index d256b8c5b..7b115afb0 100644 --- a/src/Humanizer/Localisation/NumberToWords/UzbekCyrlNumberToWordConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/UzbekCyrlNumberToWordConverter.cs @@ -1,6 +1,6 @@ using System.Text; -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class UzbekCyrlNumberToWordConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/UzbekLatnNumberToWordConverter.cs b/src/Humanizer/Localisation/NumberToWords/UzbekLatnNumberToWordConverter.cs index 6c502807c..015edb805 100644 --- a/src/Humanizer/Localisation/NumberToWords/UzbekLatnNumberToWordConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/UzbekLatnNumberToWordConverter.cs @@ -1,6 +1,6 @@ using System.Text; -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class UzbekLatnNumberToWordConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/NumberToWords/VietnameseNumberToWordsConverter.cs b/src/Humanizer/Localisation/NumberToWords/VietnameseNumberToWordsConverter.cs index 35b73bf4b..55c38fed1 100644 --- a/src/Humanizer/Localisation/NumberToWords/VietnameseNumberToWordsConverter.cs +++ b/src/Humanizer/Localisation/NumberToWords/VietnameseNumberToWordsConverter.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.NumberToWords +namespace Humanizer { internal class VietnameseNumberToWordsConverter : GenderlessNumberToWordsConverter { diff --git a/src/Humanizer/Localisation/Ordinalizers/ArmenianOrdinalizer.cs b/src/Humanizer/Localisation/Ordinalizers/ArmenianOrdinalizer.cs index df7cce4eb..061cf875a 100644 --- a/src/Humanizer/Localisation/Ordinalizers/ArmenianOrdinalizer.cs +++ b/src/Humanizer/Localisation/Ordinalizers/ArmenianOrdinalizer.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Ordinalizers +namespace Humanizer { internal class ArmenianOrdinalizer : DefaultOrdinalizer { diff --git a/src/Humanizer/Localisation/Ordinalizers/AzerbaijaniOrdinalizer.cs b/src/Humanizer/Localisation/Ordinalizers/AzerbaijaniOrdinalizer.cs index 2e7fe6ce2..88d21b229 100644 --- a/src/Humanizer/Localisation/Ordinalizers/AzerbaijaniOrdinalizer.cs +++ b/src/Humanizer/Localisation/Ordinalizers/AzerbaijaniOrdinalizer.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Ordinalizers +namespace Humanizer { internal class AzerbaijaniOrdinalizer : DefaultOrdinalizer { diff --git a/src/Humanizer/Localisation/Ordinalizers/DefaultOrdinalizer.cs b/src/Humanizer/Localisation/Ordinalizers/DefaultOrdinalizer.cs index 48526b6bb..6809d8290 100644 --- a/src/Humanizer/Localisation/Ordinalizers/DefaultOrdinalizer.cs +++ b/src/Humanizer/Localisation/Ordinalizers/DefaultOrdinalizer.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Ordinalizers +namespace Humanizer { internal class DefaultOrdinalizer : IOrdinalizer { diff --git a/src/Humanizer/Localisation/Ordinalizers/DutchOrdinalizer.cs b/src/Humanizer/Localisation/Ordinalizers/DutchOrdinalizer.cs index a25f977ed..304addf08 100644 --- a/src/Humanizer/Localisation/Ordinalizers/DutchOrdinalizer.cs +++ b/src/Humanizer/Localisation/Ordinalizers/DutchOrdinalizer.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Ordinalizers +namespace Humanizer { internal class DutchOrdinalizer : DefaultOrdinalizer { @@ -18,4 +18,4 @@ public override string Convert(int number, string numberString, GrammaticalGende return numberString + "e"; } } -} \ No newline at end of file +} diff --git a/src/Humanizer/Localisation/Ordinalizers/EnglishOrdinalizer.cs b/src/Humanizer/Localisation/Ordinalizers/EnglishOrdinalizer.cs index 438bbb2c9..ce834d3f6 100644 --- a/src/Humanizer/Localisation/Ordinalizers/EnglishOrdinalizer.cs +++ b/src/Humanizer/Localisation/Ordinalizers/EnglishOrdinalizer.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Ordinalizers +namespace Humanizer { internal class EnglishOrdinalizer : DefaultOrdinalizer { diff --git a/src/Humanizer/Localisation/Ordinalizers/FrenchOrdinalizer.cs b/src/Humanizer/Localisation/Ordinalizers/FrenchOrdinalizer.cs index 27106f813..c7ecd3d10 100644 --- a/src/Humanizer/Localisation/Ordinalizers/FrenchOrdinalizer.cs +++ b/src/Humanizer/Localisation/Ordinalizers/FrenchOrdinalizer.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Ordinalizers +namespace Humanizer { internal class FrenchOrdinalizer : DefaultOrdinalizer { diff --git a/src/Humanizer/Localisation/Ordinalizers/GermanOrdinalizer.cs b/src/Humanizer/Localisation/Ordinalizers/GermanOrdinalizer.cs index e59deab4b..36421674b 100644 --- a/src/Humanizer/Localisation/Ordinalizers/GermanOrdinalizer.cs +++ b/src/Humanizer/Localisation/Ordinalizers/GermanOrdinalizer.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Ordinalizers +namespace Humanizer { internal class GermanOrdinalizer : DefaultOrdinalizer { @@ -7,4 +7,4 @@ public override string Convert(int number, string numberString) return numberString + "."; } } -} \ No newline at end of file +} diff --git a/src/Humanizer/Localisation/Ordinalizers/IOrdinalizer.cs b/src/Humanizer/Localisation/Ordinalizers/IOrdinalizer.cs index a1ab272c9..2d7148cac 100644 --- a/src/Humanizer/Localisation/Ordinalizers/IOrdinalizer.cs +++ b/src/Humanizer/Localisation/Ordinalizers/IOrdinalizer.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Ordinalizers +namespace Humanizer { /// /// The interface used to localise the Ordinalize method diff --git a/src/Humanizer/Localisation/Ordinalizers/IcelandicOrdinalizer.cs b/src/Humanizer/Localisation/Ordinalizers/IcelandicOrdinalizer.cs index 3f4336dd8..f9e9bd989 100644 --- a/src/Humanizer/Localisation/Ordinalizers/IcelandicOrdinalizer.cs +++ b/src/Humanizer/Localisation/Ordinalizers/IcelandicOrdinalizer.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Ordinalizers +namespace Humanizer { internal class IcelandicOrdinalizer : DefaultOrdinalizer { diff --git a/src/Humanizer/Localisation/Ordinalizers/ItalianOrdinalizer.cs b/src/Humanizer/Localisation/Ordinalizers/ItalianOrdinalizer.cs index 60a149318..4ee75f70b 100644 --- a/src/Humanizer/Localisation/Ordinalizers/ItalianOrdinalizer.cs +++ b/src/Humanizer/Localisation/Ordinalizers/ItalianOrdinalizer.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Ordinalizers +namespace Humanizer { internal class ItalianOrdinalizer : DefaultOrdinalizer { @@ -23,4 +23,4 @@ public override string Convert(int number, string numberString, GrammaticalGende return numberString + "°"; } } -} \ No newline at end of file +} diff --git a/src/Humanizer/Localisation/Ordinalizers/LuxembourgishOrdinalizer.cs b/src/Humanizer/Localisation/Ordinalizers/LuxembourgishOrdinalizer.cs index 934c9f69a..0a41d351d 100644 --- a/src/Humanizer/Localisation/Ordinalizers/LuxembourgishOrdinalizer.cs +++ b/src/Humanizer/Localisation/Ordinalizers/LuxembourgishOrdinalizer.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Ordinalizers; +namespace Humanizer; internal class LuxembourgishOrdinalizer : DefaultOrdinalizer { diff --git a/src/Humanizer/Localisation/Ordinalizers/PortugueseOrdinalizer.cs b/src/Humanizer/Localisation/Ordinalizers/PortugueseOrdinalizer.cs index 8b35b69d9..675082cac 100644 --- a/src/Humanizer/Localisation/Ordinalizers/PortugueseOrdinalizer.cs +++ b/src/Humanizer/Localisation/Ordinalizers/PortugueseOrdinalizer.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Ordinalizers +namespace Humanizer { internal class PortugueseOrdinalizer : DefaultOrdinalizer { diff --git a/src/Humanizer/Localisation/Ordinalizers/RomanianOrdinalizer.cs b/src/Humanizer/Localisation/Ordinalizers/RomanianOrdinalizer.cs index 7c0f07994..1174a9454 100644 --- a/src/Humanizer/Localisation/Ordinalizers/RomanianOrdinalizer.cs +++ b/src/Humanizer/Localisation/Ordinalizers/RomanianOrdinalizer.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Ordinalizers +namespace Humanizer { internal class RomanianOrdinalizer : DefaultOrdinalizer { diff --git a/src/Humanizer/Localisation/Ordinalizers/RussianOrdinalizer.cs b/src/Humanizer/Localisation/Ordinalizers/RussianOrdinalizer.cs index 691825545..431bcb202 100644 --- a/src/Humanizer/Localisation/Ordinalizers/RussianOrdinalizer.cs +++ b/src/Humanizer/Localisation/Ordinalizers/RussianOrdinalizer.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Ordinalizers +namespace Humanizer { internal class RussianOrdinalizer : DefaultOrdinalizer { diff --git a/src/Humanizer/Localisation/Ordinalizers/SpanishOrdinalizer.cs b/src/Humanizer/Localisation/Ordinalizers/SpanishOrdinalizer.cs index 0de260c38..1f30b3326 100644 --- a/src/Humanizer/Localisation/Ordinalizers/SpanishOrdinalizer.cs +++ b/src/Humanizer/Localisation/Ordinalizers/SpanishOrdinalizer.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Ordinalizers +namespace Humanizer { internal class SpanishOrdinalizer : DefaultOrdinalizer { diff --git a/src/Humanizer/Localisation/Ordinalizers/TurkishOrdinalizer.cs b/src/Humanizer/Localisation/Ordinalizers/TurkishOrdinalizer.cs index 16c995be0..a503c265e 100644 --- a/src/Humanizer/Localisation/Ordinalizers/TurkishOrdinalizer.cs +++ b/src/Humanizer/Localisation/Ordinalizers/TurkishOrdinalizer.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Ordinalizers +namespace Humanizer { internal class TurkishOrdinalizer : DefaultOrdinalizer { diff --git a/src/Humanizer/Localisation/Ordinalizers/UkrainianOrdinalizer.cs b/src/Humanizer/Localisation/Ordinalizers/UkrainianOrdinalizer.cs index 34328dcb5..9e9178bc0 100644 --- a/src/Humanizer/Localisation/Ordinalizers/UkrainianOrdinalizer.cs +++ b/src/Humanizer/Localisation/Ordinalizers/UkrainianOrdinalizer.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation.Ordinalizers +namespace Humanizer { internal class UkrainianOrdinalizer : DefaultOrdinalizer { diff --git a/src/Humanizer/Localisation/ResourceKeys.Common.cs b/src/Humanizer/Localisation/ResourceKeys.Common.cs index f6297b254..2f980156b 100644 --- a/src/Humanizer/Localisation/ResourceKeys.Common.cs +++ b/src/Humanizer/Localisation/ResourceKeys.Common.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation +namespace Humanizer { /// /// diff --git a/src/Humanizer/Localisation/ResourceKeys.DateHumanize.cs b/src/Humanizer/Localisation/ResourceKeys.DateHumanize.cs index 4c6426e92..d73414f22 100644 --- a/src/Humanizer/Localisation/ResourceKeys.DateHumanize.cs +++ b/src/Humanizer/Localisation/ResourceKeys.DateHumanize.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation +namespace Humanizer { public partial class ResourceKeys { diff --git a/src/Humanizer/Localisation/ResourceKeys.TimeSpanHumanize.cs b/src/Humanizer/Localisation/ResourceKeys.TimeSpanHumanize.cs index a389a49bd..d4d99dee0 100644 --- a/src/Humanizer/Localisation/ResourceKeys.TimeSpanHumanize.cs +++ b/src/Humanizer/Localisation/ResourceKeys.TimeSpanHumanize.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation +namespace Humanizer { public partial class ResourceKeys { diff --git a/src/Humanizer/Localisation/ResourceKeys.TimeUnitSymbol.cs b/src/Humanizer/Localisation/ResourceKeys.TimeUnitSymbol.cs index 6a3dca264..c81887696 100644 --- a/src/Humanizer/Localisation/ResourceKeys.TimeUnitSymbol.cs +++ b/src/Humanizer/Localisation/ResourceKeys.TimeUnitSymbol.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation +namespace Humanizer { public partial class ResourceKeys { diff --git a/src/Humanizer/Localisation/Resources.cs b/src/Humanizer/Localisation/Resources.cs index 268b77f12..85f6c9d54 100644 --- a/src/Humanizer/Localisation/Resources.cs +++ b/src/Humanizer/Localisation/Resources.cs @@ -1,7 +1,7 @@ using System.Reflection; using System.Resources; -namespace Humanizer.Localisation +namespace Humanizer { /// /// Provides access to the resources of Humanizer diff --git a/src/Humanizer/Localisation/Tense.cs b/src/Humanizer/Localisation/Tense.cs index 1d25786d1..c329a3cbe 100644 --- a/src/Humanizer/Localisation/Tense.cs +++ b/src/Humanizer/Localisation/Tense.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation +namespace Humanizer { /// /// Enumerates the possible time references; past or future. @@ -15,4 +15,4 @@ public enum Tense /// Past } -} \ No newline at end of file +} diff --git a/src/Humanizer/Localisation/TimeToClockNotation/BrazilianPortugueseTimeOnlyToClockNotationConverter.cs b/src/Humanizer/Localisation/TimeToClockNotation/BrazilianPortugueseTimeOnlyToClockNotationConverter.cs index 131bea5bc..adbe203a6 100644 --- a/src/Humanizer/Localisation/TimeToClockNotation/BrazilianPortugueseTimeOnlyToClockNotationConverter.cs +++ b/src/Humanizer/Localisation/TimeToClockNotation/BrazilianPortugueseTimeOnlyToClockNotationConverter.cs @@ -1,6 +1,6 @@ #if NET6_0_OR_GREATER -namespace Humanizer.Localisation.TimeToClockNotation +namespace Humanizer { internal class BrazilianPortugueseTimeOnlyToClockNotationConverter : ITimeOnlyToClockNotationConverter { diff --git a/src/Humanizer/Localisation/TimeToClockNotation/DefaultTimeOnlyToClockNotationConverter.cs b/src/Humanizer/Localisation/TimeToClockNotation/DefaultTimeOnlyToClockNotationConverter.cs index 0ee9f12a3..9eb63081b 100644 --- a/src/Humanizer/Localisation/TimeToClockNotation/DefaultTimeOnlyToClockNotationConverter.cs +++ b/src/Humanizer/Localisation/TimeToClockNotation/DefaultTimeOnlyToClockNotationConverter.cs @@ -1,6 +1,6 @@ #if NET6_0_OR_GREATER -namespace Humanizer.Localisation.TimeToClockNotation +namespace Humanizer { internal class DefaultTimeOnlyToClockNotationConverter : ITimeOnlyToClockNotationConverter { diff --git a/src/Humanizer/Localisation/TimeToClockNotation/EsTimeOnlyToClockNotationConverter.cs b/src/Humanizer/Localisation/TimeToClockNotation/EsTimeOnlyToClockNotationConverter.cs index 0f86695e7..dc3359736 100644 --- a/src/Humanizer/Localisation/TimeToClockNotation/EsTimeOnlyToClockNotationConverter.cs +++ b/src/Humanizer/Localisation/TimeToClockNotation/EsTimeOnlyToClockNotationConverter.cs @@ -1,6 +1,6 @@ #if NET6_0_OR_GREATER -namespace Humanizer.Localisation.TimeToClockNotation +namespace Humanizer { internal class EsTimeOnlyToClockNotationConverter : ITimeOnlyToClockNotationConverter { diff --git a/src/Humanizer/Localisation/TimeToClockNotation/FrTimeOnlyToClockNotationConverter.cs b/src/Humanizer/Localisation/TimeToClockNotation/FrTimeOnlyToClockNotationConverter.cs index 47f197331..ee9d6cdef 100644 --- a/src/Humanizer/Localisation/TimeToClockNotation/FrTimeOnlyToClockNotationConverter.cs +++ b/src/Humanizer/Localisation/TimeToClockNotation/FrTimeOnlyToClockNotationConverter.cs @@ -1,6 +1,6 @@ #if NET6_0_OR_GREATER -namespace Humanizer.Localisation.TimeToClockNotation +namespace Humanizer { internal class FrTimeOnlyToClockNotationConverter : ITimeOnlyToClockNotationConverter { diff --git a/src/Humanizer/Localisation/TimeToClockNotation/ITimeOnlyToClockNotationConverter.cs b/src/Humanizer/Localisation/TimeToClockNotation/ITimeOnlyToClockNotationConverter.cs index fe19fc3b0..3ec06fbca 100644 --- a/src/Humanizer/Localisation/TimeToClockNotation/ITimeOnlyToClockNotationConverter.cs +++ b/src/Humanizer/Localisation/TimeToClockNotation/ITimeOnlyToClockNotationConverter.cs @@ -1,6 +1,6 @@ #if NET6_0_OR_GREATER -namespace Humanizer.Localisation.TimeToClockNotation +namespace Humanizer { /// /// The interface used to localise the ToClockNotation method. diff --git a/src/Humanizer/Localisation/TimeToClockNotation/LbTimeOnlyToClockNotationConverter.cs b/src/Humanizer/Localisation/TimeToClockNotation/LbTimeOnlyToClockNotationConverter.cs index 9cbae3727..e88a3851b 100644 --- a/src/Humanizer/Localisation/TimeToClockNotation/LbTimeOnlyToClockNotationConverter.cs +++ b/src/Humanizer/Localisation/TimeToClockNotation/LbTimeOnlyToClockNotationConverter.cs @@ -1,10 +1,6 @@ #if NET6_0_OR_GREATER -using System; - -using Humanizer.Localisation.Formatters; - -namespace Humanizer.Localisation.TimeToClockNotation; +namespace Humanizer; internal class LbTimeOnlyToClockNotationConverter : ITimeOnlyToClockNotationConverter { diff --git a/src/Humanizer/Localisation/TimeUnit.cs b/src/Humanizer/Localisation/TimeUnit.cs index e8941b3c1..8038c5bb5 100644 --- a/src/Humanizer/Localisation/TimeUnit.cs +++ b/src/Humanizer/Localisation/TimeUnit.cs @@ -1,4 +1,4 @@ -namespace Humanizer.Localisation +namespace Humanizer { /// /// Units of time. @@ -16,4 +16,4 @@ public enum TimeUnit Year } #pragma warning restore 1591 -} \ No newline at end of file +} diff --git a/src/Humanizer/NumberToWordsExtension.cs b/src/Humanizer/NumberToWordsExtension.cs index b0f31ff98..b7de610d5 100644 --- a/src/Humanizer/NumberToWordsExtension.cs +++ b/src/Humanizer/NumberToWordsExtension.cs @@ -1,6 +1,4 @@ -using Humanizer.Configuration; - -namespace Humanizer +namespace Humanizer { /// /// Transform a number into words; e.g. 1 => one diff --git a/src/Humanizer/OrdinalizeExtensions.cs b/src/Humanizer/OrdinalizeExtensions.cs index 7b31bddee..d7280653d 100644 --- a/src/Humanizer/OrdinalizeExtensions.cs +++ b/src/Humanizer/OrdinalizeExtensions.cs @@ -1,6 +1,4 @@ -using Humanizer.Configuration; - -namespace Humanizer +namespace Humanizer { /// /// Ordinalize extensions diff --git a/src/Humanizer/TimeOnlyToClockNotationExtensions.cs b/src/Humanizer/TimeOnlyToClockNotationExtensions.cs index 5a3278d68..c61d22867 100644 --- a/src/Humanizer/TimeOnlyToClockNotationExtensions.cs +++ b/src/Humanizer/TimeOnlyToClockNotationExtensions.cs @@ -1,7 +1,5 @@ #if NET6_0_OR_GREATER -using Humanizer.Configuration; - namespace Humanizer { /// diff --git a/src/Humanizer/TimeSpanHumanizeExtensions.cs b/src/Humanizer/TimeSpanHumanizeExtensions.cs index afda3fa51..db0f4bc48 100644 --- a/src/Humanizer/TimeSpanHumanizeExtensions.cs +++ b/src/Humanizer/TimeSpanHumanizeExtensions.cs @@ -1,8 +1,4 @@ -using Humanizer.Configuration; -using Humanizer.Localisation; -using Humanizer.Localisation.Formatters; - -namespace Humanizer +namespace Humanizer { /// /// Humanizes TimeSpan into human readable form diff --git a/src/Humanizer/TimeUnitToSymbolExtensions.cs b/src/Humanizer/TimeUnitToSymbolExtensions.cs index 7d5e51f2a..209d4b68a 100644 --- a/src/Humanizer/TimeUnitToSymbolExtensions.cs +++ b/src/Humanizer/TimeUnitToSymbolExtensions.cs @@ -1,7 +1,4 @@ -using Humanizer.Localisation; -using Humanizer.Configuration; - -namespace Humanizer +namespace Humanizer { /// /// Transform a time unit into a symbol; e.g. => "a"