Skip to content

Instantly share code, notes, and snippets.

Created October 26, 2011 10:54
What would you like to do?
CS0853: An expression tree may not contain a named argument specification
public void CS_compiler_should_allow_named_arguments_in_lambdas()
// Given
var mock = new Mock<IProceduralPizzaStore>();
// When
m => m.OrderPizza(
name: "Quattro Formaggi",
withMozzarella: true,
isFamilySize: false,
isWholeGrain: false,
useExpressDelivery: true,
comments: null));
// Then
// It should compile!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment