Beispiel #1
0
        public static void Main(string[] args)
        {
            var configuration = new ConfigurationBuilder()
                                .AddCommandLine(args)
                                .Build();

            var options = new IOTestOptions();

            configuration.Bind(options);

            if (!options.Validate())
            {
                Logger.Info("Invalid arguments.");
                return;
            }

            FileIOTestRunner runner = new FileIOTestRunner();

            runner.RunScenario();
        }
Beispiel #2
0
 public FileIOTestRunner()
 {
     _completeEvent = new ManualResetEvent(false);
     _option        = IOTestOptions.Instance;
     _buffer        = new byte[4096];
 }