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