コード例 #1
0
        public void LogOnNoSourceFilesTest()
        {
            var task      = new Merge();
            var mockBuild = new MockBuild();

            task.BuildEngine = mockBuild;
            var result = task.Execute();

            Assert.IsTrue(result);
            Assert.That(mockBuild.MessageLog, Is.EqualTo(Resources.MergeCompleteNoSourceFiles + Environment.NewLine));
        }
コード例 #2
0
        public void Test1()
        {
            var task = new Merge();

            task.BuildEngine = new MockBuildEngine(helper);
            task.InputFiles  = new ITaskItem[]
            {
                new TaskItem("E:\\Projects\\OpenSource\\MergeCSharp\\src\\Tests\\Stubs\\MockBuildEngine.cs"),
                new TaskItem("E:\\Projects\\OpenSource\\MergeCSharp\\src\\Tests\\Stubs\\MockBuildLog.cs")
            };
            task.OutDir =
                new TaskItem("E:\\Projects\\OpenSource\\MergeCSharp\\src\\MergeCSharp\\bin\\Debug\\netstandard2.0");
            task.Execute();
        }