forked from ClearMeasure/AliaSQL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSqlFilesTester.cs
More file actions
25 lines (21 loc) · 809 Bytes
/
Copy pathSqlFilesTester.cs
File metadata and controls
25 lines (21 loc) · 809 Bytes
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
using AliaSQL.Core;
using AliaSQL.Core.Services.Impl;
using NUnit.Framework;
namespace AliaSQL.UnitTests
{
[TestFixture]
public class SqlFilesTester
{
[Test]
public void All_sql_files_should_be_included_as_embedded_resources()
{
string assembly = SqlDatabaseManager.SQL_FILE_ASSEMBLY;
string template = SqlDatabaseManager.SQL_FILE_TEMPLATE;
IResourceFileLocator locator = new ResourceFileLocator();
Assert.That(locator.FileExists(assembly, string.Format(template, "CreateSchema")));
Assert.That(locator.FileExists(assembly, string.Format(template, "CreateTestDataSchema")));
Assert.That(locator.FileExists(assembly, string.Format(template, "DropConnections")));
Assert.That(locator.FileExists(assembly, string.Format(template, "VersionDatabase")));
}
}
}