public void GetLayer() { StateMachinePack.StateMachine stateMachine = new StateMachinePack.StateMachine(); Assert.IsNotNull(stateMachine.GetLayer("DEFAULT")); }
public void GetLayerWithInvalidId() { StateMachinePack.StateMachine stateMachine = new StateMachinePack.StateMachine(); Assert.ThrowsException <ArgumentException>(() => stateMachine.GetLayer("!#$!#$")); }
public void GetLayerByIndexOutOfRange() { StateMachinePack.StateMachine stateMachine = new StateMachinePack.StateMachine(); Assert.ThrowsException <ArgumentOutOfRangeException>(() => stateMachine.GetLayer(324)); }
public void GetLayerWithNullId() { StateMachinePack.StateMachine stateMachine = new StateMachinePack.StateMachine(); Assert.ThrowsException <NullReferenceException>(() => stateMachine.GetLayer(null)); }