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 Application Block 51<br />

Code test case Implemented? Feature that is implemented<br />

Verify that the<br />

HashProvider-<br />

Factory and the<br />

SymmtericCryptoProviderFactory<br />

classes create<br />

new instances of<br />

the symmetric and<br />

hash providers for<br />

each request.<br />

Yes<br />

The HashProviderFactory class and the Symmteric-<br />

CryptoProviderFactory class derive from the NameTypeFactoryBase<br />

class. This class creates a new<br />

instance of a provider for each request.<br />

Verify that the<br />

performance<br />

counters and the<br />

event log that are<br />

required by the application<br />

block are<br />

installed during<br />

installation.<br />

Yes<br />

For example, the HashAlgorithmInstrumentationListener<br />

class contains the installer attribute type HasInstallableResourcesAttribute.<br />

The EventLogInstaller-<br />

Builder and the PerformanceCounterInstallerBuilder<br />

installer classes, which are part of the <strong>Enterprise</strong><br />

<strong>Library</strong> Core, recognize this attribute and install the<br />

performance counters and event logs.<br />

To learn how the test teams tested the application blocks to see if they conformed to<br />

security best practices, see <strong>Test</strong>ing for Security Best Practices. To learn how the test<br />

teams tested the application blocks to see if they conformed to globalization best<br />

practices, see <strong>Test</strong>ing for Globalization Best Practices. To learn how the test teams<br />

tested the application blocks to see if they met the performance and scalability<br />

requirements, see <strong>Test</strong>ing for Performance and Scalability.<br />

Using Automated <strong>Test</strong>s<br />

Automated tests ensure that the application block functions in accordance with its<br />

requirements. Automated tests make regression testing easier, and certain tests, such<br />

as simulating a large number of uses to test a multithreading scenario, require automation.<br />

Table 5 lists the Visual Studio Team System tests that were used with the Cryptography<br />

Application Block.

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

Saved successfully!

Ooh no, something went wrong!