AssemblyChecker.IsAllowed is used whenever we have to check all loaded assemblies for types.
Examples include BinaryDataExtensions and AutofacResolver.RegisterAllTypesFromAllAssemblies
View code on GitHub
Inheritance Hierarchy
DeltaEngine.Platforms TestWithMocksOrVisually
DeltaEngine.Platforms.Tests AssemblyCheckerTests
Namespace: DeltaEngine.Platforms.Tests
Assembly: DeltaEngine.Platforms.Tests (in DeltaEngine.Platforms.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The AssemblyCheckerTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | AssemblyCheckerTests | Initializes a new instance of the AssemblyCheckerTests class |
Methods
Name | Description | |
---|---|---|
![]() | AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) |
![]() | Dispose | Releases all resources used by the AssemblyCheckerTests |
![]() | InitializeResolver | (Inherited from TestWithMocksOrVisually.) |
![]() | MakeSureToOnlyIncludeAllowedDeltaEngineAndUserAssemblies | |
![]() | RegisterMock T | (Inherited from TestWithMocksOrVisually.) |
![]() | Resolve T | (Inherited from TestWithMocksOrVisually.) |
![]() | RunAfterFirstFrame | (Inherited from TestWithMocksOrVisually.) |
![]() | RunTestAndDisposeResolverWhenDone | (Inherited from TestWithMocksOrVisually.) |
Properties
Name | Description | |
---|---|---|
![]() | IsMockResolver | (Inherited from TestWithMocksOrVisually.) |
Examples
[Test] public void MakeSureToOnlyIncludeAllowedDeltaEngineAndUserAssemblies() { Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies(); var assembliesAllowed = assemblies.Where(assembly => assembly.IsAllowed()).Select(a => a.GetName().Name).ToList(); Assert.Greater(assembliesAllowed.Count, 0, "Assemblies: " + assembliesAllowed.ToText()); }
See Also