예제 #1
0
            public void ReturnsEmptyStringIfCommandLineWasNotSupplied()
            {
                string[] args   = new string[] {};
                var      parser = new SettingsParser();

                string path = parser.GetCalendarFile(args);

                path.Should().BeEmpty();
            }
예제 #2
0
            public void ReturnsFilePathForCommandLineWithSingleEntryWithoutPrefix()
            {
                string[] args   = new[] { @"C:\file.csv" };
                var      parser = new SettingsParser();

                string path = parser.GetCalendarFile(args);

                path.Should().Be(@"C:\file.csv");
            }