From fa29cf5c5010f7c3e83494786be1b0c11c663e6d Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Tue, 14 Apr 2009 10:00:13 +0000 Subject: Update svn properties. --- OpenSim/Framework/Tests/AssetBaseTest.cs | 98 ++++++++++++++++---------------- 1 file changed, 49 insertions(+), 49 deletions(-) (limited to 'OpenSim/Framework/Tests/AssetBaseTest.cs') diff --git a/OpenSim/Framework/Tests/AssetBaseTest.cs b/OpenSim/Framework/Tests/AssetBaseTest.cs index 800b41b..f5f15dc 100644 --- a/OpenSim/Framework/Tests/AssetBaseTest.cs +++ b/OpenSim/Framework/Tests/AssetBaseTest.cs @@ -1,49 +1,49 @@ -using System; -using System.Collections.Generic; -using System.Text; -using NUnit.Framework; -using OpenMetaverse; - -namespace OpenSim.Framework.Tests -{ - [TestFixture] - public class AssetBaseTest - { - [Test] - public void TestContainsReferences() - { - TestContainsReferences(AssetType.Bodypart, true); - TestContainsReferences(AssetType.Clothing, true); - - TestContainsReferences(AssetType.Animation, false); - TestContainsReferences(AssetType.CallingCard, false); - TestContainsReferences(AssetType.Folder , false); - TestContainsReferences(AssetType.Gesture , false); - TestContainsReferences(AssetType.ImageJPEG , false); - TestContainsReferences(AssetType.ImageTGA , false); - TestContainsReferences(AssetType.Landmark , false); - TestContainsReferences(AssetType.LostAndFoundFolder, false); - TestContainsReferences(AssetType.LSLBytecode, false); - TestContainsReferences(AssetType.LSLText, false); - TestContainsReferences(AssetType.Notecard, false); - TestContainsReferences(AssetType.Object, false); - TestContainsReferences(AssetType.RootFolder, false); - TestContainsReferences(AssetType.Simstate, false); - TestContainsReferences(AssetType.SnapshotFolder, false); - TestContainsReferences(AssetType.Sound, false); - TestContainsReferences(AssetType.SoundWAV, false); - TestContainsReferences(AssetType.Texture, false); - TestContainsReferences(AssetType.TextureTGA, false); - TestContainsReferences(AssetType.TrashFolder, false); - TestContainsReferences(AssetType.Unknown, false); - } - - private void TestContainsReferences(AssetType assetType, bool expected) - { - AssetBase asset = new AssetBase(); - asset.Type = (sbyte)assetType; - bool actual = asset.ContainsReferences; - Assert.AreEqual(expected, actual, "Expected "+assetType+".ContainsReferences to be "+expected+" but was "+actual+"."); - } - } -} +using System; +using System.Collections.Generic; +using System.Text; +using NUnit.Framework; +using OpenMetaverse; + +namespace OpenSim.Framework.Tests +{ + [TestFixture] + public class AssetBaseTest + { + [Test] + public void TestContainsReferences() + { + TestContainsReferences(AssetType.Bodypart, true); + TestContainsReferences(AssetType.Clothing, true); + + TestContainsReferences(AssetType.Animation, false); + TestContainsReferences(AssetType.CallingCard, false); + TestContainsReferences(AssetType.Folder , false); + TestContainsReferences(AssetType.Gesture , false); + TestContainsReferences(AssetType.ImageJPEG , false); + TestContainsReferences(AssetType.ImageTGA , false); + TestContainsReferences(AssetType.Landmark , false); + TestContainsReferences(AssetType.LostAndFoundFolder, false); + TestContainsReferences(AssetType.LSLBytecode, false); + TestContainsReferences(AssetType.LSLText, false); + TestContainsReferences(AssetType.Notecard, false); + TestContainsReferences(AssetType.Object, false); + TestContainsReferences(AssetType.RootFolder, false); + TestContainsReferences(AssetType.Simstate, false); + TestContainsReferences(AssetType.SnapshotFolder, false); + TestContainsReferences(AssetType.Sound, false); + TestContainsReferences(AssetType.SoundWAV, false); + TestContainsReferences(AssetType.Texture, false); + TestContainsReferences(AssetType.TextureTGA, false); + TestContainsReferences(AssetType.TrashFolder, false); + TestContainsReferences(AssetType.Unknown, false); + } + + private void TestContainsReferences(AssetType assetType, bool expected) + { + AssetBase asset = new AssetBase(); + asset.Type = (sbyte)assetType; + bool actual = asset.ContainsReferences; + Assert.AreEqual(expected, actual, "Expected "+assetType+".ContainsReferences to be "+expected+" but was "+actual+"."); + } + } +} -- cgit v1.1