// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_4_5
using System;
using System.Threading;
using System.Threading.Tasks;
using NUnit.Framework;
using System.Runtime.CompilerServices;
+using System.Runtime.ExceptionServices;
namespace MonoTests.System.Runtime.CompilerServices
{
public override void Post (SendOrPostCallback d, object state)
{
- if (state is Exception) {
+ if (state is ExceptionDispatchInfo) {
++PostCounter;
}
}
}
}
-#endif
\ No newline at end of file