public void AmbiguousMatch()
        {
            var assembly1 = MockRepository.GenerateStub<_Assembly> ();
              assembly1.Stub (a => a.GetExportedTypes ()).Return (new[] { typeof (ClassWithAmbiguousMethod1), typeof (ClassWithAmbiguousMethod2) });

              try
              {
            var remotionReflector = new RemotionReflector ("Remotion", new Version (1, 11, 20), new[] { assembly1 }, ".");
            remotionReflector.IsInfrastructureType (typeof (int));

            Assert.Fail ("Expected exception {0} was not thrown", typeof (AmbiguousMatchException));
              }
              catch (AmbiguousMatchException)
              { }
        }
        public void IncompatibleMethodCall()
        {
            var assembly1 = MockRepository.GenerateStub<_Assembly> ();
              assembly1.Stub (a => a.GetExportedTypes ()).Return (new[] { typeof (ClassImplementingRemotionReflectorV1_13_32) });

              try
              {
            var remotionReflector = new RemotionReflector ("Remotion", new Version (1, 13, 32), new[] { assembly1 }, ".");
            remotionReflector.IsInheritedFromMixin (typeof (int));

            Assert.Fail ("Expected exception {0} was not thrown", typeof (NotSupportedException));
              }
              catch (NotSupportedException)
              { }
        }