示例#1
0
 public void TryingToUnsetAnExplicitConstructionMethod_WithAnotherExplicitConstructionMethodSet_ReturnsFalse()
 {
     TypeConstruction.SetExplicitConstructionMethod(ExplicitConstruction);
     Assert.That(TypeConstruction.TryUnsetExplicitConstructionMethod(OtherExplicitConstruction), Is.False);
     TypeConstruction.UnsetExplicitConstructionMethod(ExplicitConstruction);
 }
示例#2
0
 public void TryingToSetAndUnsetAnExplicitConstructionMethod_WhenNoneAlreadySet_ReturnsTrue()
 {
     Assert.That(TypeConstruction.TrySetExplicitConstructionMethod(ExplicitConstruction), Is.True);
     Assert.That(TypeConstruction.TryUnsetExplicitConstructionMethod(ExplicitConstruction), Is.True);
 }
示例#3
0
 public void TryingToUnsetAnExplicitConstructionMethod_WhenNoExplicitConstructionMethodIsRegistered_ReturnsFalse()
 {
     Assert.That(TypeConstruction.TryUnsetExplicitConstructionMethod(ExplicitConstruction), Is.False);
 }