Inheritance Hierarchy
DeltaEngine.Tests.Extensions AssemblyExtensionsTests
Namespace: DeltaEngine.Tests.Extensions
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The AssemblyExtensionsTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
AssemblyExtensionsTests | Initializes a new instance of the AssemblyExtensionsTests class |
Methods
Name | Description | |
---|---|---|
CheckIfManagedAssembly | ||
CheckIfNotManagedAssembly |
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