public void SetPublishBtnAvailabilityCorrectly(bool isAvailable) { // Act buildModeHUDController.SetPublishBtnAvailability(isAvailable); // Assert buildModeHUDController.view.Received(1).SetPublishBtnAvailability(isAvailable); }