Files
MonoGame.Extended/Source/Tests/MonoGame.Extended.Tests/Particles/Profiles/RingProfileTests.cs
T

42 lines
1.2 KiB
C#

//using System;
//using Microsoft.Xna.Framework;
//using MonoGame.Extended.Particles.Profiles;
//using Xunit;
//namespace MonoGame.Extended.Tests.Particles.Profiles
//{
//
// public class RingProfileTests
// {
// [Fact]
// public void ReturnsOffsetEqualToRadius()
// {
// var subject = new RingProfile
// {
// Radius = 10f
// };
// Vector2 offset, heading;
// subject.GetOffsetAndHeading(out offset, out heading);
// var length = Math.Sqrt(offset.X * offset.X + offset.Y * offset.Y);
// Assert.Equal(10f, length, 0.000001);
// }
// [Fact]
// public void WhenRadiateIsTrue_HeadingIsEqualToNormalizedOffset()
// {
// var subject = new RingProfile
// {
// Radius = 10f,
// Radiate = Profile.CircleRadiation.Out
// };
// Vector2 offset, heading;
// subject.GetOffsetAndHeading(out offset, out heading);
// Assert.Equal(heading.X, offset.X / 10, 0.000001);
// Assert.Equal(heading.Y, offset.Y / 10, 0.000001);
// }
// }
//}