diff --git a/README.md b/README.md index cda8e5d..7c22982 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,9 @@ public class MyTestClass } ``` +> **Note** +> In batchmode, open `GameView` window. + #### GameViewResolution `GameViewResolutionAttribute` is an NUnit test attribute class to set custom resolution to `GameView` before run test. @@ -53,15 +56,23 @@ using TestHelper.Attributes; [TestFixture] public class MyTestClass { - [Test] + [UnityTest] [GameViewResolution(640, 480, "VGA")] - public void MyTestMethod() + public IEnumerator MyTestMethod() { + yield return null; // wait for one frame to apply resolution. + // e.g., test using GraphicRaycaster. } } ``` +> **Warning** +> Wait for one frame to apply resolution. + +> **Note** +> In batchmode, open `GameView` window. + #### IgnoreBatchMode `IgnoreBatchModeAttribute` is an NUnit test attribute class to skip test execution when run tests with `-batchmode` from the commandline.