public void HasLayerByLayerWithNullLayer() { StateMachinePack.StateMachine stateMachine = new StateMachinePack.StateMachine(); Assert.ThrowsException <ArgumentNullException>(() => stateMachine.HasLayer((Layer)null)); }
public void HasLayerByLayer() { StateMachinePack.StateMachine stateMachine = new StateMachinePack.StateMachine(); Assert.IsNotNull(stateMachine.HasLayer(stateMachine.GetLayer(Layer.DEFAULTID))); }
public void HasLayerByIdWithNullId() { StateMachinePack.StateMachine stateMachine = new StateMachinePack.StateMachine(); Assert.ThrowsException <NullReferenceException>(() => stateMachine.HasLayer((string)null)); }
public void HasLayerByIdWithInvalidId() { StateMachinePack.StateMachine stateMachine = new StateMachinePack.StateMachine(); Assert.ThrowsException <ArgumentException>(() => stateMachine.HasLayer("ALidaf?>?\\@!$!$#")); }
public void HasLayerById() { StateMachinePack.StateMachine stateMachine = new StateMachinePack.StateMachine(); Assert.IsTrue(stateMachine.HasLayer("DEFAULT")); }
public void HasLayerByLayer() { StateMachinePack.StateMachine stateMachine = new StateMachinePack.StateMachine(); Assert.IsNotNull(stateMachine.HasLayer(new Layer("DEFAULT"))); }