public void TryLoadAssembly_FilterConsiderFalse() { Assembly referenceAssembly = typeof(FilteringAssemblyLoaderTest).Assembly; string path = new Uri(referenceAssembly.EscapedCodeBase).AbsolutePath; Expect.Call(_filterMock.ShouldConsiderAssembly(null)) .Constraints(Mocks_Property.Value("FullName", referenceAssembly.FullName)) .Return(false); _mockRepository.ReplayAll(); Assembly loadedAssembly = _loader.TryLoadAssembly(path); Assert.That(loadedAssembly, Is.Null); _mockRepository.VerifyAll(); }
public void Removing(object sender, DomainObject domainObject) { Removing(null, (DomainObjectCollectionChangeEventArgs)null); LastCall.Constraints(Mocks_Is.Same(sender), Mocks_Property.Value("DomainObject", domainObject)); }