public static void ShouldBeCreateUriFromTypeExpressionFor(this TestAttributeNode attribute, string originalValue)
 {
     attribute.CodeNodes.ShouldHaveCount(1);
     string createUriExpression = StubSyntaxProvider.GetTestCreateUriFromTypeExpression(originalValue);
     CodeExpression expectedExpression = new CodeExpression(createUriExpression);
     attribute.CodeNodes.First().As<TestCodeExpressionNode>().CodeExpression.ShouldEqual(expectedExpression);
 }
 private void WhenCodeExpressionIsAdded(CodeExpression codeExpression)
 {
     Context.Target.SetExpressionBody(codeExpression);
 }
 public void SetExpressionBody(CodeExpression codeExpression)
 {
 }
 public static void ShouldBeGetPropertyPathExpressionFor(this TestAttributeNode attribute, string originalValue)
 {
     CodeExpression expectedPropertyPathExpresion = new CodeExpression(StubSyntaxProvider.GetTestGetPropertyPathExpression(originalValue));
     attribute.CodeNodes.First().As<TestCodeExpressionNode>().CodeExpression.ShouldEqual(expectedPropertyPathExpresion);
 }