Namespace: DeltaEngine.Datatypes
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Tests.Datatypes.SizeTests
4 unit tests call DeltaEngine.Datatypes.Size.Width
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: SingleRemarks
Examples
[Test] public void CreateWithEqualWidthAndHeight() { var size = new Size(-1.2f); Assert.AreEqual(-1.2f, size.Width); Assert.AreEqual(-1.2f, size.Height); }
[Test] public void CreateFromString() { var size = new Size("1.2, 2.4"); Assert.AreEqual(1.2f, size.Width); Assert.AreEqual(2.4f, size.Height); }
[Test] public void ChangeSize() { var size = new Size(1.0f, 1.0f) { Height = 2.1f, Width = 2.1f }; Assert.AreEqual(2.1f, size.Height); Assert.AreEqual(2.1f, size.Width); }
See Also