public void ResourceScriptLoaderLoadsResourcesByResourceName(string scriptFile, string resourceKeyToLoad) { var sut = new ResourceScriptLoader(); var expectedScriptBody = Resources.ResourceManager.GetString(resourceKeyToLoad); var actual = sut.Load(scriptFile); Assert.Equal(expectedScriptBody, actual); }
public void ResourceScriptLoaderReturnsNullWhenNoResource() { var sut = new ResourceScriptLoader(); var actual = sut.Load("notExisting"); Assert.Null(actual); }