コード例 #1
0
 public void TestInitialize()
 {
     _updateRepositoryMock = new Mock <IStudioUpdateManager>();
     _queryProxyMock       = new Mock <IQueryManager>();
     _serverName           = Guid.NewGuid().ToString();
     _target = new ManageComPluginSourceModel(_updateRepositoryMock.Object, _queryProxyMock.Object, _serverName);
 }
コード例 #2
0
        public void TestComPluginSourceServerNameBrackets()
        {
            //arrange
            _target = new ManageComPluginSourceModel(_updateRepositoryMock.Object, _queryProxyMock.Object, _serverName + "(sthInBrackets)");

            //act
            var value = _target.ServerName;

            //assert
            Assert.AreEqual(_serverName, value);
        }