public void TestElementWithExtraAttributes() { var elem = new VoiceResponse(); elem.SetOption("newParam1", "value"); elem.SetOption("newParam2", 1); Assert.AreEqual( "<?xml version=\"1.0\" encoding=\"utf-8\"?>" + Environment.NewLine + "<Response newParam1=\"value\" newParam2=\"1\"></Response>", elem.ToString() ); }