Created
February 19, 2022 20:53
-
-
Save aallbrig/1147f75d827fd151f2b2ba040baa2792 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MainMenuMonoBehaviourUnitTests | |
{ | |
[UnityTest] | |
public IEnumerator MainMenu_CanStartGame() | |
{ | |
var called = false; | |
var sut = new GameObject().AddComponent<MainMenu>(); | |
sut.Interactions = new SpyMainMenuInteractions {OnStartGame = () => called = true}; | |
yield return new WaitForEndOfFrame(); | |
sut.StartGame(); | |
Assert.IsTrue(called); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment