FbxObjectTest.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. // ***********************************************************************
  2. // Copyright (c) 2017 Unity Technologies. All rights reserved.
  3. //
  4. // Licensed under the ##LICENSENAME##.
  5. // See LICENSE.md file in the project root for full license information.
  6. // ***********************************************************************
  7. using NUnit.Framework;
  8. using Autodesk.Fbx;
  9. namespace Autodesk.Fbx.UnitTests
  10. {
  11. public class FbxObjectTest : Base<FbxObject>
  12. {
  13. [Test]
  14. public void TestUTF8()
  15. {
  16. // make sure japanese survives the round-trip.
  17. string katakana = "片仮名";
  18. FbxObject obj = FbxObject.Create(Manager, katakana);
  19. Assert.AreEqual(katakana, obj.GetName());
  20. }
  21. [Test]
  22. public void TestGetManager ()
  23. {
  24. using (FbxObject obj = FbxObject.Create (Manager, "")) {
  25. FbxManager fbxManager2 = obj.GetFbxManager();
  26. Assert.AreEqual(Manager, fbxManager2);
  27. }
  28. }
  29. }
  30. }