public void RetrieveTheObjectForExistingKeyAndExistingCulture()
        {
            var resourceFileResolverMock = new ResourceFileResolverMock(new string[]
            {
                "Page1.aspx.resx",
                "Page1.aspx.bg.resx",
                "Page1.aspx.hr-HR.resx"
            });
            var resourceProvider = new LocalResourceProvider2("Page1.aspx", resourceFileResolverMock);

            Assert.AreEqual("Hello universe! HR", resourceProvider.GetObject("Label2.Text", CultureInfo.GetCultureInfo("hr-HR")));
            Assert.AreEqual("Hello world! HR", resourceProvider.GetObject("Literal1.Text", CultureInfo.GetCultureInfo("hr-HR")));
        }
        public void ThrowAnException_WhenGetObjectIsCalledWithNoKeySpecified()
        {
            var resourceProvider = new LocalResourceProvider2("~/Page1.aspx");

            try
            {
                resourceProvider.GetObject(string.Empty, CultureInfo.InvariantCulture);
                Assert.Fail("ArgumentNullException was supposed to be thrown.");
            }
            catch (ArgumentNullException ex)
            {
                Assert.AreEqual("resourceKey", ex.ParamName);
            }
        }