Download List

Projeto Descrição

Delphi/Kylix/FreePascal were lacking a mock
library. The Pascal Mock library enables the easy
creation and use of Mock objects for unit testing,
inspired by the various Java mock object tools.
Mock objects ease unit testing by acting as
replacements for classes that the object being
tested must interact with.

System Requirements

System requirement is not defined
Information regarding Project Releases and Project Resources. Note that the information here is a quote from Freecode.com page, and the downloads themselves may not be hosted on OSDN.

2007-02-22 07:17
1.1

Funções Mocked agora verificar se o seu valor de retorno foi definido e levantar uma exceção fácil de entender o contrário. A mensagem de falha simulada de verificação é mais fácil de ler porque o método que não correspondem às expectativas é marcado. Integração mínima com DUnit foi adicionado através TMockObjectTestCase. Informações sobre um método chamado agora podem ser recuperados com CalledMethodByName antes de chamar Verificar. A capacidade de especificar os valores dos parâmetros de saída para os métodos de simulação foi adicionado. O suporte para os parâmetros Int64 foi adicionado.
Tags: Minor feature enhancements
Mocked functions now check if their return value was set and raise an easy to understand exception otherwise. The mock verification failure message is easier to read because the method which doesn't match expectations is marked. Minimal integration with DUnit was added through TMockObjectTestCase. Information on a called method can now be retrieved with CalledMethodByName before calling Verify. The ability to specify output parameters values for mock methods was added. Support for Int64 parameters was added.

Project Resources