From 6bb2e91c7f9d8c9851505305bf74c1e5389ebe61 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Tue, 10 Jan 2023 22:48:28 +0100 Subject: [PATCH] chore: add Game test files with comments saying what tests to implement --- .../Modules/CharacterTests.cs | 17 ++++++++++++++ .../Modules/FriendsTests.cs | 16 ++++++++++++++ .../Modules/GroupTests.cs | 17 ++++++++++++++ .../Modules/InventoryTests.cs | 16 ++++++++++++++ .../NosSmooth.Game.Tests/Modules/MapTests.cs | 22 +++++++++++++++++++ .../Modules/SkillTests.cs | 17 ++++++++++++++ 6 files changed, 105 insertions(+) create mode 100644 Tests/NosSmooth.Game.Tests/Modules/CharacterTests.cs create mode 100644 Tests/NosSmooth.Game.Tests/Modules/FriendsTests.cs create mode 100644 Tests/NosSmooth.Game.Tests/Modules/GroupTests.cs create mode 100644 Tests/NosSmooth.Game.Tests/Modules/InventoryTests.cs create mode 100644 Tests/NosSmooth.Game.Tests/Modules/MapTests.cs create mode 100644 Tests/NosSmooth.Game.Tests/Modules/SkillTests.cs diff --git a/Tests/NosSmooth.Game.Tests/Modules/CharacterTests.cs b/Tests/NosSmooth.Game.Tests/Modules/CharacterTests.cs new file mode 100644 index 0000000..97ebe07 --- /dev/null +++ b/Tests/NosSmooth.Game.Tests/Modules/CharacterTests.cs @@ -0,0 +1,17 @@ +// +// CharacterTests.cs +// +// Copyright (c) František Boháček. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +namespace NosSmooth.Game.Tests.Modules; + +/// +/// Test for Game.Character. +/// +public class CharacterTests +{ + // initialized correctly + // data changed correctly + // character death event +} \ No newline at end of file diff --git a/Tests/NosSmooth.Game.Tests/Modules/FriendsTests.cs b/Tests/NosSmooth.Game.Tests/Modules/FriendsTests.cs new file mode 100644 index 0000000..4b3bdb1 --- /dev/null +++ b/Tests/NosSmooth.Game.Tests/Modules/FriendsTests.cs @@ -0,0 +1,16 @@ +// +// FriendsTests.cs +// +// Copyright (c) František Boháček. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +namespace NosSmooth.Game.Tests.Modules; + +/// +/// Test for Game.Friends. +/// +public class FriendsTests +{ + // friends initialized + // friends updated +} \ No newline at end of file diff --git a/Tests/NosSmooth.Game.Tests/Modules/GroupTests.cs b/Tests/NosSmooth.Game.Tests/Modules/GroupTests.cs new file mode 100644 index 0000000..57326cb --- /dev/null +++ b/Tests/NosSmooth.Game.Tests/Modules/GroupTests.cs @@ -0,0 +1,17 @@ +// +// GroupTests.cs +// +// Copyright (c) František Boháček. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +namespace NosSmooth.Game.Tests.Modules; + +/// +/// Tests for Game.Group. +/// +public class GroupTests +{ + // group joined, left events + // correct group members + // hp, mp updated +} \ No newline at end of file diff --git a/Tests/NosSmooth.Game.Tests/Modules/InventoryTests.cs b/Tests/NosSmooth.Game.Tests/Modules/InventoryTests.cs new file mode 100644 index 0000000..410b5b5 --- /dev/null +++ b/Tests/NosSmooth.Game.Tests/Modules/InventoryTests.cs @@ -0,0 +1,16 @@ +// +// InventoryTests.cs +// +// Copyright (c) František Boháček. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +namespace NosSmooth.Game.Tests.Modules; + +/// +/// Tests for Game.Inventory. +/// +public class InventoryTests +{ + // inventory init + // inventory update +} \ No newline at end of file diff --git a/Tests/NosSmooth.Game.Tests/Modules/MapTests.cs b/Tests/NosSmooth.Game.Tests/Modules/MapTests.cs new file mode 100644 index 0000000..f5c3d65 --- /dev/null +++ b/Tests/NosSmooth.Game.Tests/Modules/MapTests.cs @@ -0,0 +1,22 @@ +// +// MapTests.cs +// +// Copyright (c) František Boháček. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +namespace NosSmooth.Game.Tests.Modules; + +/// +/// Tests for Game.CurrentMap. +/// +public class MapTests +{ + // character is on map + // entities loaded + // entities moving + + // death, revive player vs monster + + // pets death, revival + // events death, move, join, leave +} \ No newline at end of file diff --git a/Tests/NosSmooth.Game.Tests/Modules/SkillTests.cs b/Tests/NosSmooth.Game.Tests/Modules/SkillTests.cs new file mode 100644 index 0000000..970773b --- /dev/null +++ b/Tests/NosSmooth.Game.Tests/Modules/SkillTests.cs @@ -0,0 +1,17 @@ +// +// SkillTests.cs +// +// Copyright (c) František Boháček. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. + +namespace NosSmooth.Game.Tests.Modules; + +/// +/// Tests for Game.Skills. +/// +public class SkillTests +{ + // loaded + // changed on morph + // correct levels +} \ No newline at end of file -- 2.48.1