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

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

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

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

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