Created
October 26, 2011 10:54
-
-
Save ecampidoglio/1316023 to your computer and use it in GitHub Desktop.
CS0853: An expression tree may not contain a named argument specification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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