public void ChangeVisibilityOfSceneInfoCorrectly(bool shouldBeVisible) { // Arrange buildModeHUDController.isSceneLimitInfoVisibile = !shouldBeVisible; // Act buildModeHUDController.ChangeVisibilityOfSceneInfo(shouldBeVisible); // Assert Assert.AreEqual(shouldBeVisible, buildModeHUDController.isSceneLimitInfoVisibile, "The isSceneLimitInfoVisibile does not match!"); buildModeHUDController.view.Received(1).SetVisibilityOfSceneInfo(buildModeHUDController.isSceneLimitInfoVisibile); }