public void RemoveWorks()
        {
            ModelUIPartList partList = new ModelUIPartList();

            partList.AppendPart(new DummyPart("1"));
            partList.AppendPart(new DummyPart("5"));
            partList.AppendPart(new DummyPart("2"));

            partList.RemovePart("5");

            AssertSequentialPartList(partList, 2);
        }
        public void RemoveNotFoundDoesNothingAndThrows()
        {
            ModelUIPartList partList = new ModelUIPartList();

            partList.AppendPart(new DummyPart("1"));
            partList.AppendPart(new DummyPart("2"));
            partList.AppendPart(new DummyPart("3"));

            Assert.Throws <ArgumentOutOfRangeException>(
                () => partList.RemovePart("not found")
                );

            AssertSequentialPartList(partList, 3);
        }