xamarin-macios/tests/monotouch-test/Phase/PhaseEnvelopeTest.cs

49 строки
869 B
C#

#if __IOS__ || MONOMAC
using System;
using CoreGraphics;
using Foundation;
using ObjCRuntime;
using Phase;
using NUnit.Framework;
#if NET
using Vector2d = global::CoreGraphics.NVector2d;
#else
using OpenTK;
#endif
#nullable enable
namespace MonoTouchFixtures.Phase {
[TestFixture]
// we want the test to be available if we use the linker
[Preserve (AllMembers = true)]
public class PhaseEnvelopeTest {
[SetUp]
public void Setup ()
{
TestRuntime.AssertXcodeVersion (13, 0);
// not supported in simulator
TestRuntime.AssertDevice ();
}
[Test]
public void ConstructorTest ()
{
var start = new Vector2d (1, 2);
using (var envelope = new PhaseEnvelope (start, new PhaseEnvelopeSegment [] { })) {
// assert we do get the start vector
Assert.AreEqual (start, envelope.StartPoint);
}
}
}
}
#endif // __IOS__ || MONOMAC