Exemple #1
0
        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));
        }
Exemple #2
0
        public void WhenValueIsNullOrEmpty_ThenSetSame(string value)
        {
            var sut = new RemovePositionCommand(0, 1).SetValue(value);

            sut.Execute();

            Assert.That(sut.Result, Is.EqualTo(value));
        }