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); }
public void GivenLuaCopyTask__WhenCallingPattern__ShouldBuildTaskWithPattern() { InitTaskBuilderMock(new Dictionary <string, object> { { "CopyFileByPattern", "*.xml" } }); LuaCopyTask sut = new LuaCopyTask(_taskBuilderMock, Source, Target); sut.pattern("*.xml"); _taskBuilderMock.Verify(); }