Example #1
0
 public void FreezeFirstParameterByDirectOrInterfaceShouldAssignSameInstanceToSecondParameterOfSameType(
     [Frozen(Matching.ExactType | Matching.ImplementedInterfaces)]NoopInterfaceImplementer p1,
     NoopInterfaceImplementer p2)
 {
     Assert.Equal(p1, p2);
 }
Example #2
0
 public void FreezeFirstParameterByInterfaceShouldNotAssignSameInstanceToSecondParameterOfSameType(
     [Frozen(Matching.ImplementedInterfaces)]NoopInterfaceImplementer p1,
     NoopInterfaceImplementer p2)
 {
     Assert.AreNotEqual(p1, p2);
 }