/// <summary> /// Configures the fixture to assert that the subject returns a breakfast with the specified name /// and price as calculated from the specified breakfast items. /// </summary> public static ITestFixture ShouldReturnBreakfastWithCorrectNameAndPrice(this ITestFixture fixture, string expectedName, params BreakfastItem[] expectedItems) => fixture.ShouldReturnEquivalent(new Breakfast { Name = expectedName, Price = expectedItems.Sum(i => i.Price) });