public void TryingToUnsetAnExplicitConstructionMethod_WithAnotherExplicitConstructionMethodSet_ReturnsFalse() { TypeConstruction.SetExplicitConstructionMethod(ExplicitConstruction); Assert.That(TypeConstruction.TryUnsetExplicitConstructionMethod(OtherExplicitConstruction), Is.False); TypeConstruction.UnsetExplicitConstructionMethod(ExplicitConstruction); }
public void TryingToSetAndUnsetAnExplicitConstructionMethod_WhenNoneAlreadySet_ReturnsTrue() { Assert.That(TypeConstruction.TrySetExplicitConstructionMethod(ExplicitConstruction), Is.True); Assert.That(TypeConstruction.TryUnsetExplicitConstructionMethod(ExplicitConstruction), Is.True); }
public void TryingToUnsetAnExplicitConstructionMethod_WhenNoExplicitConstructionMethodIsRegistered_ReturnsFalse() { Assert.That(TypeConstruction.TryUnsetExplicitConstructionMethod(ExplicitConstruction), Is.False); }