1 // ================================================================================================
3 // XmlCommentElementのテストクラスソース。</summary>
5 // <copyright file="XmlCommentElementTest.cs" company="honeplusのメモ帳">
6 // Copyright (C) 2011 Honeplus. All rights reserved.</copyright>
9 // ================================================================================================
11 namespace Honememo.Parsers
14 using NUnit.Framework;
17 /// XmlCommentElementのテストクラスです。
20 public class XmlCommentElementTest
28 public void TestConstructor()
30 XmlCommentElement comment = new XmlCommentElement();
31 Assert.IsNull(comment.Text);
33 comment = new XmlCommentElement("test");
34 Assert.AreEqual("test", comment.Text);
39 #region インタフェース実装メソッドテストケース
42 /// ToStringメソッドテストケース。
45 public void TestToString()
47 XmlCommentElement comment = new XmlCommentElement();
48 Assert.AreEqual("<!---->", comment.ToString());
50 comment.Text = "test";
51 Assert.AreEqual("<!--test-->", comment.ToString());
53 comment.ParsedString = "<!--test--";
54 Assert.AreEqual("<!--test--", comment.ToString());