Additional methods for assembly related actions.
View code on GitHub
Inheritance Hierarchy
DeltaEngine.Extensions AssemblyExtensions
Namespace: DeltaEngine.Extensions
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The AssemblyExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() | GetEntryAssemblyForProjectName | |
![]() ![]() | GetTestNameOrProjectName | |
![]() ![]() | IsAllowed(Assembly) | |
![]() ![]() | IsAllowed(AssemblyName) | |
![]() ![]() | IsEditorAssembly | |
![]() ![]() | IsManagedAssembly |
See http://geekswithblogs.net/rupreet/archive/2005/11/02/58873.aspx
View code on GitHub |
![]() ![]() | IsMicrosoftAssembly | |
![]() ![]() | IsPlatformAssembly |
Remarks
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