コード例 #1
0
        public void CreateCrusherTask()
        {
            var buildEngine = new BuildEngingStub();

            var crusherTask = new CrusherTask
            {
                BinDirectoryPath = Environment.CurrentDirectory,
                ConfigFilePath   = Path.Combine(Environment.CurrentDirectory, "Talifun.Crusher.Tests.dll.config"),
                BuildEngine      = buildEngine,
                HostObject       = null
            };

            crusherTask.Execute();

            Assert.False(buildEngine.BuildErrorEventArgs.Any(), buildEngine.BuildErrorEventArgs.Any() ? buildEngine.BuildErrorEventArgs.First().Message : string.Empty);
        }
コード例 #2
0
         public void CreateCrusherTask()
         {
             var buildEngine = new BuildEngingStub();

             var crusherTask = new CrusherTask
                 {
                     BinDirectoryPath = Environment.CurrentDirectory,
                     ConfigFilePath = Path.Combine(Environment.CurrentDirectory, "Talifun.Crusher.Tests.dll.config"),
                     BuildEngine = buildEngine,
                     HostObject = null
                 };

             crusherTask.Execute();

             Assert.False(buildEngine.BuildErrorEventArgs.Any(), buildEngine.BuildErrorEventArgs.Any() ? buildEngine.BuildErrorEventArgs.First().Message : string.Empty);
         }