29 using System.Collections.Generic;
31 using System.Reflection;
32 using System.Threading;
34 using NUnit.Framework;
36 using OpenMetaverse.Assets;
37 using OpenSim.Framework;
38 using OpenSim.Region.CoreModules.World.Media.Moap;
39 using OpenSim.Region.Framework.Scenes;
40 using OpenSim.Region.Framework.Scenes.Serialization;
41 using OpenSim.Tests.Common;
58 SceneHelpers.SetupSceneModules(m_scene, m_module);
64 TestHelpers.InMethod();
68 MediaEntry me =
new MediaEntry();
70 m_module.SetMediaEntry(part, 1, me);
71 m_module.ClearMediaEntry(part, 1);
73 Assert.That(part.Shape.Media[1], Is.EqualTo(null));
77 Assert.That(part.MediaUrl, Is.EqualTo(
"x-mv:0000000001/" + UUID.Zero));
82 Assert.That(part.Shape.Textures.FaceTextures[1], Is.Null);
88 TestHelpers.InMethod();
90 string homeUrl =
"opensimulator.org";
93 MediaEntry me =
new MediaEntry() { HomeURL = homeUrl };
95 m_module.SetMediaEntry(part, 1, me);
97 Assert.That(part.Shape.Media[1].HomeURL, Is.EqualTo(homeUrl));
98 Assert.That(part.MediaUrl, Is.EqualTo(
"x-mv:0000000000/" + UUID.Zero));
99 Assert.That(part.Shape.Textures.FaceTextures[1].MediaFlags, Is.True);
Helpers for setting up scenes.
Interactive OpenSim region server