Ejemplo n.º 1
0
        public void TestMethod1()
        {
            const string XmlOutput = "<attribute id=\"1\" title=\"my−string−attribute\" type=\"string\" />";

            GexfAttribute attribute = new GexfAttribute()
            {
                Id = "1", Title = "my−string−attribute", Type = GexfAttributeType.String
            };
            XmlTestWriter writer = new XmlTestWriter(attribute, XmlOutput);

            Assert.AreEqual(writer.ExpectedNormalizedXmlOutput, writer.ActualNormalizedXmlOutput);
        }
Ejemplo n.º 2
0
        public void TestMethod1()
        {
            const string XmlOutput = "<attvalue for=\"0\" value=\"http://gephi.org\"/>";

            GexfAttribute attribute = new GexfAttribute()
            {
                Id = "1", Title = "my−string−attribute", Type = GexfAttributeType.String
            };
            GexfAttributeValue attributeValue = new GexfAttributeValue(attribute)
            {
                Value = "http://gephi.org"
            };
            XmlTestWriter writer = new XmlTestWriter(attributeValue, XmlOutput);

            Assert.AreEqual(writer.ExpectedNormalizedXmlOutput, writer.ActualNormalizedXmlOutput);
        }