From 0d7f6d5fedac84e63cd91cfc5d535eef72dc3cf5 Mon Sep 17 00:00:00 2001 From: eugene-hong <58686228+eugene-doobu@users.noreply.github.com> Date: Wed, 18 Dec 2024 14:56:08 +0900 Subject: [PATCH] add summary --- .../Action/FaucetRuneTest.cs | 4 ++++ .../Manager/Contents/CreateAvatarManager.cs | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/.Lib9c.DevExtensions.Tests/Action/FaucetRuneTest.cs b/.Lib9c.DevExtensions.Tests/Action/FaucetRuneTest.cs index 5501eb79e1..70e9e86774 100644 --- a/.Lib9c.DevExtensions.Tests/Action/FaucetRuneTest.cs +++ b/.Lib9c.DevExtensions.Tests/Action/FaucetRuneTest.cs @@ -113,6 +113,10 @@ private class FaucetRuneInfoGenerator : IEnumerable }, }; + /// + /// Returns an enumerator that iterates through the collection. + /// + /// data for each test case public IEnumerator GetEnumerator() { return _data.GetEnumerator(); diff --git a/Lib9c.DevExtensions/Manager/Contents/CreateAvatarManager.cs b/Lib9c.DevExtensions/Manager/Contents/CreateAvatarManager.cs index c5980296ca..95f2db314d 100644 --- a/Lib9c.DevExtensions/Manager/Contents/CreateAvatarManager.cs +++ b/Lib9c.DevExtensions/Manager/Contents/CreateAvatarManager.cs @@ -16,8 +16,19 @@ namespace Lib9c.DevExtensions.Manager.Contents { + /// + /// Manager class for creating an avatar for testing. + /// public static class CreateAvatarManager { + /// + /// Create an avatar and world state for testing. + /// + /// action context + /// avatar address + /// base world state + /// avatar state + /// world state with dev avatar public static IWorld ExecuteDevExtensions(IActionContext ctx, Address avatarAddress, IWorld states, AvatarState avatarState) { // prepare for test when executing on editor mode. @@ -138,6 +149,9 @@ private static void EnhanceEquipmentToMaxLevel(Equipment equipment, EnhancementC } } + /// + /// Add test items to the avatar. + /// public static void AddTestItems( IActionContext ctx, AvatarState avatarState,