Пример #1
0
        public void GivenLuaCopyTask__WhenCallingPattern__ShouldReturnItself()
        {
            InitTaskBuilderMock(new Dictionary <string, object> {
                { "CopyFileByPattern", "*.xml" }
            });

            LuaCopyTask sut    = new LuaCopyTask(_taskBuilderMock, Source, Target);
            LuaCopyTask actual = sut.pattern("*.xml");

            Assert.AreSame(sut, actual);
        }
Пример #2
0
        public void GivenLuaCopyTask__WhenCallingPattern__ShouldBuildTaskWithPattern()
        {
            InitTaskBuilderMock(new Dictionary <string, object> {
                { "CopyFileByPattern", "*.xml" }
            });

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

            sut.pattern("*.xml");

            _taskBuilderMock.Verify();
        }