Assembly metadata for the Visual Studio Team Test unit test framework.
Inheritance: UnitTestFrameworkAssemblyBase
Exemple #1
0
        public IAssembly GetUnitTestAssembly(UnitTestHarness testHarness, Assembly assemblyReference)
#endif
        {
            if (_assemblyCache.ContainsKey(assemblyReference))
            {
                return(_assemblyCache[assemblyReference]);
            }
            else
            {
                _assemblyCache[assemblyReference] = new UnitTestFrameworkAssembly(this, testHarness, assemblyReference);
                return(_assemblyCache[assemblyReference]);
            }
        }
Exemple #2
0
        public IAssembly GetUnitTestAssembly(UnitTestHarness testHarness, Assembly assemblyReference)
#endif
        {
            if (_assemblyCache.ContainsKey(assemblyReference)) 
            {
                return _assemblyCache[assemblyReference];
            }
            else 
            {
                _assemblyCache[assemblyReference] = new UnitTestFrameworkAssembly(this, testHarness, assemblyReference);
                return _assemblyCache[assemblyReference];
            }
        }
 public void should_detect_assemblyInit_methods()
 {
     var unitTestFrameworkAssembly = new UnitTestFrameworkAssembly(null, null, this.GetType().Assembly);
     unitTestFrameworkAssembly.AssemblyInitializeMethod.ShouldNotBeNull();
 }