Skip to content

Commit

Permalink
add summary
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-doobu committed Dec 18, 2024
1 parent a5065a9 commit 0d7f6d5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .Lib9c.DevExtensions.Tests/Action/FaucetRuneTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ private class FaucetRuneInfoGenerator : IEnumerable<object[]>
},
};

/// <summary>
/// Returns an enumerator that iterates through the collection.
/// </summary>
/// <returns>data for each test case</returns>
public IEnumerator<object[]> GetEnumerator()
{
return _data.GetEnumerator();
Expand Down
14 changes: 14 additions & 0 deletions Lib9c.DevExtensions/Manager/Contents/CreateAvatarManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,19 @@

namespace Lib9c.DevExtensions.Manager.Contents
{
/// <summary>
/// Manager class for creating an avatar for testing.
/// </summary>
public static class CreateAvatarManager
{
/// <summary>
/// Create an avatar and world state for testing.
/// </summary>
/// <param name="ctx">action context</param>
/// <param name="avatarAddress">avatar address</param>
/// <param name="states">base world state</param>
/// <param name="avatarState">avatar state</param>
/// <returns>world state with dev avatar</returns>
public static IWorld ExecuteDevExtensions(IActionContext ctx, Address avatarAddress, IWorld states, AvatarState avatarState)
{
// prepare for test when executing on editor mode.
Expand Down Expand Up @@ -138,6 +149,9 @@ private static void EnhanceEquipmentToMaxLevel(Equipment equipment, EnhancementC
}
}

/// <summary>
/// Add test items to the avatar.
/// </summary>
public static void AddTestItems(
IActionContext ctx,
AvatarState avatarState,
Expand Down

0 comments on commit 0d7f6d5

Please sign in to comment.