diff --git a/.Lib9c.Tests/Action/ExceptionTest.cs b/.Lib9c.Tests/Action/ExceptionTest.cs index b206b0c6f2..6085d1ad1f 100644 --- a/.Lib9c.Tests/Action/ExceptionTest.cs +++ b/.Lib9c.Tests/Action/ExceptionTest.cs @@ -36,6 +36,10 @@ public ExceptionTest() MessagePackSerializer.DefaultOptions = options; } + /// + /// Get all exceptions defined in the Libplanet namespace. + /// + /// Enumerable object array that contain an exception object. public static IEnumerable GetLibplanetExceptions() { var t = typeof(Exception); @@ -63,6 +67,10 @@ e.Namespace is not null && } } + /// + /// Get all exceptions defined in the Lib9c namespace. + /// + /// Enumerable object array that contain an exception object. public static IEnumerable GetLib9cExceptions() { var t = typeof(Exception); @@ -81,6 +89,10 @@ e.Namespace is not null && } } + /// + /// Tests weather Libplanet and Lib9c exceptions are serializable using MessagePack. + /// + /// The type of the exception being tested. [Theory] [MemberData(nameof(GetLibplanetExceptions))] [MemberData(nameof(GetLib9cExceptions))]