public void GetDataPins_WithItem_2()
        {
            Item item = new Item
            {
                CreatorId   = "zeus",
                UserId      = "zeus",
                Title       = "Mock",
                Description = "A mock item",
                FacetId     = "default",
                SortKey     = "mock"
            };
            TokenTextPart textPart = new TokenTextPart
            {
                ItemId    = item.Id,
                CreatorId = item.CreatorId,
                UserId    = item.UserId,
            };

            textPart.Lines.Add(new TextLine
            {
                Text = "quae bixit annis X",
                Y    = 1
            });
            item.Parts.Add(textPart);

            TokenTextLayerPart <OrthographyLayerFragment> layerPart =
                new TokenTextLayerPart <OrthographyLayerFragment>();
            OrthographyLayerFragment fr;

            layerPart.AddFragment(fr = new OrthographyLayerFragment
            {
                Location = "1.2",
                Standard = "vixit",
            });
            item.Parts.Add(layerPart);

            List <DataPin> pins = fr.GetDataPins(item).ToList();

            Assert.Equal(2, pins.Count);

            DataPin pin = pins.Find(p => p.Name == "fr.orthography-txt");

            Assert.NotNull(pin);
            Assert.Equal("bixit", pin.Value);

            pin = pins.Find(p => p.Name == "fr.orthography-std");
            Assert.NotNull(pin);
            Assert.Equal("vixit", pin.Value);
        }
        public void GetDataPins_TaggedOperations_2()
        {
            OrthographyLayerFragment fr = GetFragment(
                "\"b\"@1x1=\"v\" [c]",
                "\"e\"@1x1=\"ae\" [v]",
                "\"b\"@1x1=\"p\" [c]");

            List <DataPin> pins = fr.GetDataPins().ToList();

            Assert.Equal(2, pins.Count);
            DataPin pin = pins[0];

            Assert.Equal("fr.msp.c", pin.Name);
            Assert.Equal("2", pin.Value);

            pin = pins[1];
            Assert.Equal("fr.msp.v", pin.Name);
            Assert.Equal("1", pin.Value);
        }
        public void GetDataPins_NoOperations_0()
        {
            OrthographyLayerFragment fr = GetFragment();

            Assert.Empty(fr.GetDataPins());
        }
        public void GetDataPins_NoTaggedOperations_0()
        {
            OrthographyLayerFragment fr = GetFragment("\"b\"@1x1=\"v\"");

            Assert.Empty(fr.GetDataPins());
        }