Humanizer and File Name Extension Bug
This commit is contained in:
@ -28,6 +28,7 @@
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="coverlet.collector" Version="3.1.0" />
|
||||
<PackageReference Include="Humanizer.Core" Version="2.13.14" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="6.0.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.1" />
|
||||
|
@ -1,3 +1,4 @@
|
||||
using Humanizer;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using Phares.Shared;
|
||||
@ -122,6 +123,13 @@ public class UnitTestCalculations
|
||||
Assert.IsTrue($"({l}{d.ToString("0.00")[1..]})" == "(637967784888423594.45)");
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void TestMethodHumanize()
|
||||
{
|
||||
string successfull = $"_ {"ManualCopy".Humanize(LetterCasing.Title)} Successfull";
|
||||
Assert.IsTrue(successfull == "_ Manual Copy Successfull");
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void TestMethodDirectory()
|
||||
{
|
||||
|
Reference in New Issue
Block a user