public void Should_Return_1_Variable_assignement_with_1_Level_Children() { var xml = @"<pd:inputBindings xmlns:pd=""http://xmlns.tibco.com/bw/process/2003"" xmlns:xsl=""http://w3.org/1999/XSL/Transform""> <sqlParams> <FundName> <xsl:value-of select=""'testvalue'""/> </FundName> <AdminID> <xsl:value-of select=""'EVL'""/> </AdminID> </sqlParams> </pd:inputBindings> "; XElement doc = XElement.Parse(xml); var generateCode = TestCodeGeneratorUtils.GenerateCode(xslBuilder.Build(doc.Nodes())); Assert.AreEqual(@"sqlParams sqlParams = new sqlParams(); sqlParams.FundName = ""testvalue""; sqlParams.AdminID = ""EVL""; ".RemoveWindowsReturnLineChar(), generateCode); }