public void Empty() { var machine = new LowerCamelCase(); Assert.AreEqual(LowerCamelCaseMachine.State.Init, machine.CurrentState); Assert.IsFalse(machine.IsAcceptingState); Assert.IsFalse(machine.IsHalted); }
public void lowerCamelCase() { var machine = new LowerCamelCase(); foreach (var c in "lowerCamelCase") { machine.Invoke(c); } Assert.AreEqual(LowerCamelCaseMachine.State.LowerChar, machine.CurrentState); Assert.IsTrue(machine.IsAcceptingState); Assert.IsFalse(machine.IsHalted); }