Nixi

FREE
Publisher Retroseed Studio
File size 103.00kB
Number of files 11
Latest version 1.0.0
Latest release date 2022-02-09 02:15:18
First release date 2022-02-09 02:15:19
Supported Unity versions 2018.4.2 or higher

Nixi is a library that was designed primarily to approach the principles of clean coding and to simplify writing tests when developing on Unity using Unity dependency injection as well as the more classic dependency injection.


It makes it easier to write and test classes derived from MonoBehaviour class while keeping the principles of encapsulation to be able to expose only what needs to be exposed.

There are specific field decorators (named Nixi attributes), with which it is possible to inject according to two different approaches :

  • From Unity dependency injection systems such as : GetComponent, GetComponentInChildren, etc.
  • From a simple IOC container (NixiContainer) filled in advance from a class that takes priority over the others.

The Nixi attributes are intended to be used during "play mode scene" and can also be reused in tests to follow the evolution of these fields and/or mock where it is useful, including non-public fields.


These reuses and accesses during testing are intended to simulate and verify Unity context (GetComponent, GetComponentInChildren, etc.), as well as to simulate interfaces that have been decorated for injection from NixiContainer (or decorated with SerializeField). This is only allowed for these cases, no others.


Nixi is an open source project under the MIT license.


You can find github project on this link :


https://github.com/f-antoine/Nixi

Top Publisher Assets