public void Test_IfAllRequiredAssembliesAreMovedToTheTargetBinFolder()
        {
            var mover = new RequiredAssemblyMover(typeof(RequiredAssemblyMoverTests), testTargetPath);

            mover.Move();

            Assert.True(File.Exists(Path.Combine(testTargetPath, "UnitTests.dll")));
        }
Exemplo n.º 2
0
        public void Test_IfAllRequiredAssembliesAreMovedToTheTargetBinFolder()
        {
            var requiredAssembliesDirectory = Path.Combine(Environment.CurrentDirectory, "..\\..\\..\\..\\..\\src\\requiredAssemblies");

            var mover = new RequiredAssemblyMover(requiredAssembliesDirectory, testTargetPath);

            mover.Move();

            var filesInTheSourceFolder = Directory.GetFiles(requiredAssembliesDirectory);

            foreach (var file in filesInTheSourceFolder)
            {
                Assert.True(File.Exists(Path.Combine(testTargetPath, Path.GetFileName(file))));
            }
        }