Enterprise Library Test Guide - Willy .Net
Enterprise Library Test Guide - Willy .Net
Enterprise Library Test Guide - Willy .Net
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
12<br />
<strong>Enterprise</strong> <strong>Library</strong> <strong>Test</strong> <strong>Guide</strong><br />
Priority<br />
High<br />
High<br />
High<br />
High<br />
High<br />
High<br />
High<br />
Design test case<br />
Verify that the core implements base factory classes that create instance objects and<br />
a base factory class that creates singleton objects for types that support them.<br />
Verify that the core provides a façade for a generic object instance building mechanism<br />
for the ObjectBuilder subsystem.<br />
Verify that the core implements configuration watchers that monitor the configuration<br />
sources.<br />
Verify that the core includes configuration classes that read various types of configuration<br />
elements, such as name, type, and collection.<br />
Verify that the core includes factory classes that support polymorphism.<br />
Verify that the core includes base classes that implement performance counters.<br />
Verify that the core includes installer classes that install performance counters and<br />
the event log.<br />
After you identify the design issues, you should do the same for the code. Table 2<br />
lists the test cases that the core code must satisfy.<br />
Table 2: Core Code <strong>Test</strong> Cases<br />
Priority<br />
High<br />
High<br />
High<br />
High<br />
High<br />
High<br />
High<br />
High<br />
Medium<br />
High<br />
High<br />
Medium<br />
High<br />
Code test case<br />
Verify that the core caches the configuration reflection data and reuses the reflection<br />
data.<br />
Verify that the NameTypeConfigurationElement class converts the type configuration<br />
element to the Type class.<br />
Verify that the core includes a generic helper class that manages custom provider<br />
configuration objects.<br />
Verify that the configuration sources and the configuration watchers are extensible.<br />
Verify that the core’s system configuration source and its file configuration source<br />
have configuration watchers that monitor changes to their configuration sources. If<br />
there are changes, these watchers should notify the appropriate class, such as the<br />
FileConfigurationSourceImplentation class, to update the configuration data.<br />
Verify that the configuration source has configuration watchers that monitor specific<br />
sections of the external configuration source. If there are changes, these watchers<br />
should notify the appropriate class to update the configuration data.<br />
Verify that there are methods to properly dispose of the configuration watchers when<br />
the watchers are unregistered from the configuration source.<br />
Verify that the instrumentation is only bound to an object when the instrumentation<br />
is enabled.<br />
Verify that the core requests or demands the appropriate code access security permissions<br />
to access protected system resources and operations.<br />
Verify that the core follows exception management best practices.<br />
Verify that the core follows security best practices.<br />
Verify that the core follows globalization best practices.<br />
Verify that the core follows performance best practices.