Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
boscohyun committed Nov 20, 2024
1 parent 58b7a8c commit f7c8303
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .Lib9c.Tests/Action/ExceptionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ public ExceptionTest()
MessagePackSerializer.DefaultOptions = options;
}

/// <summary>
/// Get all exceptions defined in the Libplanet namespace.
/// </summary>
/// <returns>Enumerable object array that contain an exception object.</returns>
public static IEnumerable<object[]> GetLibplanetExceptions()
{
var t = typeof(Exception);
Expand Down Expand Up @@ -63,6 +67,10 @@ e.Namespace is not null &&
}
}

/// <summary>
/// Get all exceptions defined in the Lib9c namespace.
/// </summary>
/// <returns>Enumerable object array that contain an exception object.</returns>
public static IEnumerable<object[]> GetLib9cExceptions()
{
var t = typeof(Exception);
Expand All @@ -81,6 +89,10 @@ e.Namespace is not null &&
}
}

/// <summary>
/// Tests weather Libplanet and Lib9c exceptions are serializable using MessagePack.
/// </summary>
/// <param name="excType">The type of the exception being tested.</param>
[Theory]
[MemberData(nameof(GetLibplanetExceptions))]
[MemberData(nameof(GetLib9cExceptions))]
Expand Down

0 comments on commit f7c8303

Please sign in to comment.