BasicTests.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. namespace Unity.Cloud.Collaborate.Tests
  2. {
  3. public class BasicTests : ScenarioTestBase
  4. {
  5. // [UnityTest]
  6. // public IEnumerator AddedAssetsShowAsUntrackedChanges()
  7. // {
  8. // return atc.Run(async () =>
  9. // {
  10. //
  11. // // ensure initial clean state.
  12. // await EnsureCleanChangesPageInitially();
  13. //
  14. // // ensure file doesn't already exist.
  15. // const string filename = "file1.txt";
  16. // File.Exists(filename).ShouldBe(false, $"{filename} already exists");
  17. //
  18. // // todo - wrap operations like these in a dedicated helper class.
  19. // File.WriteAllText(filename, "added file empty content .. ");
  20. //
  21. // // todo - ahmad : port the state monitoring implementation from
  22. // // collab ver to here to avoid arbitrary UI wait times.
  23. // await Task.Delay(1000);
  24. //
  25. // var entries = (await BackendProvider.Instance.GetChanges());
  26. // entries.Count.ShouldBe(1, "changes count did not add file1");
  27. // entries[0].Path.ShouldBe("file1.txt", "change added is not named file1.txt");
  28. // entries[0].Status.ShouldBe(ChangeEntryStatus.Untracked, "change added is untracked");
  29. //
  30. // // clean up the file. (todo - ahmad) : this should be added in an after() method.
  31. // File.Delete(filename);
  32. // });
  33. // }
  34. }
  35. }