<commit_before>﻿namespace AngleSharp.Core.Tests.Xml
{
    using AngleSharp.Parser.Xml;
    using NUnit.Framework;

    [TestFixture]
    public class XmlTokenization
    {
        [Test]
        public void EmptyXmlDocumentTokenization()
        {
            var s = new TextSource("");
            var t = new XmlTokenizer(s, null);
            var e = t.Get();
            Assert.AreEqual(XmlToken.EOF, e);
        }

        [Test]
        public void OneCommentInXmlDocument()
        {
            var c = "My comment";
            var s = new TextSource("<!--" + c + "-->");
            var t = new XmlTokenizer(s, null);
            var e = t.Get();
            Assert.AreEqual(XmlTokenType.Comment, e.Type);
            Assert.AreEqual(c, ((XmlCommentToken)e).Data);
        }

        [Test]
        public void ValidXmlDeclarationOnlyVersion()
        {<commit_msg>Test for instance type<commit_after>﻿namespace AngleSharp.Core.Tests.Xml
{
    using AngleSharp.Parser.Xml;
    using NUnit.Framework;

    [TestFixture]
    public class XmlTokenization
    {
        [Test]
        public void EmptyXmlDocumentTokenization()
        {
            var s = new TextSource("");
            var t = new XmlTokenizer(s, null);
            var e = t.Get();
            Assert.IsInstanceOf<XmlEndOfFileToken>(e);
        }

        [Test]
        public void OneCommentInXmlDocument()
        {
            var c = "My comment";
            var s = new TextSource("<!--" + c + "-->");
            var t = new XmlTokenizer(s, null);
            var e = t.Get();
            Assert.AreEqual(XmlTokenType.Comment, e.Type);
            Assert.AreEqual(c, ((XmlCommentToken)e).Data);
        }

        [Test]
        public void ValidXmlDeclarationOnlyVersion()
        {
{'fraction_non_alphanumeric': 0.11638418079096045, 'fraction_numerical': 0.0, 'mean_word_length': 1.7330246913580247, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6429168', 'n_tokens_mistral': 518, 'n_tokens_neox': 501, 'n_words': 116}