public override void Verify_Version_element_After_Trying_to_Change(string beforeChange, string afterChange , InitializeProviderCallback <ChangedVersionProvider> init, bool expectedTried) { var provider = CreateNew(); // We do not actually use the Out Parameter in this instance on account it Should Throw. Assert.Throws <NotImplementedException>(() => provider.TryChange(beforeChange, out var _)); }
public override void Verify_Version_element_After_Trying_to_Change(string beforeChange, string afterChange, InitializeProviderCallback <NoOpVersionProvider> init, bool expectedTried) { var provider = CreateNew(); init?.Invoke(provider); Assert.Equal(expectedTried, provider.TryChange(beforeChange, out var actualAfterChange)); Assert.Equal(afterChange, actualAfterChange); }
public override void Verify_Version_element_After_Trying_to_Change(string beforeChange, string afterChange, InitializeProviderCallback <IncrementVersionProvider> init, bool expectedTried) { var provider = CreateNew(); init?.Invoke(provider); // Throws nothing simply allows it to happen bereft of test framework involvement. Assert.Equal(expectedTried, provider.TryChange(beforeChange, out var actualAfterChange)); Assert.Equal(afterChange, actualAfterChange); }
public override void Verify_Version_element_After_Trying_to_Change(string beforeChange , string afterChange, InitializeProviderCallback <DayVersionProvider> init, bool expectedTried) { base.Verify_Version_element_After_Trying_to_Change(beforeChange, afterChange, init, expectedTried); }
public abstract void Verify_Version_element_After_Trying_to_Change(string beforeChange , string afterChange, InitializeProviderCallback <T> init, bool expectedTried);
public override void Verify_Version_element_After_Trying_to_Change(string beforeChange , string afterChange, InitializeProviderCallback <UnknownVersionProvider> init, bool expectedTried) { var provider = CreateNew(); Assert.Throws <NotImplementedException>(() => provider.TryChange(beforeChange, out var x)); }