Exemplo n.º 1
0
        public void GivenLuaCopyTask__WhenCallingRecursive__ShouldReturnItself()
        {
            InitTaskBuilderMock(new Dictionary <string, object> {
                { "CopySubfolders", true }
            });

            LuaCopyTask sut    = new LuaCopyTask(_taskBuilderMock, Source, Target);
            LuaCopyTask actual = sut.recursive(true);

            Assert.AreSame(sut, actual);
        }
Exemplo n.º 2
0
        public void GivenLuaCopyTask__WhenCallingRecursive__ShouldBuildTaskWithRecursive()
        {
            InitTaskBuilderMock(new Dictionary <string, object> {
                { "CopySubfolders", true }
            });

            LuaCopyTask sut = new LuaCopyTask(_taskBuilderMock, Source, Target);

            sut.recursive(true);

            _taskBuilderMock.Verify();
        }