public void ThrowsArgumentNullException_When_KeyIsInvalid(string key) { // arrange / act const string data = "Data"; var action = new Action(() => _sut.SetItemAsString(key, data)); // assert Assert.Throws <ArgumentNullException>(action); }