xamarin-macios/tests/monotouch-test/Metal/MTLBlitPassDescriptorTest.cs

37 строки
702 B
C#
Исходник Обычный вид История

#if !__WATCHOS__
#nullable enable
using System;
using Metal;
using NUnit.Framework;
namespace MonoTouchFixtures.Metal {
[TestFixture]
public class MTLBlitPassDescriptorTest {
[SetUp]
public void SetUp ()
{
TestRuntime.AssertXcodeVersion (12, 0);
}
[Test]
public void TestSampleBufferAttachments ()
{
// need to be tested since it fails intro
using var passDescripton = MTLBlitPassDescriptor.Create ();
Assert.IsNotNull (passDescripton, "passDescriptor");
Assert.DoesNotThrow (() => {
using var attachments = passDescripton.SampleBufferAttachments; // don't care about the value, just that it works
}, "Attachements");
}
}
}
#endif // !__WATCHOS__