예제 #1
0
        public void SerializeLabelStyleDescription()
        {
            LabelStyle labelStyle = new LabelStyle();

            labelStyle.Description = new Description("description", "abstract");

            String xml = OgcSymbologySerialize.LabelStyle(labelStyle);

            StringAssert.Contains(@"<Title>description</Title>", xml);
            StringAssert.Contains(@"<Abstract>abstract</Abstract>", xml);
        }
예제 #2
0
        public void SerializeLabelStyleName()
        {
            LabelStyle labelStyle = new LabelStyle();

            labelStyle.Name = "Test Style";

            String xml = OgcSymbologySerialize.LabelStyle(labelStyle);

            StringAssert.Contains(@"<Name>Test Style</Name>", xml);
            StringAssert.Contains(@"<FeatureTypeStyle", xml);
        }