public void WhenLengthSet_ThenSet(int position, int length, string expected) { var sut = new RemovePositionCommand(position, length).SetValue(Value); sut.Execute(); Assert.That(sut.Result, Is.EqualTo(expected)); }
public void WhenValueIsNullOrEmpty_ThenSetSame(string value) { var sut = new RemovePositionCommand(0, 1).SetValue(value); sut.Execute(); Assert.That(sut.Result, Is.EqualTo(value)); }