Skip to content
This repository has been archived by the owner on May 16, 2022. It is now read-only.

Added instructions for Unity Unit Tests #54

Merged
merged 1 commit into from
Jan 24, 2017
Merged

Added instructions for Unity Unit Tests #54

merged 1 commit into from
Jan 24, 2017

Conversation

mrserverless
Copy link
Contributor

Unit Tests calling ZeroFormatter will always return the error:

System.InvalidOperationException : Type is not supported, please register Player

After some hair scratching and re-reading your docs, I realised it's because the auto formatter registration for RuntimeInitializeOnLoad doesn't apply to unit tests. So by manually adding:

ZeroFormatterInitializer.Register(); 

In test SetUp works fine. I thus updated the README. Feel free to re-word it.

@neuecc
Copy link
Owner

neuecc commented Jan 24, 2017

thank you, yes, it is nice info.

@neuecc neuecc merged commit edc1930 into neuecc:master Jan 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants