Only validate Add behavior on containers that support it
- Fixes AddFiresContentChangedEvent failure on PlatingHistoryContainer - Issue MatterHackers/MCCentral#2256 Investigate 32 failing tests
This commit is contained in:
parent
694ffaa2f1
commit
cc3df021c6
1 changed files with 5 additions and 0 deletions
|
|
@ -175,6 +175,11 @@ namespace MatterControl.Tests.MatterControl
|
||||||
|
|
||||||
if (Activator.CreateInstance(containerType, args.ToArray()) is ILibraryWritableContainer libraryContainer)
|
if (Activator.CreateInstance(containerType, args.ToArray()) is ILibraryWritableContainer libraryContainer)
|
||||||
{
|
{
|
||||||
|
if (!libraryContainer.AllowAction(ContainerActions.AddItems))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (libraryContainer is ZipMemoryContainer zipContainer)
|
if (libraryContainer is ZipMemoryContainer zipContainer)
|
||||||
{
|
{
|
||||||
zipContainer.Path = TestContext.CurrentContext.ResolveProjectPath(4, "Tests", "TestData", "TestParts", "Batman.zip");
|
zipContainer.Path = TestContext.CurrentContext.ResolveProjectPath(4, "Tests", "TestData", "TestParts", "Batman.zip");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue