public void GetPathMaterialOk() { ObjMaterialsLoader objMaterialLoader = new ObjMaterialsLoader(); objMaterialLoader.SetDirectoryPathMaterial(_fullMaterialPath); string pathMaterial = objMaterialLoader.MaterialPath("\\cubotexturacaja.mtl"); Assert.IsTrue(File.Exists(pathMaterial)); }
public void LoadObjMaterialFromFileOk() { TGCObjLoader tgcObjLoader = new TGCObjLoader(); var lines = File.ReadAllLines(_fullMaterialPath); tgcObjLoader.GetListOfMaterials(lines, _fullMaterialPath); ObjMaterialsLoader objMaterialLoader = new ObjMaterialsLoader(); objMaterialLoader.LoadMaterialsFromFiles(_fullMaterialPath, tgcObjLoader.ListMtllib); Assert.NotNull(objMaterialLoader.ListObjMaterialMesh.First()); }