Ejemplo n.º 1
0
        public void SetUp()
        {
            _fileWrapper          = new FileWrapper();
            _processWrapper       = new ProcessWrapper();
            _configurationService = new Mock <IConfigurationService>();
            _configDebinarizer    = new ConfigDebinarizer(_processWrapper, _fileWrapper, _configurationService.Object);
            _configurationService.Setup(x => x.ConfigFileDebinarizationTimeout).Returns(5000);

            _configDebinarizer.Initialize(ConfigurationManager.AppSettings["ArmaToolsCfgConvertPath"]);

            _configFilePath      = Path.GetTempFileName();
            _debinarizedFilePath = Path.GetTempFileName();
        }
Ejemplo n.º 2
0
 public void Initialize_EmptyFilePath_ThrowsException()
 {
     Assert.Throws <ArgumentException>(() => _configDebinarizer.Initialize(string.Empty));
 }