// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
-#if NET_4_0 || MOBILE
+#if NET_4_0
using System;
using System.Threading;
n.ThrowIfCancellationRequested ();
n.GetHashCode ();
}
+
+ [Test]
+ public void DefaultCancellationTokenRegistration ()
+ {
+ var registration = new CancellationTokenRegistration ();
+
+ // shouldn't throw
+ registration.Dispose ();
+ }
}
}
#endif