07.11.2014 Views

Enterprise Library Test Guide - Willy .Net

Enterprise Library Test Guide - Willy .Net

Enterprise Library Test Guide - Willy .Net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Test</strong>ing the Cryptography<br />

Application Block<br />

This chapter explains how functional testing techniques were used to test the<br />

Cryptography Application Block. If you have modified or extended the Cryptography<br />

Application Block, you can use the same techniques and adapt the chapter’s<br />

templates and checklists to test your own work.<br />

Requirements for the Cryptography Application Block<br />

The Cryptography Application Block has the following requirements:<br />

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

●<br />

The application block should support common cryptography operations.<br />

The application block should be extensible.<br />

The symmetric encryption providers and the hash providers should be<br />

configurable.<br />

The application block should support configurable instrumentation, including<br />

WMI (Windows Management Instrumentation), performance counters, and event<br />

logs.<br />

The application block should be able to read configuration information from any<br />

configuration source, such as an XML file or a database.<br />

The symmetric key that encrypts the data should be cached in memory in an<br />

encrypted form.<br />

The application block should work with desktop applications and with Web<br />

applications.<br />

These requirements must be incorporated into the design and implemented by the<br />

code.<br />

Selecting the <strong>Test</strong> Cases<br />

The first step in a functional review is to make sure that the design and the code<br />

support the requirements. You do this by deciding the test cases that the design and<br />

code must satisfy. Table 1 lists the test cases that the application block’s design must<br />

satisfy.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!