Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MehdiK committed Apr 15, 2014
1 parent b353f33 commit e5c631c
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 32 deletions.
24 changes: 2 additions & 22 deletions src/Humanizer.Tests/OrdinalizeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,7 @@ public void OrdinalizeNumber(int number, string ordinalized)
[InlineData(0)]
[InlineData(1)]
[InlineData(8)]
[InlineData(9)]
[InlineData(10)]
[InlineData(11)]
[InlineData(12)]
[InlineData(23)]
[InlineData(24)]
[InlineData(100)]
[InlineData(101)]
[InlineData(102)]
[InlineData(1001)]
public void OrdinalizeNumberGenderIndifferent(int number)
public void OrdinalizeNumberGenderIsImmaterial(int number)
{
string masculineOrdinalized = number.Ordinalize(GrammaticalGender.Masculine);
string feminineOrdinalized = number.Ordinalize(GrammaticalGender.Feminine);
Expand All @@ -103,17 +93,7 @@ public void OrdinalizeNumberGenderIndifferent(int number)
[InlineData("0")]
[InlineData("1")]
[InlineData("8")]
[InlineData("9")]
[InlineData("10")]
[InlineData("11")]
[InlineData("12")]
[InlineData("23")]
[InlineData("24")]
[InlineData("100")]
[InlineData("101")]
[InlineData("102")]
[InlineData("1001")]
public void OrdinalizeStringGenderIndifferent(string number)
public void OrdinalizeStringGenderIsImmaterial(string number)
{
string masculineOrdinalized = number.Ordinalize(GrammaticalGender.Masculine);
string feminineOrdinalized = number.Ordinalize(GrammaticalGender.Feminine);
Expand Down
8 changes: 4 additions & 4 deletions src/Humanizer/Humanizer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@
<Compile Include="Localisation\NumberToWords\PolishNumberToWordsConverter.cs" />
<Compile Include="Localisation\NumberToWords\RussianNumberToWordsConverter.cs" />
<Compile Include="Localisation\Formatters\HebrewFormatter.cs" />
<Compile Include="Localisation\Ordinalizer\SpanishOrdinalizer.cs" />
<Compile Include="Localisation\Ordinalizer\DefaultOrdinalizer.cs" />
<Compile Include="Localisation\Ordinalizer\EnglishOrdinalizer.cs" />
<Compile Include="Localisation\Ordinalizer\BrazilianPortugueseOrdinalizer.cs" />
<Compile Include="Localisation\Ordinalizers\SpanishOrdinalizer.cs" />
<Compile Include="Localisation\Ordinalizers\DefaultOrdinalizer.cs" />
<Compile Include="Localisation\Ordinalizers\EnglishOrdinalizer.cs" />
<Compile Include="Localisation\Ordinalizers\BrazilianPortugueseOrdinalizer.cs" />
<Compile Include="Localisation\Tense.cs" />
<Compile Include="Localisation\NumberToWords\SpanishNumberToWordsConverter.cs" />
<Compile Include="TimeSpanHumanizeExtensions.cs" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Humanizer.Localisation.Ordinalizer
namespace Humanizer.Localisation.Ordinalizers
{
internal class BrazilianPortugueseOrdinalizer : DefaultOrdinalizer
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Humanizer.Localisation.Ordinalizer
namespace Humanizer.Localisation.Ordinalizers
{
internal class DefaultOrdinalizer
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Humanizer.Localisation.Ordinalizer
namespace Humanizer.Localisation.Ordinalizers
{
internal class EnglishOrdinalizer : DefaultOrdinalizer
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Humanizer.Localisation.Ordinalizer
namespace Humanizer.Localisation.Ordinalizers
{
internal class SpanishOrdinalizer : DefaultOrdinalizer
{
Expand Down
4 changes: 2 additions & 2 deletions src/Humanizer/OrdinalizeExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Humanizer.Localisation.Ordinalizer;
using System;
using System;
using System.Collections.Generic;
using System.Globalization;
using Humanizer.Localisation.Ordinalizers;

namespace Humanizer
{
Expand Down

0 comments on commit e5c631c

Please sign in to comment.