Skip to content

Commit

Permalink
Merge pull request #53 from adlan/fix-license-path-check
Browse files Browse the repository at this point in the history
Make sure LICENSE file test works cross-platform
  • Loading branch information
Matt Bernier authored Oct 31, 2017
2 parents 0c9bdde + 0d1169d commit c31a9c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UnitTest/UnitTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ public class TestRepositoryFiles
[Test]
public void TestLicenseEndYear()
{
string line = File.ReadLines(@"..\..\..\LICENSE.txt").Skip(2).Take(1).First();
var licensePath = Path.Combine("..", "..", "..", "LICENSE.txt");
string line = File.ReadLines(licensePath).Skip(2).Take(1).First();

Assert.AreEqual(DateTime.Now.Year.ToString(), line.Substring(19, 4));
}
Expand Down

0 comments on commit c31a9c4

Please sign in to comment.