Skip to content

Commit

Permalink
Add more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 committed Mar 22, 2023
1 parent 499c74a commit 7d0c734
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Documentation/workflow/UnitTests.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,4 +279,17 @@ There are a category of tests which run on the device itself, these tests the ru
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
`NUnit` called `NUnitLite`. For the most part they are the same.

These tests are generally found in the `tests/Mono.Android-Tests` directory.
These tests are generally found in the `tests/Mono.Android-Tests` directory and are used to test the
functions of the bound C# API on device. The following is an example.

```csharp
[Test]
public void ApplicationContextIsApp ()
{
Assert.IsTrue (Application.Context is App);
Assert.IsTrue (App.Created);
}
```

Tests in this area are usually located in a directory representing the namespace of the API being tested.
For example the above test exists in the `Android.App` folder, since it is testing the `Android.App.Application` class.

0 comments on commit 7d0c734

Please sign in to comment.