AssemblyCheckerTests MakeSureToOnlyIncludeAllowedDeltaEngineAndUserAssemblies Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Extensions
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void MakeSureToOnlyIncludeAllowedDeltaEngineAndUserAssemblies()
Examples

[Test, Ignore]
public void MakeSureToOnlyIncludeAllowedDeltaEngineAndUserAssemblies()
{
    Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
    var assembliesAllowed = new List<string>();
    foreach (Assembly assembly in assemblies.Where(assembly => assembly.IsAllowed()))
        assembliesAllowed.Add(assembly.GetName().Name);
    // At this point only DeltaEngine.Tests, DeltaEngine, DeltaEngine.Mocks should be loaded
    Assert.AreEqual(3, assembliesAllowed.Count, "Assemblies: " + assembliesAllowed.ToText());
}
See Also