public void GetBoolValueTest() { var reader = new EnvReader(); var key1 = "TRUE_VALUE"; var value1 = "true"; var key2 = "FALSE_VALUE"; var value2 = "false"; Environment.SetEnvironmentVariable(key1, value1); Environment.SetEnvironmentVariable(key2, value2); Assert.True(reader.GetBoolValue(key1)); Assert.False(reader.GetBoolValue(key2)); Assert.Throws <EnvVariableNotFoundException>( () => reader.GetBoolValue(VariableNotFound) ); }