public void OverriddenMemberCalls() { using (MixinConfiguration.BuildFromActive().ForClass <BaseType3> ().Clear().AddMixins(typeof(BT3Mixin7Base), typeof(BT3Mixin4)).EnterScope()) { BaseType3 bt3 = ObjectFactory.Create <BaseType3> (ParamList.Empty); Assert.That(bt3.IfcMethod(), Is.EqualTo("BT3Mixin7Base.IfcMethod-BT3Mixin4.Foo-BaseType3.IfcMethod-BaseType3.IfcMethod2")); } }
public void NextCallMethodToThis() { BaseType3 bt3 = CreateMixedObject <BaseType3> (typeof(MixinWithThisAsBase)); Assert.That(bt3.IfcMethod(), Is.EqualTo("MixinWithThisAsBase.IfcMethod-BaseType3.IfcMethod")); }
public void OverrideWithComposedBaseInterface() { BaseType3 bt3 = CreateMixedObject <BaseType3> (typeof(BT3Mixin7Base), typeof(BT3Mixin4)); Assert.That(bt3.IfcMethod(), Is.EqualTo("BT3Mixin7Base.IfcMethod-BT3Mixin4.Foo-BaseType3.IfcMethod-BaseType3.IfcMethod2")); }