Created
November 11, 2020 20:38
-
-
Save extrawurst/2fdb82dcfdfc7262188aa6c99466430d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var level = Substitute.For<ILevel>(); | |
var buildings = Substitute.For<IBuildings>(); | |
// test subject: | |
var build = new BuildController(null,buildings,level); | |
// smoke test | |
Assert.AreEqual(0, build.GetCurrentBuildCount()); | |
// assert that `GetCurrent` was exactly called once | |
level.ReceivedWithAnyArgs(1).GetCurrent(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment