Пример #1
0
		public void Render ()
		{
			HtmlMetaPoker meta = new HtmlMetaPoker ();
			meta.Name = "Name";
			meta.Content = "Content";
			meta.HttpEquiv = "Equiv";
			meta.Scheme = "Scheme";
			HtmlDiff.AssertAreEqual ("<meta name=\"Name\" content=\"Content\" http-equiv=\"Equiv\" scheme=\"Scheme\" />", meta.Render(), "A1");
		}
Пример #2
0
        public void Render()
        {
            HtmlMetaPoker meta = new HtmlMetaPoker();

            meta.Name      = "Name";
            meta.Content   = "Content";
            meta.HttpEquiv = "Equiv";
            meta.Scheme    = "Scheme";
            HtmlDiff.AssertAreEqual("<meta name=\"Name\" content=\"Content\" http-equiv=\"Equiv\" scheme=\"Scheme\" />", meta.Render(), "A1");
        }
Пример #3
0
        public void Defaults()
        {
            HtmlMetaPoker meta = new HtmlMetaPoker();

            Assert.AreEqual("", meta.Content, "A1");
            Assert.AreEqual("", meta.HttpEquiv, "A2");
            Assert.AreEqual("", meta.Name, "A3");
            Assert.AreEqual("", meta.Scheme, "A4");
            Assert.AreEqual(0, meta.Attributes.Count, "A5");
        }
Пример #4
0
		public void Defaults ()
		{
			HtmlMetaPoker meta = new HtmlMetaPoker ();

			Assert.AreEqual ("", meta.Content, "A1");
			Assert.AreEqual ("", meta.HttpEquiv, "A2");
			Assert.AreEqual ("", meta.Name, "A3");
			Assert.AreEqual ("", meta.Scheme, "A4");
			Assert.AreEqual (0, meta.Attributes.Count, "A5");
		}
Пример #5
0
        public void Setters()
        {
            HtmlMetaPoker meta = new HtmlMetaPoker();

            meta.Name      = "Name";
            meta.Content   = "Content";
            meta.HttpEquiv = "Equiv";
            meta.Scheme    = "Scheme";

            Assert.AreEqual("Name", meta.Name, "A1");
            Assert.AreEqual("Content", meta.Content, "A2");
            Assert.AreEqual("Equiv", meta.HttpEquiv, "A3");
            Assert.AreEqual("Scheme", meta.Scheme, "A4");

            Assert.AreEqual(4, meta.Attributes.Count, "A2");
        }
Пример #6
0
		public void Setters ()
		{
			HtmlMetaPoker meta = new HtmlMetaPoker ();

			meta.Name = "Name";
			meta.Content = "Content";
			meta.HttpEquiv = "Equiv";
			meta.Scheme = "Scheme";

			Assert.AreEqual ("Name", meta.Name, "A1");
			Assert.AreEqual ("Content", meta.Content, "A2");
			Assert.AreEqual ("Equiv", meta.HttpEquiv, "A3");
			Assert.AreEqual ("Scheme", meta.Scheme, "A4");

			Assert.AreEqual (4, meta.Attributes.Count, "A2");
		}
Пример #7
0
        public void Render_Empty()
        {
            HtmlMetaPoker meta = new HtmlMetaPoker();

            Assert.AreEqual("<meta />", meta.Render(), "A1");
        }
Пример #8
0
		public void Render_Empty ()
		{
			HtmlMetaPoker meta = new HtmlMetaPoker ();
			Assert.AreEqual ("<meta />", meta.Render(), "A1");
		}