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