public TypeWithIncompatibleAndCompatibleConstructor(
     ConcreteType a, 
     AbstractType b, 
     byte c)
 {
     this.value1 = a;
     this.value2 = b;
     this.value3 = c;
 }
 public TypeWithIncompatibleAndCompatibleConstructor(
     ConcreteType a,
     AbstractType b,
     byte c)
 {
     this.Property1 = a;
     this.Property2 = b;
     this.Property3 = c;
 }
Exemplo n.º 3
0
 public void FreezeFirstParameterByDirectBaseTypeShouldAssignSameInstanceToSecondParameter(
     [Frozen(Matching.DirectBaseType)]ConcreteType p1,
     AbstractType p2)
 {
     Assert.Equal(p1, p2);
 }
Exemplo n.º 4
0
        public void FreezeFirstParameterAsBaseTypeAssignsSameInstanceToSecondParameterOfThatBaseType(
#pragma warning disable 0618
            [Frozen(As = typeof(AbstractType))]ConcreteType p1,
#pragma warning restore 0618
            AbstractType p2)
        {
            Assert.Equal(p1, p2);
        }
Exemplo n.º 5
0
 public void FreezeFirstParameterAsBaseTypeAssignsSameInstanceToSecondParameterOfThatBaseType(
     [Frozen(As = typeof(AbstractType))]ConcreteType p1,
     AbstractType p2)
 {
     Assert.Same(p1, p2);
 }
 public TypeWithUnorderedProperties(ConcreteType a, AbstractType b, byte c)
 {
     this.Property1 = a;
     this.Property2 = b;
     this.Property3 = c;
 }
 public TypeWithUnorderedProperties(ConcreteType a, AbstractType b, byte c)
 {
     this.value1 = a;
     this.value2 = b;
     this.value3 = c;
 }