CalendarSystem.Tests.CommandParseTests.AddEventWithoutLocationCommandParse C# (CSharp) Метод

AddEventWithoutLocationCommandParse() приватный Метод

private AddEventWithoutLocationCommandParse ( ) : void
Результат void
        public void AddEventWithoutLocationCommandParse()
        {
            string inputCommand = "AddEvent 2001-01-01T20:00:00 | C# course - 977731";

            Command parsedCommand = Command.Parse(inputCommand);

            string[] expectedCommandArgs = { "2001-01-01T20:00:00", "C# course - 977731" };
            Assert.AreEqual("AddEvent",
                parsedCommand.Name,
                "Command name not parsed correctly!");

            CollectionAssert.AreEqual(expectedCommandArgs,
                parsedCommand.Arguments,
                "Command arguments not parsed correctly!");
        }