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)); }
public void Test_Load_InvalidFilename() { var settings = Options.Create <QueueShardSettings>(new QueueShardSettings()); var ctx = new QueueShardContext(settings); Assert.Throws <ArgumentException>(() => ctx.Load("invalidFileName")); }