メソッドの単体テストを作成しようとしていますが、正しく構成できないようです。New Test -> Unit Test Wizard -> Pick my method -> テスト メソッドの値を入力しますが、常に Assert.Inconclusive が失敗しました。このテスト方法の正しさを検証してください。
サンプルメソッドは次のとおりです。
namespace ConsoleApplication
{
class Program
{
static void Main(string[] args)
{
}
public int Mult(int a, int b)
{
return a * b;
}
}
}
そしてテスト方法:
[TestMethod()]
public void MultTest()
{
Program target = new Program(); // TODO: Initialize to an appropriate value
int a = 4; // TODO: Initialize to an appropriate value
int b = 5; // TODO: Initialize to an appropriate value
int expected = 20; // TODO: Initialize to an appropriate value
int actual;
actual = target.Mult(a, b);
Assert.AreEqual(expected, actual);
Assert.Inconclusive("Verify the correctness of this test method.");
}
簡単なことのように思えますが、些細なことを見逃していますか?