Program.cs 909 B

1234567891011121314151617181920212223242526272829
  1. //---------------------------------------------------------------------------------------------------------------------
  2. // UnitTests.cs
  3. //
  4. // Microsoft XNA Community Game Platform
  5. // Copyright (C) Microsoft Corporation. All rights reserved.
  6. //---------------------------------------------------------------------------------------------------------------------
  7. namespace UnitTests
  8. {
  9. /// <summary>
  10. /// Unit tests for BoundingOrientedBox and Triangle collision code.
  11. ///
  12. /// Tests are in a standalone console app rather than using the test framework,
  13. /// so they can be run run in Express editions.
  14. /// </summary>
  15. class Program
  16. {
  17. static void Main(string[] args)
  18. {
  19. UnitTests u = new UnitTests();
  20. u.RunTests();
  21. if (u.TestsFailed > 0)
  22. {
  23. System.Environment.Exit(1);
  24. }
  25. }
  26. }
  27. }