public void CreateTest() { // create a new struct, test that we do have the expected values nfloat val = 10; var units = AVCaptionUnitsType.Cells; var dimension = AVCaptionDimension.Create(val, units); Assert.AreEqual(val, dimension.Value, "Value"); Assert.AreEqual(units, dimension.Units); }
public void CreateTest() { nfloat val = 10; var units = AVCaptionUnitsType.Cells; var firstDimension = AVCaptionDimension.Create(val, units); var secondDimension = AVCaptionDimension.Create(val, units); var size = AVCaptionSize.Create(firstDimension, secondDimension); Assert.AreEqual(val, size.Width.Value, "Width"); Assert.AreEqual(val, size.Height.Value, "Height"); }
public void CreateTest() { nfloat val = 10; var units = AVCaptionUnitsType.Cells; var firstDimension = AVCaptionDimension.Create(val, units); var secondDimension = AVCaptionDimension.Create(val, units); var point = AVCaptionPoint.Create(firstDimension, secondDimension); Assert.AreEqual(val, point.X.Value, "X"); Assert.AreEqual(val, point.Y.Value, "Y"); }