From 5141982b199ec01a464e98c84b546b2b2a0e1fea Mon Sep 17 00:00:00 2001 From: MehdiK Date: Tue, 4 Feb 2014 16:13:40 +0330 Subject: [PATCH] added missing arabic test file to the project --- src/Humanizer.Tests/Humanizer.Tests.csproj | 1 + src/Humanizer/NumberToWordsExtension.cs | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Humanizer.Tests/Humanizer.Tests.csproj b/src/Humanizer.Tests/Humanizer.Tests.csproj index 5d5c5e2cd..5d01ef2c6 100644 --- a/src/Humanizer.Tests/Humanizer.Tests.csproj +++ b/src/Humanizer.Tests/Humanizer.Tests.csproj @@ -72,6 +72,7 @@ + diff --git a/src/Humanizer/NumberToWordsExtension.cs b/src/Humanizer/NumberToWordsExtension.cs index 62ccf9f5b..5169eb067 100644 --- a/src/Humanizer/NumberToWordsExtension.cs +++ b/src/Humanizer/NumberToWordsExtension.cs @@ -20,10 +20,8 @@ public static string ToWords(this int number) { case "ar": return ToArabicWords(number); - case "en": - return ToEnglishWords(number); default: - throw new Exception(); + return ToEnglishWords(number); } }