Esempio n. 1
0
        public void BeginProcessingAllowsNullBatchForUninstall()
        {
            // Arrange
            var root   = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
            var target = new TfsFileSystem(Mock.Of <ITfsWorkspace>(), root);

            // Act and Assert
            ExceptionAssert.ThrowsArgNull(() => target.BeginProcessing(null, PackageAction.Uninstall), "batch");
        }
Esempio n. 2
0
        public void BeginProcessingThrowsArgumentNullExceptionIfPathIsNull()
        {
            var root   = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
            var target = new TfsFileSystem(Mock.Of <ITfsWorkspace>(), root);

            var exception = Assert.Throws <ArgumentNullException>(() => target.BeginProcessing(null, PackageAction.Install));

            Assert.Equal("batch", exception.ParamName, StringComparer.Ordinal);
        }
Esempio n. 3
0
 public void BeginProcessingAllowsNullBatchForUninstall()
 {
     // Arrange
     var root = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
     var target = new TfsFileSystem(Mock.Of<ITfsWorkspace>(), root);
     
     // Act and Assert
     ExceptionAssert.ThrowsArgNull(() => target.BeginProcessing(null, PackageAction.Uninstall), "batch");
 }
Esempio n. 4
0
        public void BeginProcessingThrowsArgumentNullExceptionIfPathIsNull()
        {
            var root = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());
            var target = new TfsFileSystem(Mock.Of<ITfsWorkspace>(), root);

            var exception = Assert.Throws<ArgumentNullException>(() => target.BeginProcessing(null, PackageAction.Install));
            Assert.Equal("batch", exception.ParamName, StringComparer.Ordinal);
        }