it

The message should describe what the test should do.

TestPair
it
(
string message
,
void delegate(
)
func
)

Parameters

message
Type: string

The message to print when the test fails.

func
Type: void delegate(
)

The delegate to call when running the test.

Examples

1 int a = 4;
2 describe("example_library#a",
3 	it("Should equal 4", delegate() {
4 		a.shouldEqual(4);
5 	}),
6 	it("Should Not equal 5", delegate() {
7 		a.shouldNotEqual(5);
8 	})
9 );

Meta