public void ShouldWriteRegionAttribute() { writer = new XmlGeneratorWriter(); var testHelper = new XmlWriterTestHelper<GeneratorMapping>(); testHelper.Check(x => x.Class, "class").MapsToAttribute("class"); testHelper.VerifyAll(writer); }
public void ShouldWriteRegionAttribute() { writer = new XmlGeneratorWriter(); var testHelper = new XmlWriterTestHelper <GeneratorMapping>(); testHelper.Check(x => x.Class, "class").MapsToAttribute("class"); testHelper.VerifyAll(writer); }
public void ShouldWriteParams() { var mapping = new GeneratorMapping(); mapping.Params.Add("first", "value"); mapping.Params.Add("second", "another-value"); writer = new XmlGeneratorWriter(); writer.VerifyXml(mapping) .Element("param[@name='first']").HasInnerXml("value") .Element("param[@name='second']").HasInnerXml("another-value"); }
public void ShouldWriteParams() { var mapping = new GeneratorMapping(); mapping.Params.Add("first", "value"); mapping.Params.Add("second", "another-value"); writer = new XmlGeneratorWriter(); writer.VerifyXml(mapping) .Element("param[@name='first']").HasInnerXml("value") .Element("param[@name='second']").HasInnerXml("another-value"); }