public static DwgDrawing RoundTrip(DwgDrawing drawing) { using (var ms = new MemoryStream()) { drawing.Save(ms); ms.Seek(0, SeekOrigin.Begin); return(DwgDrawing.Load(ms)); } }
public void NextAvailableHandle() { var drawing = new DwgDrawing(); Assert.True(drawing.Variables.NextAvailableHandle.IsEmpty); using (var ms = new MemoryStream()) { drawing.Save(ms); } Assert.False(drawing.Variables.NextAvailableHandle.IsEmpty); }