public void IsDeployableTest2() { var env = new NullBuildEnv(); var target = new BuildComponent(new Soba(), env); env.SetContext("project1", false, true); env.SetContext("project2", false, false); Assert.Equal("true", target.Eval("[Build projects.find(\"project1\").IsDeployable]")); Assert.Equal("false", target.Eval("[Build projects.find(\"project2\").IsDeployable]")); }
public void StTypeTest1() { var env = new NullBuildEnv(); var target = new BuildComponent(new Soba(), env); env.BuildType = string.Empty; Assert.Equal(env.BuildType, target.Eval("[Build type]")); env.BuildType = "Rebuild"; Assert.Equal(env.BuildType, target.Eval("[Build type]")); env.BuildType = "Clean"; Assert.Equal(env.BuildType, target.Eval("[Build type]")); }