コード例 #1
0
        public void Setup()
        {
            TestCapability.CleanupCache();
            TestCapability.SetupCacheAndChattel();

            ConfigSingleton.ValidTypes.Add(49);

            // Using hardcoded GUIDs to make debugging easier.

            _knownMeshAsset = TestCapability.CreateAndCacheAsset(
                "_knownMeshAsset",
                49,
                new byte[] { 0xfa },                 // TODO: find out what mesh's header is if any.
                Guid.Parse("05000000-0000-0000-0000-000000000000")
                );

            _knownTextureAsset = TestCapability.CreateAndCacheAsset(
                "_knownTextureAsset",
                0,
                new byte[] { 0x00, 0x00, 0x00, 0x0C, 0x6A, 0x50, 0x20, 0x20, 0x0D, 0x0A, 0x87, 0x0A },                 // JPEG-2000 magic numbers
                Guid.Parse("01000000-0000-0000-0000-000000000000")
                );


            ConfigSingleton.AdminToken = ADMIN_TOKEN;
            _capAdmin = new CapAdministration();
        }
コード例 #2
0
 public void Cleanup()
 {
     TestCapability.CleanupCache();
 }