Skip to content

Commit

Permalink
Add initial test for issue 597.
Browse files Browse the repository at this point in the history
  • Loading branch information
hangy committed Nov 21, 2016
1 parent 289f97f commit c190e9d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
<Compile Include="$(MSBuildThisFileDirectory)Localisation\he\NumberToWordsTests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Localisation\he\TimeSpanHumanizeTests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Localisation\hr\DateHumanizeTests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Localisation\hr\TimeSpanHumanizeTests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Localisation\hu\DateHumanizeTests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Localisation\hu\TimeSpanHumanizeTests.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Localisation\id\DateHumanizeTests.cs" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using Xunit;

namespace Humanizer.Tests.Localisation.hr
{
[UseCulture("hr-HR")]
public class TimeSpanHumanizeTests
{
[Theory]
[InlineData(1, "1 dan")]
[InlineData(2, "2 dana")]
public void Days(int days, string expected)
{
Assert.Equal(expected, TimeSpan.FromDays(days).Humanize());
}
}
}

0 comments on commit c190e9d

Please sign in to comment.