public void Should_locate_the_source()
        {
            string source = "foo";

            resolver = new LocalWebAssetResolver(new WebAsset(source), locator.Object);

            locator.Setup(l => l.Locate(source, null));

            resolver.Resolve(new ResolverContext());

            locator.VerifyAll();
        }
        public void Should_locate_the_source()
        {
            string source = "foo";

            resolver = new LocalWebAssetResolver(new WebAsset(source), locator.Object);

            locator.Setup(l => l.Locate(source, null));

            resolver.Resolve(new ResolverContext());

            locator.VerifyAll();
        }
        public void Should_return_located_source()
        {
            string source = "foo";

            resolver = new LocalWebAssetResolver(new WebAsset(source), locator.Object);

            locator.Setup(l => l.Locate(source, null)).Returns(source);

            var result = resolver.Resolve(new ResolverContext());

            Assert.Equal(1, result.Count());
            Assert.Equal(source, result.ElementAt(0));
        }
        public void Should_return_located_source()
        {
            string source = "foo";

            resolver = new LocalWebAssetResolver(new WebAsset(source), locator.Object);

            locator.Setup(l => l.Locate(source, null)).Returns(source);

            var result = resolver.Resolve(new ResolverContext());

            Assert.Equal(1, result.Count());
            Assert.Equal(source, result.ElementAt(0));
        }