using NUnit.Framework;
/// <summary>
- /// Translatorのテストクラスです。
+ /// <see cref="Translator"/>のテストクラスです。
/// </summary>
[TestFixture]
- public class TranslatorTest
+ class TranslatorTest
{
#region プロパティテストケース
/// <summary>
- /// ItemTableプロパティテストケース。
+ /// <see cref="Translator.ItemTable"/>プロパティテストケース。
/// </summary>
[Test]
public void TestItemTable()
}
/// <summary>
- /// HeadingTableプロパティテストケース。
+ /// <see cref="Translator.HeadingTable"/>プロパティテストケース。
/// </summary>
[Test]
public void TestHeadingTable()
}
/// <summary>
- /// Logプロパティテストケース。
+ /// <see cref="Translator.Log"/>プロパティテストケース。
/// </summary>
[Test]
public void TestLog()
// 更新時にLogUpdateイベントが実行されること
int count = 0;
- translator.LogUpdate += new EventHandler((object sender, EventArgs e) => { ++count; });
+ translator.LogUpdated += new EventHandler((object sender, EventArgs e) => { ++count; });
Assert.AreEqual(0, count);
translator.Logger.AddMessage("ログ");
Assert.AreEqual(1, count);
}
/// <summary>
- /// Textプロパティテストケース。
+ /// <see cref="Translator.Text"/>プロパティテストケース。
/// </summary>
[Test]
public void TestText()
}
/// <summary>
- /// CancellationPendingプロパティテストケース。
+ /// <see cref="Translator.CancellationPending"/>プロパティテストケース。
/// </summary>
[Test]
public void TestCancellationPending()
}
/// <summary>
- /// Fromプロパティテストケース。
+ /// <see cref="Translator.From"/>プロパティテストケース。
/// </summary>
[Test]
public void TestFrom()
}
/// <summary>
- /// Toプロパティテストケース。
+ /// <see cref="Translator.To"/>プロパティテストケース。
/// </summary>
[Test]
public void TestTo()
#region 静的メソッドテストケース
/// <summary>
- /// Createメソッドテストケース。
+ /// <see cref="Translator.Create"/>メソッドテストケース。
/// </summary>
[Test]
public void TestCreate()
}
/// <summary>
- /// Createメソッドテストケース(未対応のトランスレータクラス)。
+ /// <see cref="Translator.Create"/>メソッドテストケース(未対応のトランスレータクラス)。
/// </summary>
[Test]
[ExpectedException(typeof(NotImplementedException))]
}
/// <summary>
- /// Createメソッドテストケース(トランスレータクラス以外の指定)。
+ /// <see cref="Translator.Create"/>メソッドテストケース(トランスレータクラス以外の指定)。
/// </summary>
[Test]
[ExpectedException(typeof(InvalidCastException))]
#region publicメソッドテストケース
/// <summary>
- /// Runメソッドテストケース。
+ /// <see cref="Translator.Run"/>メソッドテストケース。
/// </summary>
[Test]
public void TestRun()
}
/// <summary>
- /// Runメソッドテストケース(必須パラメータ未設定)。
+ /// <see cref="Translator.Run"/>メソッドテストケース(必須パラメータ未設定)。
/// </summary>
[Test]
[ExpectedException(typeof(InvalidOperationException))]
}
/// <summary>
- /// Runメソッドテストケース(ping成功)。
+ /// <see cref="Translator.Run"/>メソッドテストケース(ping成功)。
/// </summary>
[Test]
public void TestRunPing()
}
/// <summary>
- /// Runメソッドテストケース(ping失敗)。
+ /// <see cref="Translator.Run"/>メソッドテストケース(ping失敗)。
/// </summary>
[Test]
[ExpectedException(typeof(ApplicationException))]
#region モッククラス
/// <summary>
- /// Translatorテスト用のモッククラスです。
+ /// <see cref="Translator"/>テスト用のモッククラスです。
/// </summary>
- public class TranslatorMock : Translator
+ private class TranslatorMock : Translator
{
#region テスト支援用プロパティ
}
/// <summary>
- /// Translatorテスト用のモッククラスです。
+ /// <see cref="Translator"/>テスト用のモッククラスです。
/// </summary>
- public class TranslatorIgnoreMock : Translator
+ private class TranslatorIgnoreMock : Translator
{
#region コンストラクタ
}
/// <summary>
- /// Translatorテスト用のモッククラスです。
+ /// <see cref="Translator"/>テスト用のモッククラスです。
/// </summary>
- public class WebsiteMock : Website
+ private class WebsiteMock : Website
{
#region ダミーメソッド