private static void LoadAndCompare(byte[] array, IGridManager fmA) { using (var stream = new MemoryStream(array)) { var fmB = Factory.Instance.LoadGridManager(stream); Assert.That(fmA.Equals(fmB)); } }