Skip to content

Instantly share code, notes, and snippets.

@ecampidoglio
Created October 26, 2011 10:54
Show Gist options
  • Save ecampidoglio/1316023 to your computer and use it in GitHub Desktop.
Save ecampidoglio/1316023 to your computer and use it in GitHub Desktop.
CS0853: An expression tree may not contain a named argument specification
[Test]
public void CS_compiler_should_allow_named_arguments_in_lambdas()
{
// Given
var mock = new Mock<IProceduralPizzaStore>();
// When
mock.Verify(
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