public void TestMaketagFromString() { string f = @"../../catlmodule-class.md"; string content = File.ReadAllText(f); string yml = YMLMeister.GetYmlBlock(content); Debug.WriteLine("-----Get All tags-----"); var matches = YMLMeister.GetAllTags(yml); Debug.WriteLine("<---output ends here"); var tags = new List <Tag>(); foreach (string m in matches) { var t = new Tag(m); tags.Add(t); Debug.WriteLine("tag name is: " + t.TagName); foreach (var i in t.TagValues) { Debug.WriteLine(" " + i); } } Debug.WriteLine("make tags from those same tuples:"); foreach (var v in tags) { Debug.WriteLine(v.ToString()); } }
public void TestGetAllTagsWithCPPBracketKeywords() { string f = @"../../catlmodule-class.md"; string content = File.ReadAllText(f); string yml = YMLMeister.GetYmlBlock(content); Debug.WriteLine("-----Get All tags-----"); var tags = YMLMeister.GetAllTags(yml); Debug.WriteLine("<---output ends here"); foreach (string s in tags) { Debug.WriteLine(s); } // Assert.AreEqual(result.Length, 207); }