public void WhenCallingCopy__ShouldReturnLuaCopyTask() { BuildComponentFactoryStub factoryStub = new BuildComponentFactoryStub(); EawCiLuaEnvironment sut = new EawCiLuaEnvironment(factoryStub, _luaParser); ILuaTask actual = sut.Copy(string.Empty, string.Empty); Assert.IsInstanceOfType(actual, typeof(LuaCopyTask)); }
public void WhenCallingCopy__ShouldCallBuildComponentFactoryWithCopyTaskName() { BuildComponentFactorySpy factorySpy = new BuildComponentFactorySpy(); EawCiLuaEnvironment sut = new EawCiLuaEnvironment(factorySpy, _luaParser); sut.Copy(string.Empty, string.Empty); Assert.AreSame("Copy", factorySpy.ActualTaskTypeName); }