Android.Test.Mock.MockContext Class
A mock Android.Content.Context class.

See Also: MockContext Members

Syntax

[Android.Runtime.Register("android/test/mock/MockContext", DoNotGenerateAcw=true)]
public class MockContext : Android.Content.Context

Remarks

A mock Android.Content.Context class. All methods are non-functional and throw Java.Lang.UnsupportedOperationException. You can use this to inject other dependencies, mocks, or monitors into the classes you are testing.

[Android Documentation]

Requirements

Namespace: Android.Test.Mock
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1