FileExists() public méthode

public FileExists ( string assembly, string resourceName ) : bool
assembly string
resourceName string
Résultat bool
Exemple #1
0
		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")));

		}