AssemblyExtensionsTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Tests.Extensions AssemblyExtensionsTests

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

public class AssemblyExtensionsTests

The AssemblyExtensionsTests type exposes the following members.

Constructors

  NameDescription
Public methodAssemblyExtensionsTests
Initializes a new instance of the AssemblyExtensionsTests class
Top
Methods

  NameDescription
Public methodCheckIfManagedAssembly
Public methodCheckIfNotManagedAssembly
Top
Examples

[Test]
public void CheckIfManagedAssembly()
{
    string managedAssemblyFile = Path.Combine(Directory.GetCurrentDirectory(), "DeltaEngine.dll");
    Assert.IsTrue(AssemblyExtensions.IsManagedAssembly(managedAssemblyFile));
}
[Test]
public void CheckIfNotManagedAssembly()
{
    string unmanagedAssemblyFile =
        Path.Combine(Environment.ExpandEnvironmentVariables("%WinDir%"), "System32", "user32.dll");
    Assert.IsFalse(AssemblyExtensions.IsManagedAssembly(unmanagedAssemblyFile));
}
See Also