mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing unit test
--HG-- branch : 1.x
This commit is contained in:
@@ -92,14 +92,14 @@ namespace Orchard.Tests.Modules.ImportExport.Services {
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ImportFailsWhenRecipeContainsNonImportSteps() {
|
||||
Assert.Throws(typeof(InvalidOperationException), () => _importExportService.Import(
|
||||
@"<Orchard>
|
||||
<Recipe>
|
||||
<Name>MyModuleInstaller</Name>
|
||||
</Recipe>
|
||||
<Module name=""MyModule"" />
|
||||
</Orchard>"));
|
||||
public void ImportDoesntFailsWhenRecipeContainsNonImportSteps() {
|
||||
Assert.DoesNotThrow(() => _importExportService.Import(
|
||||
@"<Orchard>
|
||||
<Recipe>
|
||||
<Name>MyModuleInstaller</Name>
|
||||
</Recipe>
|
||||
<Module name=""MyModule"" />
|
||||
</Orchard>"));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user