Beispiel #1
0
        public void Handles_NullCommandReturns_False()
        {
            var command = new InitiateCommand(this._programState, this._commandManager);

            var result = command.Handles(null);

            Assert.IsFalse(result);
        }
Beispiel #2
0
        public void Handles_InitiateUpperCaseCommandReturns_True()
        {
            var command = new InitiateCommand(this._programState, this._commandManager);

            var result = command.Handles("INITIATE");

            Assert.IsTrue(result);
        }
Beispiel #3
0
        public void Handles_RandomCommandReturns_False()
        {
            var command = new InitiateCommand(this._programState, this._commandManager);

            // ReSharper disable once StringLiteralTypo
            var result = command.Handles("ajrah");

            Assert.IsFalse(result);
        }