url: http://codezine.jp/article/detail/6590?p=2
snippet:
-----引用-----
using NUnit.Framework;
using CsTdd04.FizzBuzz;
namespace CsTdd04.FizzBuzzTest {
[TestFixture]
public class FizzBuzzerTest {
[TestCase(1, "1")]
[TestCase(3, "Fizz")]
[TestCase(5, "Buzz")]
[TestCase(6, "Fizz")]
[TestCase(9, "Fizz")]
[TestCase(10, "Buzz")]
[TestCase(12, "Buzz")]
[TestCase(15, "FizzBuzz")]
public void SayTest(int n, string expected) {
Assert.That((new FizzBuzzer()).Say(n), Is.EqualTo(expected));
}
}
}
-----引用-----
0 件のコメント:
コメントを投稿