diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs b/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs index d00a177..d4aaf99 100644 --- a/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs +++ b/OpenSim/Data/SQLite/Tests/SQLiteUserTest.cs | |||
@@ -30,6 +30,7 @@ using System.Collections.Generic; | |||
30 | using NUnit.Framework; | 30 | using NUnit.Framework; |
31 | using NUnit.Framework.SyntaxHelpers; | 31 | using NUnit.Framework.SyntaxHelpers; |
32 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
33 | using OpenSim.Data.Tests; | ||
33 | using OpenSim.Data.SQLite; | 34 | using OpenSim.Data.SQLite; |
34 | using OpenSim.Region.Environment.Scenes; | 35 | using OpenSim.Region.Environment.Scenes; |
35 | using OpenMetaverse; | 36 | using OpenMetaverse; |
@@ -37,25 +38,18 @@ using OpenMetaverse; | |||
37 | namespace OpenSim.Data.SQLite.Tests | 38 | namespace OpenSim.Data.SQLite.Tests |
38 | { | 39 | { |
39 | [TestFixture] | 40 | [TestFixture] |
40 | public class SQLiteUserTest | 41 | public class SQLiteUserTest : BasicUserTest |
41 | { | 42 | { |
42 | public string file = "usertest.db"; | 43 | public string file = "usertest.db"; |
43 | public string connect; | 44 | public string connect; |
44 | public SQLiteUserData db; | ||
45 | public UUID uuid1; | ||
46 | public UUID uuid2; | ||
47 | public UUID uuid3; | ||
48 | |||
49 | 45 | ||
50 | [TestFixtureSetUp] | 46 | [TestFixtureSetUp] |
51 | public void Init() | 47 | public void Init() |
52 | { | 48 | { |
49 | SuperInit(); | ||
53 | connect = "URI=file:" + file + ",version=3"; | 50 | connect = "URI=file:" + file + ",version=3"; |
54 | db = new SQLiteUserData(); | 51 | db = new SQLiteUserData(); |
55 | db.Initialise(connect); | 52 | db.Initialise(connect); |
56 | uuid1 = UUID.Random(); | ||
57 | uuid2 = UUID.Random(); | ||
58 | uuid3 = UUID.Random(); | ||
59 | } | 53 | } |
60 | 54 | ||
61 | [TestFixtureTearDown] | 55 | [TestFixtureTearDown] |
@@ -63,11 +57,5 @@ namespace OpenSim.Data.SQLite.Tests | |||
63 | { | 57 | { |
64 | System.IO.File.Delete(file); | 58 | System.IO.File.Delete(file); |
65 | } | 59 | } |
66 | |||
67 | [Test] | ||
68 | public void T001_LoadEmpty() | ||
69 | { | ||
70 | Assert.That(db.GetUserByUUID(uuid1), Is.Null); | ||
71 | } | ||
72 | } | 60 | } |
73 | } \ No newline at end of file | 61 | } \ No newline at end of file |