public void バイナリ初期化との比較() { //setUp RrMx sut = new RrMx("aaa.com", 64800, 20, "1."); var expected = (new RrMx("aaa.com", 64800, new byte[] { 0, 20, 01, 49, 0 })).ToString(); //exercise var actual = sut.ToString(); //verify Assert.That(actual, Is.EqualTo(expected)); }
public void ToStringの確認() { //setUp string expected = "Mx aaa.com TTL=10 10 smtp.aaa.com."; RrMx sut = new RrMx("aaa.com", 10, 10, "smtp.aaa.com."); //exercise string actual = sut.ToString(); //verify Assert.That(actual, Is.EqualTo(expected)); }
public void 実パケット生成したオブジェクトとの比較() { //setUp RrMx sut = new RrMx("aaa.com", 0x00000289, 30, "alt3.gmail-smtp-in.l.google.com"); PacketRr rr = new PacketRr(TestUtil.HexStream2Bytes(str0), 0); var expected = (new RrMx("aaa.com", rr.Ttl, rr.Data)).ToString(); //exercise var actual = sut.ToString(); //verify Assert.That(actual, Is.EqualTo(expected)); }