public void testIsComplete_Fail_Elevator() { var objs = new List <List <string> >(); objs.Add(new List <string>()); objs.Add(new List <string>()); objs.Add(new List <string>()); objs.Add(new List <string>() { "BM", "BG", "CM", "CG" }); var floorState = new FloorState(0, objs, 1); var result = floorState.IsComplete(); Assert.False(result); }
public void testIsComplete_Success() { var objs = new List <List <string> >(); objs.Add(new List <string>()); objs.Add(new List <string>()); objs.Add(new List <string>()); objs.Add(new List <string>() { "BM", "BG", "CM", "CG" }); var floorState = new FloorState(0, objs, 3); var result = floorState.IsComplete(); Assert.True(result); }