public void use_file_if_exists_negative_case() { scriptDoesNotExist("jquery.js"); ClassUnderTest.UseFileIfExists("jquery.js"); SpecificationExtensions.ShouldBeFalse(ClassUnderTest.GetScriptsToRender().Any()); }
public void find_the_application_source_is_null_if_there_are_no_sources() { var settings = new ApplicationSettings { ApplicationSourceName = null }; _theTypeFinder.Stub(x => x.FindApplicationSourceTypes()) .Return(new Type[0]); ClassUnderTest.FindSource(settings, theResponse).ShouldBeNull(); SpecificationExtensions.ShouldBeFalse(theResponse.ApplicationSourceTypes.Any()); }