Latest agg-sharp, use simple AssetManager

This commit is contained in:
John Lewin 2018-03-08 10:36:00 -08:00
parent ad38cc5a98
commit 00ad103e36
3 changed files with 10 additions and 2 deletions

View file

@ -70,6 +70,8 @@ namespace MatterHackers.PolygonMesh.UnitTests
[Test]
public void CreatesAndLinksAmfsForUnsavedMeshes()
{
AssetObject3D.AssetManager = new MockAssetManager();
var scene = new InteractiveScene();
scene.Children.Add(new Object3D
{
@ -105,6 +107,7 @@ namespace MatterHackers.PolygonMesh.UnitTests
AggContext.StaticData = new FileSystemStaticData(TestContext.CurrentContext.ResolveProjectPath(4, "StaticData"));
MatterControlUtilities.OverrideAppDataLocation(TestContext.CurrentContext.ResolveProjectPath(4));
#endif
AssetObject3D.AssetManager = new MockAssetManager();
var sceneContext = new BedConfig(null);
@ -122,7 +125,7 @@ namespace MatterHackers.PolygonMesh.UnitTests
Directory.CreateDirectory(Object3D.AssetsPath);
// Empty temp folder
foreach (string tempFile in Directory.GetFiles(tempPath).ToList())
foreach (string tempFile in Directory.GetFiles(Object3D.AssetsPath).ToList())
{
File.Delete(tempFile);
}