public void NonNavigationPropertyThrowsUsefulErrorIfKnobIsNotFlipped() { ExpandToken expandToken = new ExpandToken(new ExpandTermToken[] { new ExpandTermToken(new NonSystemToken("Shoe", null, null)) }); Action bind = () => this.binderForPerson.Bind(BuildUnifiedSelectExpandToken(expandToken)); bind.ShouldThrow <ODataException>().WithMessage(ODataErrorStrings.ExpandItemBinder_PropertyIsNotANavigationProperty("Shoe", HardCodedTestModel.GetPersonType().FullName())); }