public void test_spine_processor_is_valid() { var filepath = $"{TestContext.CurrentContext.TestDirectory}\\Assets\\spineboy.spgr"; var impoter = new SpineContentImporter().Import(filepath, new TestContentImporterContext()); var processor = new SpineContentProcessor().Process(impoter, new TestContentProcessorContext(TestContext.CurrentContext.TestDirectory)); Assert.IsFalse(File.Exists(impoter.TempTexturePath)); }
public void test_spine_importer_zip_is_valid() { var filepath = $"{TestContext.CurrentContext.TestDirectory}\\Assets\\spineboy.zip"; var impoter = new SpineContentImporter().Import(filepath, new TestContentImporterContext()); Assert.IsTrue(impoter.Atlas.Contains(@"spineboy.png")); Assert.IsTrue(!string.IsNullOrEmpty(impoter.TempTexturePath)); }