diff --git a/Tests/MonoDevelop.Xml.Tests.csproj b/Tests/MonoDevelop.Xml.Tests.csproj index fad9da2..a92553e 100644 --- a/Tests/MonoDevelop.Xml.Tests.csproj +++ b/Tests/MonoDevelop.Xml.Tests.csproj @@ -13,7 +13,8 @@ - + + @@ -23,6 +24,10 @@ + + + + diff --git a/Tests/Utils/SchemaIncludeTestFixtureHelper.cs b/Tests/Utils/SchemaIncludeTestFixtureHelper.cs index fc5ef86..d8b6067 100644 --- a/Tests/Utils/SchemaIncludeTestFixtureHelper.cs +++ b/Tests/Utils/SchemaIncludeTestFixtureHelper.cs @@ -19,12 +19,12 @@ namespace MonoDevelop.Xml.Tests.Utils SchemaIncludeTestFixtureHelper() { } - + static SchemaIncludeTestFixtureHelper() { schemaPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "XmlEditorTests"); } - + /// /// Creates a schema with the given filename /// @@ -44,19 +44,20 @@ namespace MonoDevelop.Xml.Tests.Utils /// /// The main schema's xml. /// The included schema's xml. - internal static XmlSchemaCompletionProvider CreateSchemaCompletionDataObject (string mainSchema, string includedSchema) + internal static XmlSchemaCompletionProvider CreateSchemaCompletionDataObject(string mainSchema, string includedSchema) { - if (!Directory.Exists (schemaPath)) { - Directory.CreateDirectory (schemaPath); + if (!Directory.Exists(schemaPath)) + { + Directory.CreateDirectory(schemaPath); } - CreateSchema (Path.Combine (schemaPath, mainSchemaFileName), mainSchema); - CreateSchema (Path.Combine (schemaPath, includedSchemaFileName), includedSchema); + CreateSchema(Path.Combine(schemaPath, mainSchemaFileName), mainSchema); + CreateSchema(Path.Combine(schemaPath, includedSchemaFileName), includedSchema); // Parse schema. - string schemaFileName = Path.Combine (schemaPath, mainSchemaFileName); - string baseUri = XmlSchemaCompletionProvider.GetUri (schemaFileName); - return new XmlSchemaCompletionProvider (baseUri, schemaFileName); + string schemaFileName = Path.Combine(schemaPath, mainSchemaFileName); + string baseUri = XmlSchemaCompletionProvider.GetUri(schemaFileName); + return new XmlSchemaCompletionProvider(baseUri, schemaFileName); } /// @@ -66,16 +67,19 @@ namespace MonoDevelop.Xml.Tests.Utils { // Delete the created schemas. string fileName = Path.Combine(schemaPath, mainSchemaFileName); - if (File.Exists(fileName)) { + if (File.Exists(fileName)) + { File.Delete(fileName); } - + fileName = Path.Combine(schemaPath, includedSchemaFileName); - if (File.Exists(fileName)) { + if (File.Exists(fileName)) + { File.Delete(fileName); } - - if (Directory.Exists(schemaPath)) { + + if (Directory.Exists(schemaPath)) + { Directory.Delete(schemaPath); } }