Exemplo n.º 1
0
 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"));
     }
 }
Exemplo n.º 2
0
        public void NextCallMethodToThis()
        {
            BaseType3 bt3 = CreateMixedObject <BaseType3> (typeof(MixinWithThisAsBase));

            Assert.That(bt3.IfcMethod(), Is.EqualTo("MixinWithThisAsBase.IfcMethod-BaseType3.IfcMethod"));
        }
Exemplo n.º 3
0
        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"));
        }