public void GivenCreatorIsEmptyWhenWritingXmlThenCreatorIsNotWritte() { GexfDescriptionMetadata metadata = new GexfDescriptionMetadata(); XmlTestWriter writer = new XmlTestWriter(metadata, ""); Assert.IsTrue(writer.ActualNormalizedXmlOutput.Length == 0); }
public void GivenCreatorIsNotEmptyWhenWritingXmlThenCreatorIsWritten() { GexfDescriptionMetadata metadata = new GexfDescriptionMetadata { Description = "Some description" }; XmlTestWriter writer = new XmlTestWriter(metadata, XmlOutput); Assert.AreEqual(writer.ExpectedNormalizedXmlOutput, writer.ActualNormalizedXmlOutput); }