public void ShouldThrowExceptionWhenLoadingLoadScriptWithEmptyArguments() { // Given var loader = new JQueryLoader(); // When Action action = () => loader.LoadScript(Enumerable.Empty <string>().ToArray()); // Then Assert.Throws <LoaderException>(action); }
public void ShouldLoadScript() { // Given var loader = new JQueryLoader(); // When var uri = loader.LoadScript("http://example.com"); // Then Assert.NotNull(uri); }
public void ShouldThrowExceptionWhenLoadingScriptWithNullArguments() { // Given var loader = new JQueryLoader(); // When Action action = () => loader.LoadScript(null); // Then var ex = Assert.Throws <ArgumentNullException>(action); Assert.Equal("args", ex.ParamName); }