Skip to content

TestCaseBuilder 型の追加 #3

@in-async

Description

@in-async

Action を返す TestCaseBuilder 型を追加する。

Usage 1

Action TestCase(int testNumber, int val, string expected, Type expectedExceptionType = null) =>
    new TestCaseBuilder($"No.{testNumber}")
        .Run(() => val.ToString())
        .Verify(expected, expectedExceptionType);

Usage 2

new TestCaseBuilder()
    .Run(() => val.ToString())
    .Verify(expected, expectedExceptionType)
    .Parallel(10);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions