diff --git a/LICENSE.txt b/LICENSE.txt index 0f96c54..53c76d3 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016-2017 SendGrid, Inc. +Copyright (c) 2012-2017 SendGrid, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/UnitTest/UnitTest.cs b/UnitTest/UnitTest.cs index d0a224a..95170fb 100644 --- a/UnitTest/UnitTest.cs +++ b/UnitTest/UnitTest.cs @@ -7,6 +7,8 @@ using System.Text; using System.Net; using System.Threading; +using System.IO; +using System.Linq; namespace UnitTest { @@ -95,4 +97,16 @@ public async void TestMethodCallWithCancellationToken() Response response = await test_client.get(cancellationToken: cancellationTokenSource.Token); } } + + [TestFixture] + public class TestRepositoryFiles + { + [Test] + public void TestLicenseEndYear() + { + string line = File.ReadLines(@"..\..\..\LICENSE.txt").Skip(2).Take(1).First(); + + Assert.AreEqual(DateTime.Now.Year.ToString(), line.Substring(19, 4)); + } + } }