public void GivenLuaRunProcessTask__WhenCallingWorkingDirectory__ShouldReturnItself() { const string workingDirectory = "another/dir"; LuaRunProcessTask sut = new LuaRunProcessTask(_taskBuilderMock, Path); LuaRunProcessTask actual = sut.working_directory(workingDirectory); Assert.AreSame(sut, actual); }
public void GivenLuaRunProcessTask__WhenCallingWorkingDirectory__ShouldCallTaskBuilderWithWorkingDirectory() { const string workingDirectory = "another/dir"; _taskBuilderMock.AddExpectedEntry("WorkingDirectory", workingDirectory); LuaRunProcessTask sut = new LuaRunProcessTask(_taskBuilderMock, Path); sut.working_directory(workingDirectory); _taskBuilderMock.Verify(); }