Skip to content

Commit

Permalink
Version bump + minor cleanup and coverage fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwaliszko committed Aug 18, 2016
1 parent 4b6f5f6 commit 071b2b1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.4.8.0")]
[assembly: AssemblyFileVersion("2.4.8.0")]
[assembly: AssemblyVersion("2.5.0.0")]
[assembly: AssemblyFileVersion("2.5.0.0")]
2 changes: 1 addition & 1 deletion src/ExpressiveAnnotations.MvcWebSample/Models/Query.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public Query()
[RequiredIf(@"GoAbroad == true
&& (
(NextCountry != 'Other' && NextCountry == Country)
|| (Age > 24 && Age <= 55)
|| (Age > 24 && 55 >= Age)
)",
ErrorMessageResourceType = typeof (Resources), ErrorMessageResourceName = nameof(Resources.ReasonForTravelRequired))]
[RequiredIf("ArrayContains(Age, [15, 16, 17])", // alternative without array literal: ArrayContains(Age, EarlyYears)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
[RequiredIf(@@"GoAbroad == true
&& (
(NextCountry != 'Other' && NextCountry == Country)
|| (Age > 24 && Age &le; 55)
|| (Age > 24 && 55 &ge; Age)
)")]
[RequiredIf("ArrayContains(Age, [15, 16, 17])")] @*alternative: [RequiredIf("ArrayContains(Age, EarlyYears)")]*@
[AssertThat(@@"ReasonForTravel != 'John\'s cat named ""\\\'""\n (Backslash Quote)' && ReasonForTravel != SIMONS_CAT")]
Expand Down
15 changes: 0 additions & 15 deletions src/ExpressiveAnnotations/Analysis/Expr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -361,21 +361,6 @@ public Expression OnesComplement(Expression arg, Token oper)
}
}

public Expression Convert(Expression arg, Type type, Location pos)
{
if (arg.Type == typeof (bool))
return arg;

try
{
return Expression.Convert(arg, type);
}
catch
{
throw new ParseErrorException($"Cannot implicitly convert type '{arg.Type}' to '{type}'.", ExprString, pos);
}
}

public Expression Condition(Expression arg1, Expression arg2, Expression arg3, Token start, Token oper)
{
Wall.OfType<bool>(arg1, start.Location);
Expand Down
4 changes: 2 additions & 2 deletions src/ExpressiveAnnotations/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.6.0.0")]
[assembly: AssemblyFileVersion("2.6.0.0")]
[assembly: AssemblyVersion("2.7.0.0")]
[assembly: AssemblyFileVersion("2.7.0.0")]

0 comments on commit 071b2b1

Please sign in to comment.