コード例 #1
0
 public void ConvertToKml_With_Style_From_Enum()
 {
     var testObject = new TestObject2() { TestAsDescription = "Description", TestAsTitle = "Title", TestAsGeometry = GeoUtils.CreatePoint(10, 5), TestAsStyle = StyleName.Stefania };
     GeoKmlConverter converter = new GeoKmlConverter();
     var xml = converter.ConvertToGeoKml<TestObject2>(testObject);
     xml.Should().Contain("#stefania");
 }
コード例 #2
0
        public void ConvertToKml_With_Style_From_Enum()
        {
            var testObject = new TestObject2()
            {
                TestAsDescription = "Description", TestAsTitle = "Title", TestAsGeometry = GeoUtils.CreatePoint(10, 5), TestAsStyle = StyleName.Stefania
            };
            GeoKmlConverter converter = new GeoKmlConverter();
            var             xml       = converter.ConvertToGeoKml <TestObject2>(testObject);

            xml.Should().Contain("#stefania");
        }