public void Register_AllowsAssembliesToBeResolved() { var resolver = CreateResolver(); ExactTypeConstraint constraint; if (FrameworkVersionDetector.IsVersionSupported(FrameworkVersion.Net_4_6)) { constraint = Throws.Exception.TypeOf <SerializationException>(); } else { constraint = Throws.Exception.TypeOf <FileNotFoundException>(); } Assert.That(() => _appDomain.DoCallBack(delegate { }), constraint); // Serialized type should not be available in the other AppDomain resolver.Register(_appDomain); _appDomain.DoCallBack(delegate { }); }
public void IsMinimumVersion_Net_4_6() { Assert.That(FrameworkVersionDetector.IsVersionSupported(FrameworkVersion.Net_4_6), Is.EqualTo(IsNet_4_6_Installed())); }
public void IsMinimumVersion_Net_4_5() { Assert.That(FrameworkVersionDetector.IsVersionSupported(FrameworkVersion.Net_4_5), Is.True); }