Ejemplo n.º 1
0
 public void GetLinkType_MindMateNode()
 {
     var n = new MapNode(new MapTree(), null);
     n.Link = @"#abc";
     Assert.AreEqual(n.GetLinkType(), NodeLinkType.MindMapNode);
 }
Ejemplo n.º 2
0
 public void GetLinkType_Mp4_Video()
 {
     var n = new MapNode(new MapTree(), null);
     n.Link = "abc.Mp4";
     Assert.AreEqual(n.GetLinkType(), NodeLinkType.VideoFile);
 }
Ejemplo n.º 3
0
 public void GetLinkType_MAILTO_Email()
 {
     var n = new MapNode(new MapTree(), null);
     n.Link = "MAILTO:";
     Assert.AreEqual(n.GetLinkType(), NodeLinkType.EmailLink);
 }
Ejemplo n.º 4
0
 public void GetLinkType_Mail_NotEmail()
 {
     var n = new MapNode(new MapTree(), null);
     n.Link = "mail";
     Assert.AreNotEqual(n.GetLinkType(), NodeLinkType.EmailLink);
 }
Ejemplo n.º 5
0
 public void GetLinkType_InternetLink()
 {
     var n = new MapNode(new MapTree(), null);
     n.Link = "HTTPS://";
     Assert.AreEqual(n.GetLinkType(), NodeLinkType.InternetLink);
 }
Ejemplo n.º 6
0
 public void GetLinkType_Gif_Image()
 {
     var n = new MapNode(new MapTree(), null);
     n.Link = "abc.gif";
     Assert.AreEqual(n.GetLinkType(), NodeLinkType.ImageFile);
 }
Ejemplo n.º 7
0
 public void GetLinkType_Folder()
 {
     var n = new MapNode(new MapTree(), null);
     n.Link = @"\abc";
     Assert.AreEqual(n.GetLinkType(), NodeLinkType.Folder);
 }
Ejemplo n.º 8
0
 public void GetLinkType_Exe()
 {
     var n = new MapNode(new MapTree(), null);
     n.Link = "abc.exe";
     Assert.AreEqual(n.GetLinkType(), NodeLinkType.Executable);
 }
Ejemplo n.º 9
0
 public void GetLinkType_Empty()
 {
     var n = new MapNode(new MapTree(), null);
     Assert.AreEqual(n.GetLinkType(), NodeLinkType.Empty);
 }