Example #1
0
        public void ShouldGetTextCommands()
        {
            const string textCommandStr = "help";
            var          textCommand    = TextCommands.GetTextCommands(textCommandStr);

            textCommand.Should().Be(TextCommands.EnumTextCommand.Help);
        }
Example #2
0
        public void ShouldGetNothingFromTextCommandsIfWrongCommand()
        {
            const int    expectedEnumValue = 0;
            const string textCommandStr    = "notACommand";
            var          textCommand       = TextCommands.GetTextCommands(textCommandStr);

            textCommand.Should().Be(expectedEnumValue);
        }