Пример #1
0
        public void New_instance_with_args_succeeds()
        {
            var exptectedText = "ExpectedText";
            var record = new Record(RecordType.A, exptectedText);

            Assert.IsTrue(record.RecordType == RecordType.A);
            Assert.AreEqual(record.Text, exptectedText);
        }
Пример #2
0
        public bool Read(out Record record)
        {
            record = null;

            if (!this.reader.BaseStream.CanRead || this.reader.EndOfStream)
                return false;

            var text = reader.ReadLine();
            record = this.recordReader.Read(text);
            return true;
        }
Пример #3
0
 public void New_instance_with_record_type_succeeds()
 {
     var record = new Record(RecordType.A);
     Assert.IsTrue(record.RecordType == RecordType.A);
 }