Skip to content

Commit b1c5358

Browse files
committed
Add more docs
1 parent 51f011e commit b1c5358

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Documentation/workflow/UnitTests.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,4 +279,17 @@ There are a category of tests which run on the device itself, these tests the ru
279279
behaviour. These run `NUnit` tests directly on the device. Some of these are located in the runtime itself. We build them within the repo then run the tests on the device. They use a custom mobile version of
280280
`NUnit` called `NUnitLite`. For the most part they are the same.
281281

282-
These tests are generally found in the `tests/Mono.Android-Tests` directory.
282+
These tests are generally found in the `tests/Mono.Android-Tests` directory and are used to test the
283+
functions of the bound C# API on device. The following is an example.
284+
285+
```csharp
286+
[Test]
287+
public void ApplicationContextIsApp ()
288+
{
289+
Assert.IsTrue (Application.Context is App);
290+
Assert.IsTrue (App.Created);
291+
}
292+
```
293+
294+
Tests in this area are usually located in a directory representing the namespace of the API being tested.
295+
For example the above test exists in the `Android.App` folder, since it is testing the `Android.App.Application` class.

0 commit comments

Comments
 (0)