2021-09-15 18:37:21 +03:00
|
|
|
#if __MACOS__
|
|
|
|
using System;
|
|
|
|
using Foundation;
|
|
|
|
using AVFoundation;
|
|
|
|
using NUnit.Framework;
|
|
|
|
using ObjCRuntime;
|
2021-11-15 10:06:36 +03:00
|
|
|
using Xamarin.Utils;
|
2021-09-15 18:37:21 +03:00
|
|
|
|
|
|
|
namespace MonoTouchFixtures.AVFoundation {
|
|
|
|
|
|
|
|
[TestFixture]
|
|
|
|
[Preserve (AllMembers = true)]
|
|
|
|
public class AVCaptionDimensionTest {
|
|
|
|
|
|
|
|
[SetUp]
|
|
|
|
public void SetUp ()
|
|
|
|
{
|
2022-11-10 19:59:26 +03:00
|
|
|
TestRuntime.AssertSystemVersion (ApplePlatform.MacOSX, 12, 0);
|
2021-09-15 18:37:21 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
[TestCase]
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|