From c203fae26bc30198989df7d8c85084dc69c25be8 Mon Sep 17 00:00:00 2001 From: "Teravus Ovares (Dan Olivares)" Date: Sat, 18 Sep 2010 02:49:42 -0400 Subject: [PATCH] * Covered the type converters in SLUtil with unit tests. * Does anyone have an example raw notecard to look at and test the notecard parser? --- OpenSim/Framework/Tests/UtilTest.cs | 58 ++++++++++++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/OpenSim/Framework/Tests/UtilTest.cs b/OpenSim/Framework/Tests/UtilTest.cs index d04cbc6094..89f5c0cba9 100644 --- a/OpenSim/Framework/Tests/UtilTest.cs +++ b/OpenSim/Framework/Tests/UtilTest.cs @@ -172,7 +172,7 @@ namespace OpenSim.Framework.Tests } [Test] - public void SLUtilTests() + public void SLUtilTypeConvertTests() { int[] assettypes = new int[]{-1,0,1,2,3,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22 ,23,24,25,46,47,48}; @@ -227,6 +227,62 @@ namespace OpenSim.Framework.Tests } } + int[] inventorytypes = new int[] {-1,0,1,2,3,6,7,8,9,10,15,17,18,20}; + string[] invcontenttypes = new string[] + { + "application/octet-stream", + "image/x-j2c", + "audio/ogg", + "application/vnd.ll.callingcard", + "application/vnd.ll.landmark", + "application/vnd.ll.primitive", + "application/vnd.ll.notecard", + "application/vnd.ll.folder", + "application/octet-stream", + "application/vnd.ll.lsltext", + "image/x-j2c", + "application/vnd.ll.primitive", + "application/vnd.ll.clothing", + "application/vnd.ll.gesture" + }; + + for (int i=0;i