示例#1
0
        public void TestListFileMissing()
        {
            var options = new ConsoleOptions("--testlist:\\badtestlistfile");

            Assert.That(options.ErrorMessages.Count, Is.EqualTo(1));
            Assert.That(options.ErrorMessages, Does.Contain("Unable to locate file: \\badtestlistfile"));
            var filter = TextUI.CreateTestFilter(options);

            Assert.That(filter, Is.EqualTo(TestFilter.Empty));
        }
示例#2
0
 private TestFilter GetFilter(params string[] args)
 {
     return(TextUI.CreateTestFilter(new ConsoleOptions(args)));
 }