public void TestInitialize() { _updateRepositoryMock = new Mock <IStudioUpdateManager>(); _queryProxyMock = new Mock <IQueryManager>(); _serverName = Guid.NewGuid().ToString(); _target = new ManageComPluginSourceModel(_updateRepositoryMock.Object, _queryProxyMock.Object, _serverName); }
public void TestComPluginSourceServerNameBrackets() { //arrange _target = new ManageComPluginSourceModel(_updateRepositoryMock.Object, _queryProxyMock.Object, _serverName + "(sthInBrackets)"); //act var value = _target.ServerName; //assert Assert.AreEqual(_serverName, value); }