Skip to content

Commit

Permalink
Add test case for bug #25
Browse files Browse the repository at this point in the history
  • Loading branch information
heldersepu committed Apr 18, 2016
1 parent 61c373f commit 69608e9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions HtmlMinifier.Tests/FileExtensionTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using NUnit.Framework;
using System.Collections.Generic;

namespace HtmlMinifier.Tests
{
[TestFixture]
public class FileExtensionTests
{
[Test]
public void GithubIssue25__ShouldReturnCorrectly()
{
Assert.That("test.html".IsHtmlFile(), Is.True);
Assert.That("codes.js.aspx".IsHtmlFile(), Is.True);

Assert.That("codes.aspx.js".IsHtmlFile(), Is.False);
Assert.That("aspx.codes.js".IsHtmlFile(), Is.False);
}
}
}
1 change: 1 addition & 0 deletions HtmlMinifier.Tests/HtmlMinifier.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<ItemGroup>
<Compile Include="ArgumentsTests.cs" />
<Compile Include="DataHelpers.cs" />
<Compile Include="FileExtensionTests.cs" />
<Compile Include="MinificationTests.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
Expand Down

0 comments on commit 69608e9

Please sign in to comment.