PageRenderTime 196ms CodeModel.GetById 120ms app.highlight 7ms RepoModel.GetById 64ms app.codeStats 1ms

/Rendering/CameraTests/IsometricCameraTests.cs

#
C# | 37 lines | 26 code | 2 blank | 9 comment | 0 complexity | 704664b22072bdd311702f69aa66648f MD5 | raw file
 1using Delta.Rendering.Cameras;
 2using Delta.Utilities.Datatypes;
 3using NUnit.Framework;
 4
 5namespace Delta.Rendering.CameraTests
 6{
 7	/// <summary>
 8	/// All unit tests for isometric cameras.
 9	/// </summary>
10	[Category("Visual")]
11	public class IsometricCameraTests
12	{
13		#region TestIsometricCamera (Static)
14		/// <summary>
15		/// Test isometric camera
16		/// </summary>
17		[Test]
18		public static void TestIsometricCamera()
19		{
20			IsometricCamera cam = new IsometricCamera(new Vector(10, 5, 0));
21			cam.Distance = 10f;
22		}
23		#endregion
24
25		#region TestIsoPerspectiveCamera (Static)
26		/// <summary>
27		/// Test iso perspective camera
28		/// </summary>
29		[Test]
30		public static void TestIsoPerspectiveCamera()
31		{
32			IsometricCamera cam = new IsometricCamera(new Vector(10, 5, 0));
33			cam.Distance = 10f;
34		}
35		#endregion
36	}
37}