File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
1
The MIT License (MIT)
2
2
3
- Copyright (c) 2016 -2017 SendGrid, Inc.
3
+ Copyright (c) 2012 -2017 SendGrid, Inc.
4
4
5
5
Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 7
7
using System . Text ;
8
8
using System . Net ;
9
9
using System . Threading ;
10
+ using System . IO ;
11
+ using System . Linq ;
10
12
11
13
namespace UnitTest
12
14
{
@@ -95,4 +97,16 @@ public async void TestMethodCallWithCancellationToken()
95
97
Response response = await test_client . get ( cancellationToken : cancellationTokenSource . Token ) ;
96
98
}
97
99
}
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
+ }
98
112
}
You can’t perform that action at this time.
0 commit comments