[TestCase(3, "\t")] //無効文字列 public void FromRegに無効な入力があった時falseが帰る(int max, String str) { //setUp var sut = new OneDat(true, new String[max], new bool[max]); var expected = false; //exercise var actual = sut.FromReg(str); //verify Assert.That(actual, Is.EqualTo(expected)); }
public void FromRegで初期化してToRegで出力する(int max, String str) { //setUp var sut = new OneDat(true, new String[max], new bool[max]); sut.FromReg(str); var expected = str; //exercise var actual = sut.ToReg(false); //verify Assert.That(actual, Is.EqualTo(expected)); }