forked from sendgrid/sendgrid-csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRequiredFilesExistTest.cs
108 lines (91 loc) · 2.71 KB
/
RequiredFilesExistTest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
namespace SendGrid.Tests
{
using System.IO;
using Xunit;
public class TestRequiredFilesExist
{
// ./Docker or docker/Docker
public void checkDockerExists() {
bool dockerExists = File.Exists("./Dockerfile") ||
File.Exists("./docker/Dockerfile");
Assert.True(dockerExists);
}
// ./docker-compose.yml or ./docker/docker-compose.yml
public void checkDockerComposeExists()
{
bool dockerComposeExists = File.Exists("./docker-compose.yml") ||
File.Exists("./docker/docker-compose.yml");
Assert.True(dockerComposeExists);
}
// ./.env_sample
public void checkEnvSampleExists()
{
Assert.True(File.Exists("./.env_sample"));
}
// ./.gitignore
public void checkGitIgnoreExists()
{
Assert.True(File.Exists("./.gitignore"));
}
// ./.travis.yml
public void checkTravisExists()
{
Assert.True(File.Exists("./.travis.yml"));
}
// ./.codeclimate.yml
public void checkCodeClimateExists()
{
Assert.True(File.Exists("./.codeclimate.yml"));
}
// ./CHANGELOG.md
public void checkChangelogExists()
{
Assert.True(File.Exists("./CHANGELOG.md"));
}
// ./CODE_OF_CONDUCT.md
public void checkCodeOfConductExists()
{
Assert.True(File.Exists("./CODE_OF_CONDUCT.md"));
}
// ./CONTRIBUTING.md
public void checkContributingGuideExists()
{
Assert.True(File.Exists("./CONTRIBUTING.md"));
}
// ./ISSUE_TEMPLATE.md
public void checkIssuesTemplateExists()
{
Assert.True(File.Exists("./ISSUE_TEMPLATE.md"));
}
// ./LICENSE
public void checkLicenseExists()
{
Assert.True(File.Exists("./LICENSE"));
}
// ./PULL_REQUEST_TEMPLATE.md
public void checkPullRequestExists()
{
Assert.True(File.Exists("./PULL_REQUEST_TEMPLATE.md"));
}
// ./README.md
public void checkReadMeExists()
{
Assert.True(File.Exists("./README.md"));
}
// ./TROUBLESHOOTING.md
public void checkTroubleShootingGuideExists()
{
Assert.True(File.Exists("./TROUBLESHOOTING.md"));
}
// ./USAGE.md
public void checkUsageGuideExists()
{
Assert.True(File.Exists("./USAGE.md"));
}
// ./USE_CASES.md
public void checkUseCases()
{
Assert.True(File.Exists("./USE_CASES.md"));
}
}
}