Exemple #1
0
 public void UnitInfo_GetUnitFrame_Test2()
 {
    // Arrange
    var unitInfo = new UnitInfo();
    var logLine = new LogLine { LineType = LogLineType.WorkUnitFrame, LineData = new UnitFrame { FrameID = 0 } };
    unitInfo.LogLines = new List<LogLine>(new[] { logLine });
    // Act & Assert
    Assert.IsNotNull(unitInfo.GetUnitFrame(0));
    Assert.IsNull(unitInfo.GetUnitFrame(1));
 }
Exemple #2
0
 public void GetUnitFrameTest2()
 {
     var unitInfo = new UnitInfo();
      unitInfo.SetUnitFrame(new UnitFrame { FrameID = 0 });
      Assert.IsNotNull(unitInfo.GetUnitFrame(0));
      Assert.IsNull(unitInfo.GetUnitFrame(1));
 }
Exemple #3
0
 public void UnitInfo_GetUnitFrame_Test1()
 {
    // Arrange
    var unitInfo = new UnitInfo();
    // Act & Assert
    Assert.IsNull(unitInfo.GetUnitFrame(0));
 }
Exemple #4
0
 public void GetUnitFrameTest1()
 {
     var unitInfo = new UnitInfo();
      Assert.IsNull(unitInfo.GetUnitFrame(0));
 }