public void StructPropertyTypedWrite() { using (var stream = new MemoryStream()) using (var writer = new BinaryWriter(stream)) { var prop = new StructProperty(StructTypedName) { Data = new LinearColor(StructTypedDataR, StructTypedDataG, StructTypedDataB, StructTypedDataA) }; prop.Serialize(writer); Assert.AreEqual(16, prop.SerializedLength); CollectionAssert.AreEqual(StructTypedBytes, stream.ToArray()); } }