public void WhenCommandExistsAtIndexPosition_ShouldSetCommandAtIndex() { _classUnderTest.Add(new RenameToGuidCommand()); _classUnderTest.Add(new InsertStringCommand(0, "prefix-")); _classUnderTest[1] = new RenameToGuidCommand(); Assert.IsInstanceOf <RenameToGuidCommand>(_classUnderTest[1]); }
public void SetUp() { _classUnderTest = new RenameToGuidCommand(); }