public void CatalogItemSelectedCorrectly() { // Arrange CatalogItem returnedCatalogItem = null; CatalogItem testCatalogItem = new CatalogItem(); buildModeHUDController.OnCatalogItemSelected += (item) => { returnedCatalogItem = item; }; // Act buildModeHUDController.CatalogItemSelected(testCatalogItem); // Assert Assert.AreEqual(testCatalogItem, returnedCatalogItem, "The catalog item does not march!"); }