Add the key in the message on throwing a KeyNotFoundException (#282)
authorRogier van der Hee <rogihee@users.noreply.github.com>
Tue, 9 Aug 2016 10:37:35 +0000 (12:37 +0200)
committerRui Marinho <me@ruimarinho.net>
Tue, 9 Aug 2016 10:37:35 +0000 (11:37 +0100)
commit43e90a38840600a2556be38cc331de4a0d948834
tree00b9f4cdd5747fa9b716ee26a50dc2cdcede68ee
parent0a73c0f4bbf75d8a83f36b031c3bfd07108ea04b
Add the key in the message on throwing a KeyNotFoundException (#282)

* Add the key in the message on throwing a KeyNotFoundException for trying to access an invalid key in the ResourceDictionary. This helps a lot in tracking down what resource is actually missing.

* Fix test build, use C# 6 string interpolation
Xamarin.Forms.Core.UnitTests/ResourceDictionaryTests.cs
Xamarin.Forms.Core/ResourceDictionary.cs