ToArray() 공개 메소드

public ToArray ( ) : byte[]
리턴 byte[]
예제 #1
0
        public void BasicQuestionWithEmptyDomain() {
            byte[] content = Helper.ReadFixture("Question", "empty-domain_basic");
            Domain domain = new Domain(Helper.GetArray<string>());
            Question question = new Question(domain, RecordType.A, RecordClass.IN);

            CollectionAssert.AreEqual(content, question.ToArray());
        }
예제 #2
0
        public void AllSetQuestionWithMultipleLabelDomain() {
            byte[] content = Helper.ReadFixture("Question", "www.google.com_all");
            Domain domain = new Domain(Helper.GetArray("www", "google", "com"));
            Question question = new Question(domain, RecordType.CNAME, RecordClass.ANY);

            CollectionAssert.AreEqual(content, question.ToArray());
        }