public void RemoveLiteralWorksAsExpected()
        {
            // --- Arrange
            const string LABEL = "MyLabel";
            var          dc    = new DisassemblyAnnotation();

            dc.AddLiteral(0x1000, LABEL);

            // --- Act
            var result = dc.RemoveLiteral(0x1000, LABEL);

            // --- Assert
            result.ShouldBe(true);
            dc.Literals.Count.ShouldBe(0);
        }
        public void RemoveLiteralKeepsUntouchedKeys()
        {
            // --- Arrange
            const string LABEL  = "MyLabel";
            const string LABEL2 = "MyLabel2";
            var          dc     = new DisassemblyAnnotation();

            dc.AddLiteral(0x1000, LABEL);
            dc.AddLiteral(0x2000, LABEL2);

            // --- Act
            var result1 = dc.RemoveLiteral(0x1000, LABEL);

            // --- Assert
            result1.ShouldBe(true);
            dc.Literals.Count.ShouldBe(1);
            var literals = dc.Literals[0x2000];

            literals.Count.ShouldBe(1);
            literals.ShouldContain(l => l == LABEL2);
        }