SwensenSoftware / unquote

Write F# unit test assertions as quoted expressions, get step-by-step failure messages for free
http://www.swensensoftware.com/unquote
Apache License 2.0
287 stars 25 forks source link

Change assertion operators so that they don't conflict with F# 3.0's NullableOperators #88

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
F# 3.0's NullableOperators conflict with Unquote's short-hand test operators, 
e.g. =?, <>?, ... see 
http://msdn.microsoft.com/en-us/library/hh323953(v=VS.110).aspx

This is a pretty big breaking change but will need to be done. We will 
increment to Unquote version 3.0 at that time. Likely building special .NET 4.5 
targets as well (even though binding redirects can fix versioning issues (see 
Issue 78), simply providing a .NET 4.5 build will prevent any confusion.

Note that the order in which you open Unquote's assertion operators vs. F# 
3.0's NullableOperators can let you choose which should shadow the other.

Original issue reported on code.google.com by stephen....@gmail.com on 28 Apr 2012 at 2:28

GoogleCodeExporter commented 9 years ago
Note: we should consider keeping the ?-suffixed operators around for a while in 
a hidden and deprecated module for a while (e.g. move them from 
Swensen.Unquote.Assertions to Swensen.Unquote.Assertions.Deprecated with 
[<System.ObsoleteAttribute>] applied).

Original comment by stephen....@gmail.com on 31 Mar 2013 at 3:44

GoogleCodeExporter commented 9 years ago

Original comment by stephen....@gmail.com on 31 Mar 2013 at 3:45

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r651.

Original comment by stephen....@gmail.com on 25 Apr 2013 at 3:29

GoogleCodeExporter commented 9 years ago
Fixed (currently in vs2012 branch).

Operators renamed from having `?` suffix to having `!` suffix (I actually 
prefer this and it was the original idea I had but decided against because it 
reminded me too much of c-style "not" symbol... I'm over that).

The old operators are available by opening the (hidden) 
Swensen.Unquote.Assertions.Obsolete module.

Original comment by stephen....@gmail.com on 25 Apr 2013 at 3:32

GoogleCodeExporter commented 9 years ago

Original comment by stephen....@gmail.com on 17 May 2015 at 6:10