guiskj
Knight
I am learning how to mod Bannerlord and so far things are going rather well. I am using existing mods to help me navigate the C# code since documentation is not available yet.
However, one thing that I have not been able to understand is how to correctly write unit tests for Behaviours, Layers, ViewModels, etc. There is too much context to set for any of my classes to be constructed correctly and I don't see a path to leverage dependency injection to allow me to mock dependencies.
So I am reaching out here to see if anyone has solved this issue for their mods.
Thank you.
However, one thing that I have not been able to understand is how to correctly write unit tests for Behaviours, Layers, ViewModels, etc. There is too much context to set for any of my classes to be constructed correctly and I don't see a path to leverage dependency injection to allow me to mock dependencies.
So I am reaching out here to see if anyone has solved this issue for their mods.
Thank you.