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"); }
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"); }