# XdYe Unlock Test

As all Unlock contracts share the same code and programming logic, we will just test one on *script*, despite that you will be able to test the others on the *front-end (final XdYe Platform).*

For running the test what we will do is:

Check if address\[2] is inside the struct, what should not be the case, result is going to be *false*. Then we are going to call the method *`unlock()`* this will change struct value to *true*, for address\[2].

The script used for testing all those capabilities: *(1)*&#x20;

{% embed url="<https://github.com/rogerCapone/XdYe_Tests/blob/main/Unlocker_check.js>" %}
Script for testing XdYe Unlock contract
{% endembed %}
