ScenarioTestBase.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System;
  2. namespace Unity.Cloud.Collaborate.Tests
  3. {
  4. public class ScenarioTestBase
  5. {
  6. // protected AsyncToCoroutine atc;
  7. //
  8. // [SetUp]
  9. // public void Setup()
  10. // {
  11. // atc = new AsyncToCoroutine();
  12. // }
  13. //
  14. // [OneTimeSetUp]
  15. // public void OneTimeSetup()
  16. // {
  17. // SourceControlGitImplementation.IsRunningTests = true;
  18. // }
  19. //
  20. // [OneTimeTearDown]
  21. // public void OneTimeTearDown()
  22. // {
  23. // SourceControlGitImplementation.IsRunningTests = false;
  24. // }
  25. //
  26. // protected async Task EnsureCleanChangesPageInitially()
  27. // {
  28. // Threading.mainThreadId = Thread.CurrentThread.ManagedThreadId;
  29. //
  30. // if (!BackendProvider.Instance.IsProviderInstalled())
  31. // {
  32. // BackendProvider.Instance.InstallProvider();
  33. // }
  34. //
  35. // // set git identity - using RyanC test dedicated account.
  36. // BackendProvider.Instance.SetGitNameAndEmail("ryancas+collabtest", "ryancas+collabtest@unity3d.com");
  37. //
  38. // // ensure clean state , todo - ahmad : add this to a setup/teardown pair of methods.
  39. // await BackendProvider.Instance.CreateRepository();
  40. // await BackendProvider.Instance.InitializeClient();
  41. //
  42. // BackendProvider.Instance.DoesRepositoryExist().ShouldBe(true, "Repository is not initialized");
  43. // BackendProvider.Instance.IsClientInitialized().ShouldBe(true, "Git is not initialized");
  44. //
  45. // BackendProvider.Instance.Start();
  46. //
  47. // // ensure clean state by publishing everything.
  48. // await BackendProvider.Instance.Publish("initial publish");
  49. //
  50. // // assert clean state.
  51. // (await BackendProvider.Instance.GetChanges()).Count.ShouldBe(0, "file change count is not zero");
  52. // }
  53. }
  54. }