Skip to content

Commit 11fb33e

Browse files
author
Matt Bernier
authored
Merge pull request #50 from blitzerpl/license.md-date-range-test
Update the license file to have the correct date range #46; Add a uni…
2 parents 75907f7 + 34fd9c9 commit 11fb33e

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016-2017 SendGrid, Inc.
3+
Copyright (c) 2012-2017 SendGrid, Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

UnitTest/UnitTest.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
using System.Text;
88
using System.Net;
99
using System.Threading;
10+
using System.IO;
11+
using System.Linq;
1012

1113
namespace UnitTest
1214
{
@@ -95,4 +97,16 @@ public async void TestMethodCallWithCancellationToken()
9597
Response response = await test_client.get(cancellationToken: cancellationTokenSource.Token);
9698
}
9799
}
100+
101+
[TestFixture]
102+
public class TestRepositoryFiles
103+
{
104+
[Test]
105+
public void TestLicenseEndYear()
106+
{
107+
string line = File.ReadLines(@"..\..\..\LICENSE.txt").Skip(2).Take(1).First();
108+
109+
Assert.AreEqual(DateTime.Now.Year.ToString(), line.Substring(19, 4));
110+
}
111+
}
98112
}

0 commit comments

Comments
 (0)