The function to call after each 'it' function.
The function to call before each 'it' function.
Used to describe the thing being tested. Contains many 'it' functions to test the thing.
Used to describe the thing being tested. Contains many 'it' functions to test the thing. Also takes a function to run before each test.
Used to describe the thing being tested. Contains many 'it' functions to test the thing. Also takes a function to run after each test.
Used to describe the thing being tested. Contains many 'it' functions to test the thing. Also takes a function to run before, and a function to run after each test.
The message should describe what the test should do.
Used to assert that one value is greater than another value.
Used to assert that one value is greater or equal than another value.
Used to assert that one value is in an array of specified values.
Used to assert that one value is less than another value.
Used to assert that one value is less or equal than another value.
Used to assert that one value is equal to null.
Used to assert that one value is equal to another value.
Used to assert that one value is NOT in an array of specified values.
Used to assert that one value is NOT equal to null.
Used to assert that one value is NOT equal to another value.
Used for asserting that a delegate will throw an exception.
Used for asserting that a delegate will throw an exception.
import BDD; int add(int a, int b) { return a + b; } unittest { describe("math#add", before(delegate() { }), after(delegate() { }), it("Should add positive numbers", delegate() { add(5, 7).shouldEqual(12); }), it("Should add negative numbers", delegate() { add(5, -7).shouldEqual(-2); }) ); }
3.1.0
Boost Software License - Version 1.0
Behavior Driven Development testing framework for the D programming language
Home page: https://github.com/workhorsy/BDD