Esempio n. 1
0
        public void ToDot_Should_Use_Name_As_Label_If_No_Label_Specified() {
            var element = new RecordElement("recordName");
            Assert.AreEqual(element.ToDot(), @"<recordName> recordName");

            element.Label = String.Empty;
            Assert.AreEqual(element.ToDot(), @"<recordName> recordName");
        }
 public void ToDot_Should_Produce_Correct_Output()
 {
     var element = new RecordElement("recordName") {Label = "recordLabel"};
     Assert.AreEqual(element.ToDot(), "<recordName> recordLabel");
 }
 public void ToDot_Should_Escape_Bad_Characters()
 {
     var element = new RecordElement("recordName") { Label = "<{record | | Label}>" };
     Assert.AreEqual(element.ToDot(), @"<recordName> \<\{record\ \|\ \|\ Label\}\>");
 }
 public void IsInverted_Should_Surround_With_Curly_Braces()
 {
     var element = new RecordElement("recordName") { IsInverted = true };
     Assert.AreEqual(element.ToDot(), @"{<recordName> recordName}");
 }