StudentTest

public class StudentTest<T>(source)

A generic test used by students to test their solutions.

Parameters

<T>

The type of the object to test.

Constructors

Link copied to clipboard
public void StudentTest(Predicate<T> predicate, StudentTestResultMessageProvider<T> messageProvider)
Creates a new StudentTest with the given predicate and messageProvider.

Properties

Link copied to clipboard
The StudentTestResultMessageProvider used to generate the message for the result.
Link copied to clipboard
protected Predicate<T> predicate
The Predicate used to test the object.

Functions

Link copied to clipboard
public StudentTestResult<T> test(T toTest)
Tests the given toTest object with the predicate and returns a StudentTestResult with the result.