SW 중심대학 OSS GIT 서버 박건태, 이승준, 고기완, 이준호 새로운 배포
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
800 B

4 years ago
  1. using NUnit.Framework;
  2. namespace UnityEngine.XR.ARSubsystems.Tests
  3. {
  4. public class XRCameraSubsystemImpl : XRCameraSubsystem
  5. {
  6. protected override Provider CreateProvider() => new Provider();
  7. }
  8. [TestFixture]
  9. public class XRCameraSubsystemTestFixture
  10. {
  11. [Test]
  12. public void RunningStateTests()
  13. {
  14. XRCameraSubsystem subsystem = new XRCameraSubsystemImpl();
  15. // Initial state is not running
  16. Assert.That(subsystem.running == false);
  17. // After start subsystem is running
  18. subsystem.Start();
  19. Assert.That(subsystem.running == true);
  20. // After start subsystem is running
  21. subsystem.Stop();
  22. Assert.That(subsystem.running == false);
  23. }
  24. }
  25. }