public void Totostringによる確認() { //setUp var expected = "V4Only,INADDR_ANY,IN6ADDR_ANY_INIT"; var sut = new BindAddr(); //exercise var actual = sut.ToString(); //verify Assert.That(actual, Is.EqualTo(expected)); }
public void パラメータBindStyle_ipv4_ipv6でnewしたBindAddrオブジェクトをToStringで確認する( BindStyle bindStyle, string ipV4, string ipV6, string expected) { //setUp var sut = new BindAddr(bindStyle, new Ip(ipV4), new Ip(ipV6)); //exercise var actual = sut.ToString(); //verify Assert.That(actual, Is.EqualTo(expected)); }
public void 文字列でnewしたBindAddrオブジェクトをToStringで確認する(string bindStr, string expected) { //setUp var sut = new BindAddr(bindStr); //exercise var actual = sut.ToString(); //verify Assert.That(actual, Is.EqualTo(expected)); }