public void ReplaceMixin_NonGeneric()
        {
            _parentBuilderMock
            .Expect(mock => mock.SuppressMixin(Arg <IMixinSuppressionRule> .Matches(
                                                   rule => ((MixinTreeReplacementSuppressionRule)rule).ReplacingMixinType == _mixinBuilder.MixinType &&
                                                   ((MixinTreeReplacementSuppressionRule)rule).MixinBaseTypeToSuppress == typeof(int))))
            .Return(_parentBuilderMock);
            _parentBuilderMock.Replay();

            var result = _mixinBuilder.ReplaceMixin(typeof(int));

            Assert.That(result, Is.SameAs(_mixinBuilder));
            _parentBuilderMock.VerifyAllExpectations();
        }
        public void ReplaceMixin_SelfSuppressor_GenericDefinition()
        {
            var mixinBuilder = new MixinContextBuilder(_parentBuilderMock, typeof(GenericMixin <object>), _origin);

            mixinBuilder.ReplaceMixin(typeof(GenericMixin <>));
        }