InputEditorUserSettingsTest.cs 677 B

123456789101112131415161718192021222324252627
  1. namespace Unity.RenderStreaming.RuntimeTest
  2. {
  3. #if UNITY_EDITOR && !INPUTSYSTEM_1_1_OR_NEWER
  4. class InputEditorUserSettingsTest
  5. {
  6. [SetUp]
  7. public void SetUp()
  8. {
  9. InputEditorUserSettings.Load();
  10. }
  11. [TearDown]
  12. public void TearDown()
  13. {
  14. InputEditorUserSettings.Delete();
  15. }
  16. [Test]
  17. public void LockInputToGameView()
  18. {
  19. Assert.That(InputEditorUserSettings.lockInputToGameView, Is.False);
  20. InputEditorUserSettings.lockInputToGameView = true;
  21. Assert.That(InputEditorUserSettings.lockInputToGameView, Is.True);
  22. }
  23. }
  24. #endif
  25. }