1 // ================================================================================================
3 // TextElementのテストクラスソース。</summary>
5 // <copyright file="TextElementTest.cs" company="honeplusのメモ帳">
6 // Copyright (C) 2011 Honeplus. All rights reserved.</copyright>
9 // ================================================================================================
11 namespace Honememo.Parsers
14 using NUnit.Framework;
17 /// TextElementのテストクラスです。
20 public class TextElementTest
28 public void TestConstructor()
30 TextElement element = new TextElement();
31 Assert.IsNull(element.Text);
33 element = new TextElement("test");
34 Assert.AreEqual("test", element.Text);
45 public void TestText()
47 TextElement element = new TextElement();
49 Assert.IsNull(element.Text);
50 element.Text = "test";
51 Assert.AreEqual("test", element.Text);
56 #region インタフェース実装メソッドテストケース
59 /// ToStringメソッドテストケース。
62 public void TestToString()
64 TextElement element = new TextElement();
66 Assert.IsEmpty(element.ToString());
67 element.Text = "test";
68 Assert.AreEqual("test", element.ToString());