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); }
public void GivenLuaCopyTask__WhenCallingOverwrite__ShouldBuildTaskWithOverwrite() { InitTaskBuilderMock(new Dictionary <string, object> { { "AlwaysOverwrite", true } }); LuaCopyTask sut = new LuaCopyTask(_taskBuilderMock, Source, Target); sut.overwrite(true); _taskBuilderMock.Verify(); }