Пример #1
0
        public void Test_Load_NullOrEmptyFileName()
        {
            var settings = Options.Create <QueueShardSettings>(new QueueShardSettings());
            var ctx      = new QueueShardContext(settings);

            Assert.Throws <ArgumentNullException>(() => ctx.Load(null));
            Assert.Throws <ArgumentNullException>(() => ctx.Load(string.Empty));
        }
Пример #2
0
        public void Test_Load_InvalidFilename()
        {
            var settings = Options.Create <QueueShardSettings>(new QueueShardSettings());

            var ctx = new QueueShardContext(settings);

            Assert.Throws <ArgumentException>(() => ctx.Load("invalidFileName"));
        }