mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-21 17:59:31 +00:00
24 lines
698 B
C#
24 lines
698 B
C#
using Microsoft.Xna.Framework;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
using NUnit.Framework;
|
|
|
|
namespace MonoGame.Extended.Tests
|
|
{
|
|
public static class TestHelper
|
|
{
|
|
public static void AreEqual(Vector3 a, Vector3 b, double delta)
|
|
{
|
|
Assert.AreEqual(a.X, b.X, delta);
|
|
Assert.AreEqual(a.Y, b.Y, delta);
|
|
Assert.AreEqual(a.Z, b.Z, delta);
|
|
}
|
|
|
|
public static GraphicsDevice CreateGraphicsDevice()
|
|
{
|
|
return new GraphicsDevice(GraphicsAdapter.DefaultAdapter, GraphicsProfile.HiDef, new PresentationParameters())
|
|
{
|
|
Viewport = new Viewport(0, 0, 800, 480)
|
|
};
|
|
}
|
|
}
|
|
} |