コード例 #1
0
 public void HasLayerByIdWithInvalidId()
 {
     StateMachinePack.StateMachine stateMachine = new StateMachinePack.StateMachine();
     Assert.ThrowsException <Exception>(() => stateMachine.HasLayerById("ALidaf?>?\\@!$!$#"));
 }
コード例 #2
0
 public void HasLayerByIdWithNullId()
 {
     StateMachinePack.StateMachine stateMachine = new StateMachinePack.StateMachine();
     Assert.ThrowsException <NullReferenceException>(() => stateMachine.HasLayerById(null));
 }
コード例 #3
0
 public void HasLayerById()
 {
     StateMachinePack.StateMachine stateMachine = new StateMachinePack.StateMachine();
     Assert.IsTrue(stateMachine.HasLayerById("DEFAULT"));
 }