/Spec_case_from_value1.cs Secret
Last active
November 1, 2021 13:19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Xml.Linq; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
public partial class ToXMLSpec | |
{ | |
[TestMethod] | |
public void from_value1() | |
{ | |
//Arrange | |
var yamltext = @"--- | |
a | |
..."; | |
var map = yaml.deserial(yamltext); | |
var expected_xmltext = | |
@"<yaml> | |
<value>a</value> | |
</yaml>"; | |
//Act | |
var xml = XDocument.Parse(yaml.AsXml_1dot0(map)); | |
//Assert | |
Assert.AreEqual("yaml", xml.Root.Name); | |
Assert.AreEqual(expected_xmltext, $"{xml}"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment