示例#1
0
        public void GivenLuaCopyTask__WhenCallingOverwrite__ShouldReturnItself()
        {
            InitTaskBuilderMock(new Dictionary <string, object> {
                { "AlwaysOverwrite", true }
            });

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

            Assert.AreSame(sut, actual);
        }
示例#2
0
        public void GivenLuaCopyTask__WhenCallingOverwrite__ShouldBuildTaskWithOverwrite()
        {
            InitTaskBuilderMock(new Dictionary <string, object> {
                { "AlwaysOverwrite", true }
            });

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

            sut.overwrite(true);

            _taskBuilderMock.Verify();
        }