AssemblyCheckerTests ClassDelta Engine Documentation
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

System Object
  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

public class AssemblyCheckerTests : TestWithMocksOrVisually

The AssemblyCheckerTests type exposes the following members.

Constructors

  NameDescription
Public methodAssemblyCheckerTests
Initializes a new instance of the AssemblyCheckerTests class
Top
Methods

  NameDescription
Protected methodAdvanceTimeAndUpdateEntities (Inherited from TestWithMocksOrVisually.)
Public methodDispose
Releases all resources used by the AssemblyCheckerTests
Public methodInitializeResolver (Inherited from TestWithMocksOrVisually.)
Public methodMakeSureToOnlyIncludeAllowedDeltaEngineAndUserAssemblies
Protected methodRegisterMock T  (Inherited from TestWithMocksOrVisually.)
Protected methodResolve T  (Inherited from TestWithMocksOrVisually.)
Protected methodRunAfterFirstFrame (Inherited from TestWithMocksOrVisually.)
Public methodRunTestAndDisposeResolverWhenDone (Inherited from TestWithMocksOrVisually.)
Top
Properties

  NameDescription
Protected propertyIsMockResolver (Inherited from TestWithMocksOrVisually.)
Top
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