예제 #1
0
        public void Empty()
        {
            var machine = new LowerCamelCase();

            Assert.AreEqual(LowerCamelCaseMachine.State.Init, machine.CurrentState);
            Assert.IsFalse(machine.IsAcceptingState);
            Assert.IsFalse(machine.IsHalted);
        }
예제 #2
0
        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);
        }