public void ProxyValidateSettingDialogTest() { MockTracingSystemProxy proxy = new MockTracingSystemProxy("proxyName"); var result = proxy.ValidateBeforeCloseSettingDialog(); Assert.AreEqual(SettingDialogValidateionResult.Valid, result); }
public void CheckBaseImplementation() { MockTracingSystemProxy proxy = new MockTracingSystemProxy("proxyName"); AssertHelper.ExpectedException <ArgumentException>(() => proxy.Query(" ")); AssertHelper.ExpectedException <ArgumentException>(() => proxy.Query(string.Empty)); AssertHelper.ExpectedException <NotSupportedException>(() => proxy.Query("BigEgg")); AssertHelper.ExpectedException <NotSupportedException>(() => proxy.Query(new List <string>())); AssertHelper.ExpectedException <NotSupportedException>(() => proxy.Query(new List <string>() { "BigEggg" })); AssertHelper.ExpectedException <NotImplementedException>(() => proxy.CallQueryCore(new List <string>() { "BigEggg" }, true)); AssertHelper.ExpectedException <NotImplementedException>(() => proxy.CallQueryCore(new List <string>() { "BigEggg" }, false)); }
public void ProxyInitializeTest() { MockTracingSystemProxy proxy = new MockTracingSystemProxy("proxyName"); Assert.IsFalse(proxy.IsInitialized); proxy.Initialize(); Assert.IsTrue(proxy.IsInitialized); }
public void PropertiesWithNotification() { MockTracingSystemProxy proxy = new MockTracingSystemProxy("proxyName"); Assert.IsFalse(proxy.CanQuery); AssertHelper.PropertyChangedEvent(proxy, x => x.CanQuery, () => proxy.CanQueryValue = true); Assert.IsTrue(proxy.CanQuery); }
public void GeneralSourceControllerTest() { MockTracingSystemProxy proxy = new MockTracingSystemProxy("proxyName"); Assert.AreEqual("proxyName", proxy.ProxyName); Assert.AreEqual(0, proxy.StateValues.Count); Assert.IsFalse(proxy.CanQuery); }
public void QueryTest() { MockTracingSystemProxy proxy = new MockTracingSystemProxy("proxyName"); proxy.CanQueryValue = true; ReadOnlyCollection <Bug> bugs = proxy.Query(new List <string>()); Assert.AreEqual(0, bugs.Count); }
public void CheckBaseImplementation() { MockTracingSystemProxy proxy = new MockTracingSystemProxy("proxyName"); AssertHelper.ExpectedException<ArgumentException>(() => proxy.Query(" ")); AssertHelper.ExpectedException<ArgumentException>(() => proxy.Query(string.Empty)); AssertHelper.ExpectedException<NotSupportedException>(() => proxy.Query("BigEgg")); AssertHelper.ExpectedException<NotSupportedException>(() => proxy.Query(new List<string>())); AssertHelper.ExpectedException<NotSupportedException>(() => proxy.Query(new List<string>() { "BigEggg" })); AssertHelper.ExpectedException<NotImplementedException>(() => proxy.CallQueryCore(new List<string>() { "BigEggg" }, true)); AssertHelper.ExpectedException<NotImplementedException>(() => proxy.CallQueryCore(new List<string>() { "BigEggg" }, false)); }
public void QueryTest() { MockTracingSystemProxy proxy = new MockTracingSystemProxy("proxyName"); proxy.CanQueryValue = true; ReadOnlyCollection<Bug> bugs = proxy.Query(new List<string>()); Assert.AreEqual(0, bugs.Count); }