Learn Unit Testing for MVP/MVC Architecture in Unity @git-amend
Learn Unit Testing for MVP/MVC Architecture in Unity  @git-amend
Uploaded January 2024 | Updated September 2026, 21 minutes ago
Walk through Unit Testing with the Unity Test Runner in Edit and Play modes in this first installment of the MVP/MVC series. We'll create some sample tests, helper Attributes and Classes, plus Spies and Mocks with NSubstitute!

🔔 Subscribe for more Unity Tutorials youtube.com/@git-amend

Discord: discord.gg/FDRZGQBBUC

#unity3d #gamedev #indiedev

▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬

0:00 Getting Started
3:03 Assertions
6:35 MVC Overview
9:25 Mocks and Spies
14:25 Play Mode Tests

martinfowler.com/bliki/GivenWhenThen.html
martinfowler.com/articles/mocksArentStubs.html

NSubstitute: github.com/Thundernerd/Unity3D-NSubstitute

*Source code:*
LoadSceneAttribute: gist.github.com/adammyhre/20d3c47f83032c6ca938b92edc175a35
Preconditions: gist.github.com/adammyhre/82d495ab99e2c59a19362119b2d43194
Observable: gist.github.com/adammyhre/3c5e6a50dba6b808ab74651aff5af57c

Assets Shown In This Video (Affiliate Links)
Eole Foliage Shader: assetstore.unity.com/packages/vfx/shaders/eole-stylized-foliage-shaders-265842?aid=1101lw3sv
Dungeon Mason Tiny Hero Duo: (FREE): assetstore.unity.com/packages/3d/characters/humanoids/rpg-tiny-hero-duo-pbr-polyart-225148?aid=1101lw3sv
Kronnect Beautify: assetstore.unity.com/packages/vfx/shaders/fullscreen-camera-effects/beautify-3-advanced-post-processing-233073?aid=1101lw3sv
Kyeoms VFX: assetstore.unity.com/publishers/52756?aid=1101lw3sv

*Follow me!*
https://linktr.ee/gitamend
Learn Unit Testing for MVP/MVC Architecture in UnityBuild A Shoot Em Up Game in Unity: I used to HATE Unity UGUI (Part 4)RAYCASTING Made Insanely Fast for Collision Detection!When, Why, and How to use Builder and Fluent Builder Programming PatternsPlayableBehaviour - C# in Unitys Playable Graph5 Advanced Books Every Indie Developer NeedsPreparing for CoreCLR: Unity’s New Lifecycle Management APIHow To Stop Objects From Clipping In Unity!Using IMPROVED Animation Events in UnityElevate Your Game with World Space UI in UnityBuild A Shoot Em Up Game in Unity: Parallax and Player Controller (Part 1)When to use Factory and Abstract Factory Programming Patterns
git-amend |

Learn Unit Testing for MVP/MVC Architecture in Unity

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER