Пример #1
0
 /// ------------------------------------------------------------------------------------
 /// <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);
 }
Пример #2
0
        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"));
        }
Пример #3
0
		/// ------------------------------------------------------------------------------------
		/// <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;
		}
Пример #4
0
		/// ------------------------------------------------------------------------------------
		/// <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);
		}
Пример #5
0
		public void ProcessCellarModuleAttribute_AssemblyNotFound()
		{
			CellarModuleAttribute attr = new CellarModuleAttribute("TestModule", "DoesntExist");
			Assert.IsFalse(m_fdoCache.CallProcessCellarModuleAttribute(attr));
		}
Пример #6
0
		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"));
		}
Пример #7
0
 /// ------------------------------------------------------------------------------------
 /// <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));
 }
Пример #8
0
        public void ProcessCellarModuleAttribute_AssemblyNotFound()
        {
            CellarModuleAttribute attr = new CellarModuleAttribute("TestModule", "DoesntExist");

            Assert.IsFalse(m_fdoCache.CallProcessCellarModuleAttribute(attr));
        }