C# Class System.Web.WebPages.TestUtils.WebUtils

Show file Open project: megadotnet/ironframework

Public Methods

Method Description
CreateHttpRuntime ( string appVPath, string appPath = null ) : IDisposable

Creates an instance of HttpRuntime and assigns it (using magic) to the singleton instance of HttpRuntime. Ensure that the returned value is disposed at the end of the test.

Private Methods

Method Description
CreateVirtualPath ( string path ) : object
GetTheRuntime ( ) : FieldInfo
RestoreHttpRuntime ( ) : void

Method Details

CreateHttpRuntime() public static method

Creates an instance of HttpRuntime and assigns it (using magic) to the singleton instance of HttpRuntime. Ensure that the returned value is disposed at the end of the test.
public static CreateHttpRuntime ( string appVPath, string appPath = null ) : IDisposable
appVPath string
appPath string
return IDisposable