X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=WptscsTest%2FModels%2FTranslationTableTest.cs;h=3da0b64372bf7f017bd955305b5d3f98a1378cca;hb=1db23055b1f6bbba4c056ce39f6ea29d102805ba;hp=330ad5c188bc0a7adf5f3b750dc22991cf676068;hpb=75c6c23b34fcffb166415978a1328bd727f98179;p=wptscs%2Fwpts.git diff --git a/WptscsTest/Models/TranslationTableTest.cs b/WptscsTest/Models/TranslationTableTest.cs index 330ad5c..3da0b64 100644 --- a/WptscsTest/Models/TranslationTableTest.cs +++ b/WptscsTest/Models/TranslationTableTest.cs @@ -17,12 +17,12 @@ namespace Honememo.Wptscs.Models using System.Text; using System.Xml; using System.Xml.Serialization; - using NUnit.Framework; + using Microsoft.VisualStudio.TestTools.UnitTesting; /// - /// TranslationTableのテストクラスです。 + /// のテストクラスです。 /// - [TestFixture] + [TestClass] public class TranslationTableTest { #region 公開メソッドテストケース @@ -30,7 +30,7 @@ namespace Honememo.Wptscs.Models /// /// GetWordメソッドテストケース。 /// - [Test] + [TestMethod] public void TestGetWord() { TranslationTable table = new TranslationTable(); @@ -44,17 +44,17 @@ namespace Honememo.Wptscs.Models Assert.AreEqual("関連項目", table.GetWord("see also")); Assert.AreEqual("関連項目", table.GetWord("see")); Assert.IsNull(table.GetWord("test")); - Assert.IsNull(table.GetWord(String.Empty)); + Assert.IsNull(table.GetWord(string.Empty)); Assert.AreEqual("See also", table.GetWord("ja", "en", "関連項目")); - Assert.IsNull(table.GetWord("ja", "en", String.Empty)); - Assert.IsNull(table.GetWord("ja", String.Empty, String.Empty)); - Assert.IsNull(table.GetWord(String.Empty, String.Empty, String.Empty)); + Assert.IsNull(table.GetWord("ja", "en", string.Empty)); + Assert.IsNull(table.GetWord("ja", string.Empty, string.Empty)); + Assert.IsNull(table.GetWord(string.Empty, string.Empty, string.Empty)); } /// /// GetWordメソッドテストケース(fromがnull)。 /// - [Test] + [TestMethod] [ExpectedException(typeof(ArgumentNullException))] public void TestGetWordFromNull() { @@ -65,7 +65,7 @@ namespace Honememo.Wptscs.Models /// /// GetWordメソッドテストケース(toがnull)。 /// - [Test] + [TestMethod] [ExpectedException(typeof(ArgumentNullException))] public void TestGetWordToNull() { @@ -76,7 +76,7 @@ namespace Honememo.Wptscs.Models /// /// GetWordメソッドテストケース(wordがnull)。 /// - [Test] + [TestMethod] [ExpectedException(typeof(ArgumentNullException))] public void TestGetWordWordNull() { @@ -87,7 +87,7 @@ namespace Honememo.Wptscs.Models /// /// GetWordメソッドテストケース(プロパティがnull)。 /// - [Test] + [TestMethod] [ExpectedException(typeof(InvalidOperationException))] public void TestGetWordPropertyNull() { @@ -102,7 +102,7 @@ namespace Honememo.Wptscs.Models /// /// XMLデシリアライズテストケース。 /// - [Test] + [TestMethod] public void TestReadXml() { TranslationTable table; @@ -127,7 +127,7 @@ namespace Honememo.Wptscs.Models /// /// XMLシリアライズテストケース。 /// - [Test] + [TestMethod] public void TestWriteXml() { TranslationTable table = new TranslationTable();