public void AddAttributeTest()
        {
            var e = m_xml.DocumentElement;

            e = e["b"];
            const string v1 = "furry";

            e.AddAttribute(v1, true);

            var node = m_xml.DocumentElement.SelectSingleNode(@"/a/b[@furry]/attribute::furry");

            Assert.AreEqual <string>("True", node.Value, "Getting the 'Furry' attribute");

            var lookHere = m_xml.DocumentElement.SelectSingleNode(@"//e");

            lookHere.AddAttribute("trunk", "yes");
            node = m_xml.DocumentElement.SelectSingleNode(@"/a/d/e/attribute::trunk");
            Assert.AreEqual <string>("yes", node.Value, "Elephant's Trunk");

            var actual = lookHere.GetAttributeValue("trunk");

            Assert.AreEqual <string>("yes", actual, "its wrong from the GetAttributeValue method");
            actual = lookHere.GetAttributeValue("hoser");
            Assert.IsNull(actual, "The 'horse' shouldn't exist.");

            actual = lookHere.GetRequiredAttribute("trunk");
            Assert.AreEqual <string>("yes", actual, "The Trunk was there");

            try
            {
                XmlExtensions.GetAttributeValue(null, "homer");
                Assert.Fail("Expected exception of type '" + typeof(ArgumentNullException).Name + "' but none was thrown.");
            }
            catch (ArgumentNullException) { }
            catch (Exception __e)
            {
                Assert.Fail("Expected exception of type ArgumentNullException, but " + __e.GetType().ToString() + " was generated instead.");
            }

            try
            {
                XmlExtensions.GetRequiredAttribute(null, "homer");
                Assert.Fail("Expected exception of type '" + typeof(ArgumentNullException).Name + "' but none was thrown.");
            }
            catch (ArgumentNullException) { }
            catch (Exception __e)
            {
                Assert.Fail("Expected exception of type ArgumentNullException, but " + __e.GetType().ToString() + " was generated instead.");
            }

            try
            {
                lookHere.GetRequiredAttribute("homer");
                Assert.Fail("Expected exception of type '" + typeof(ArgumentException).Name + "' but none was thrown.");
            }
            catch (ArgumentException) { }
            catch (Exception __e)
            {
                Assert.Fail("Expected exception of type ArithmeticException, but " + __e.GetType().ToString() + " was generated instead.");
            }
        }