maui-linux/Xamarin.Forms.Core.UnitTests/OpenGLViewUnitTests.cs

21 строка
373 B
C#

using NUnit.Framework;
namespace Xamarin.Forms.Core.UnitTests
{
[TestFixture]
public class OpenGLViewUnitTests : BaseTestFixture
{
[Test]
public void Display ()
{
var view = new OpenGLView ();
bool displayed = false;
((IOpenGlViewController)view).DisplayRequested += (s, o) => displayed = true;
view.Display ();
Assert.True (displayed);
}
}
}