public void CorrectlyHandlesValuesWithDefaults(string configurationKey, bool setValueBeforeRetrieving, object valueToSet, object defaultValue, object expectedValue) { var workspace = new Workspace(); if (setValueBeforeRetrieving) { workspace.SetConfigurationValue(configurationKey, valueToSet); } var currentValue = workspace.GetWorkspaceValue(configurationKey, defaultValue); Assert.AreEqual(expectedValue, currentValue); }