public void SetBuilderProjectInfoCorrectly(string projectName) { // Arrange string testDesc = "Test name"; // Act buildModeHUDController.SetBuilderProjectInfo(projectName, testDesc); // Assert if (!string.IsNullOrEmpty(projectName)) { buildModeHUDController.controllers.newProjectDetailsController.Received(1).SetCustomPublicationInfo(projectName, testDesc); buildModeHUDController.controllers.publicationDetailsController.Received(1).SetCustomPublicationInfo(projectName, testDesc); } else { buildModeHUDController.controllers.newProjectDetailsController.Received(1).SetDefaultPublicationInfo(); buildModeHUDController.controllers.publicationDetailsController.Received(1).SetDefaultPublicationInfo(); } }