AssemblyCheckerTests MakeSureToOnlyIncludeAllowedDeltaEngineAndUserAssemblies Method Delta Engine Documentation

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

public void MakeSureToOnlyIncludeAllowedDeltaEngineAndUserAssemblies()
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