[xcode12] [Bug] Fix AVAudioFormat failure on older OS (#9474)
* fix_avaudioformat_monotouch_failure Co-authored-by: Whitney Schmidt <whschm@microsoft.com>
This commit is contained in:
Родитель
b106e47dac
Коммит
cc65a73493
|
@ -7,12 +7,21 @@ using System;
|
||||||
using Foundation;
|
using Foundation;
|
||||||
using AVFoundation;
|
using AVFoundation;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
|
using ObjCRuntime;
|
||||||
|
|
||||||
namespace MonoTouchFixtures.AVFoundation {
|
namespace MonoTouchFixtures.AVFoundation {
|
||||||
|
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
[Preserve (AllMembers = true)]
|
[Preserve (AllMembers = true)]
|
||||||
public class AVAudioFormatTest {
|
public class AVAudioFormatTest {
|
||||||
|
|
||||||
|
[SetUp]
|
||||||
|
public void Setup ()
|
||||||
|
{
|
||||||
|
TestRuntime.AssertSystemVersion (PlatformName.iOS, 8, 0, throwIfOtherPlatform: false);
|
||||||
|
TestRuntime.AssertSystemVersion (PlatformName.MacOSX, 10, 10, throwIfOtherPlatform: false);
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestEqualOperatorSameInstace ()
|
public void TestEqualOperatorSameInstace ()
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче