Namespace: DeltaEngine.Scenes.Tests.Controls
Assembly: DeltaEngine.Scenes.Tests (in DeltaEngine.Scenes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Scenes.Tests (in DeltaEngine.Scenes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void SaveAndLoad() { var stream = BinaryDataExtensions.SaveToMemoryStream(dropdownList); var loadedDropdownList = (DropdownList)stream.CreateFromMemoryStream(); Assert.AreEqual(dropdownList.DrawArea, loadedDropdownList.DrawArea); Assert.AreEqual(3, loadedDropdownList.Values.Count); Assert.AreEqual(dropdownList.Values[1].ToString(), loadedDropdownList.Values[1].ToString()); }
See Also