public void CanGetApplicationName(string expectedValue, string key, string value) { var dictionary = new Hashtable(); if (!string.IsNullOrWhiteSpace(key)) { dictionary.Add(key, value); } Assert.That(dictionary.ApplicationName(), Is.EqualTo(expectedValue)); }