si-m1-face-package/Documentation~/SDK_Mock_And_Testing.md

901 B

Mock And Testing

The public DLL-only package includes runtime mock support inside Aisu.SIM1.Face.Runtime.dll, but it does not include EditMode test source files.

Editor Mock

For Editor integration without real hardware, enable mock mode in FaceSdkSettings:

Use Mock In Editor = true

When this option is enabled, the SDK uses the built-in mock transport in the Unity Editor instead of opening a real serial port.

Hardware Validation

For real SI-M1 hardware validation:

  1. Set Use Mock In Editor = false.
  2. Configure Editor Port Name, Editor Baud Rate, and Editor Read Buffer Size.
  3. Create a FaceModuleManager in the scene.
  4. Call Open(), then wait for WaitReadyAsync() or handle OnReady.

Automated Tests

Internal EditMode tests are maintained in the private development SDK repository and are not distributed in this DLL-only public package.