public void IProjectInfo_EqualsProject_Test6() { IProjectInfo projectInfo1 = null; IProjectInfo projectInfo2 = null; Assert.IsFalse(projectInfo1.EqualsProject(projectInfo2)); }
public void IProjectInfo_EqualsProject_Test4() { IProjectInfo projectInfo1 = null; var projectInfo2 = new ProjectInfo { ProjectID = 5, ProjectRun = 6, ProjectClone = 7, ProjectGen = 8 }; Assert.IsFalse(projectInfo1.EqualsProject(projectInfo2)); }
private static UnitRun GetUnitRun(SlotRun slotRun, int queueIndex, IProjectInfo projectInfo) { return(slotRun?.UnitRuns.LastOrDefault(x => x.QueueIndex == queueIndex && projectInfo.EqualsProject(x.Data.ToProjectInfo()))); }
private static UnitRun GetUnitRun(SlotRun slotRun, int queueIndex, IProjectInfo projectInfo) { if (slotRun != null) { var unitRun = slotRun.UnitRuns.LastOrDefault(x => x.QueueIndex == queueIndex && projectInfo.EqualsProject(x.Data.ToProjectInfo())); if (unitRun != null) { return(unitRun); } } return(null); }
private static UnitRun GetUnitRun(SlotRun slotRun, int queueIndex, IProjectInfo projectInfo) { if (slotRun != null) { var unitRun = slotRun.UnitRuns.FirstOrDefault(x => x.QueueIndex == queueIndex && projectInfo.EqualsProject(x.Data)); if (unitRun != null) { return unitRun; } } return null; }