UnitsTestFixture.cs 605 B

12345678910111213141516171819202122232425
  1. using NUnit.Framework;
  2. using UnityEditor.Performance.ProfileAnalyzer;
  3. using System.Collections.Generic;
  4. public class UnitsTestFixture
  5. {
  6. internal DisplayUnits displayUnits;
  7. public struct TestData
  8. {
  9. public readonly float value;
  10. public readonly string expectedOutput;
  11. public TestData(float value, string expectedOutput)
  12. {
  13. this.value = value;
  14. this.expectedOutput = expectedOutput;
  15. }
  16. public override string ToString()
  17. {
  18. return string.Format("{0} becomes {1}", value, expectedOutput);
  19. }
  20. }
  21. }