/// ------------------------------------------------------------------------------------ /// <summary> /// Processes the cellar module attribute. /// </summary> /// <param name="attr">The attr.</param> /// ------------------------------------------------------------------------------------ protected override bool ProcessCellarModuleAttribute(CellarModuleAttribute attr) { // for testing we ignore loading the types since we might be in the middle of a // build where not all of the assemblies containing the types are already built. m_ProcessCellarModuleAttributeCalled++; return(true); }
public void ProcessCellarModuleAttribute() { CellarModuleAttribute attr = new CellarModuleAttribute("TestModule", "FdoTests"); Assert.IsTrue(m_fdoCache.CallProcessCellarModuleAttribute(attr)); Assert.AreEqual(GetType(), m_fdoCache.CallGetTypeInAssembly("SIL.FieldWorks.FDO.FDOTests.FdoCacheTests")); Assert.IsNull(m_fdoCache.CallGetTypeInAssembly("This.Type.Does.Not.Exist")); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Processes the cellar module attribute. /// </summary> /// <param name="attr">The attr.</param> /// ------------------------------------------------------------------------------------ protected override bool ProcessCellarModuleAttribute(CellarModuleAttribute attr) { // for testing we ignore loading the types since we might be in the middle of a // build where not all of the assemblies containing the types are already built. m_ProcessCellarModuleAttributeCalled++; return true; }
/// ------------------------------------------------------------------------------------ /// <summary> /// Calls the process cellar module attribute. /// </summary> /// <param name="attr">The attr.</param> /// <returns><c>true</c> if ok, <c>false</c> if assembly can't be found.</returns> /// ------------------------------------------------------------------------------------ public bool CallProcessCellarModuleAttribute(CellarModuleAttribute attr) { return base.ProcessCellarModuleAttribute(attr); }
public void ProcessCellarModuleAttribute_AssemblyNotFound() { CellarModuleAttribute attr = new CellarModuleAttribute("TestModule", "DoesntExist"); Assert.IsFalse(m_fdoCache.CallProcessCellarModuleAttribute(attr)); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Calls the process cellar module attribute. /// </summary> /// <param name="attr">The attr.</param> /// <returns><c>true</c> if ok, <c>false</c> if assembly can't be found.</returns> /// ------------------------------------------------------------------------------------ public bool CallProcessCellarModuleAttribute(CellarModuleAttribute attr) { return(base.ProcessCellarModuleAttribute(attr)); }