public void DuplicateLocationBug() { InMemoryRecord record = ProductionRecords.NewRecord(); Assert.That(record.Location, Is.EqualTo(location)); Assert.That(record.Fields.Count(field => field.Name == "Location"), Is.EqualTo(1)); InMemoryRecord clone = record.Clone(); Assert.That(clone.Location, Is.EqualTo(location)); Assert.That(clone.Fields.Count(field => field.Name == "Location"), Is.EqualTo(1)); }
public void NormalRecord() { InMemoryRecord record = ProductionRecords.NewRecord(); Assert.That(record, Is.Not.Null); Assert.That(record.Module, Is.EqualTo(module)); Assert.That(record.Location, Is.EqualTo(location)); InMemoryRecord newRecord = ProductionRecords.NewRecord(); Assert.That(record.RecordId, Is.Not.EqualTo(newRecord.RecordId)); }