public void ChangeVisibilityOfExtraBtnsCorrectly() { // Arrange buildModeHUDController.areExtraButtonsVisible = false; // Act buildModeHUDController.ChangeVisibilityOfExtraBtns(); // Assert Assert.IsTrue(buildModeHUDController.areExtraButtonsVisible, "The areExtraButtonsVisible is false!"); buildModeHUDController.view.Received(1).SetVisibilityOfExtraBtns(buildModeHUDController.areExtraButtonsVisible); }