public void ToStringの確認() { //setUp var expected = "Cname ns.aaa.com. TTL=222 www.aaa.com."; var sut = new RrCname("ns.aaa.com.", 222, "www.aaa.com."); //exercise var actual = sut.ToString(); //verify Assert.That(actual, Is.EqualTo(expected)); }
public void バイナリ初期化との比較() { //setUp var sut = new RrCname("aaa.com", 64800, "1."); var expected = (new RrCname("aaa.com", 64800, new byte[] { 01, 49, 0 })).ToString(); //exercise var actual = sut.ToString(); //verify Assert.That(actual, Is.EqualTo(expected)); }
public void 実パケット生成したオブジェクトとの比較() { //setUp var sut = new RrCname("aaa.com", 0x00000067, "ytimg.l.google.com"); var rr = new PacketRr(TestUtil.HexStream2Bytes(Str0), 0); var expected = (new RrCname("aaa.com", rr.Ttl, rr.Data)).ToString(); //exercise var actual = sut.ToString(); //verify Assert.That(actual, Is.EqualTo(expected)); }