Check out example codes for "excel vba tool to help with refactoring code". It will help you in understanding the concepts better.
Code Example 1
Use Rubberduck:
https://github.com/retailcoder/Rubberduck/wiki/Unit-Testing
Learn ReactJs, React Native from akashmittal.com