Skip to content

Commit

Permalink
- Fix a bug in using arabic digit
Browse files Browse the repository at this point in the history
- Create TestProject with NUnit
  • Loading branch information
Mds92 committed Jan 12, 2016
1 parent fa7a020 commit fdfd327
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ConsoleApplication1/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private static void Test1()

private static void Test2()
{
PersianDateTime persianDateTime = PersianDateTime.Parse("1394/02/02 12:40:50:312");
PersianDateTime persianDateTime = PersianDateTime.Parse("1394/02/٠٦ 12:40:50:312");
persianDateTime.EnglishNumber = true;

var date = persianDateTime.Date;
Expand Down
7 changes: 1 addition & 6 deletions MD.PersianDateTime.Tests/Extensions/StringBasedExtTest.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MD.PersianDateTime.Extensions;
using MD.PersianDateTime.Extensions;
using NUnit.Framework;

namespace MD.PersianDateTime.Tests.Extensions
Expand Down
7 changes: 5 additions & 2 deletions MD.PersianDateTime.Tests/MD.PersianDateTime.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework, Version=3.0.5813.39031, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Users\Administrator\Desktop\nunit.framework.dll</HintPath>
<HintPath>..\packages\NUnit.3.0.1\lib\net45\nunit.framework.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand All @@ -52,6 +52,9 @@
<Name>MD.PersianDateTime</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
4 changes: 4 additions & 0 deletions MD.PersianDateTime.Tests/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NUnit" version="3.0.1" targetFramework="net45" />
</packages>

0 comments on commit fdfd327

Please sign in to comment.