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); }
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; }
public void New_instance_with_record_type_succeeds() { var record = new Record(RecordType.A); Assert.IsTrue(record.RecordType == RecordType.A); }