mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
Robust.UnitTesting was both ALL tests for RT, and also API surface for content tests. Tests are now split into separate projects as appropriate, and the API side has also been split off.
37 lines
842 B
C#
37 lines
842 B
C#
using System.Numerics;
|
|
using NUnit.Framework;
|
|
using Robust.Shared.Graphics;
|
|
using Robust.Shared.Map;
|
|
using Robust.UnitTesting;
|
|
|
|
namespace Robust.Client.Tests.Graphics
|
|
{
|
|
[TestFixture, Parallelizable, TestOf(typeof(Eye))]
|
|
internal sealed class EyeTest
|
|
{
|
|
[Test]
|
|
public void Constructor_DefaultZoom_isTwo()
|
|
{
|
|
var eye = new Eye();
|
|
|
|
Assert.That(eye.Zoom, Is.Approximately(Vector2.One*2f));
|
|
}
|
|
|
|
[Test]
|
|
public void Constructor_DefaultPosition_isZero()
|
|
{
|
|
var eye = new Eye();
|
|
|
|
Assert.That(eye.Position, Is.EqualTo(MapCoordinates.Nullspace));
|
|
}
|
|
|
|
[Test]
|
|
public void Constructor_DefaultDrawFov_isTrue()
|
|
{
|
|
var eye = new Eye();
|
|
|
|
Assert.That(eye.DrawFov, Is.True);
|
|
}
|
|
}
|
|
}
|