public void UseContentRoot_Success() { var minifier = new UseContentRoot(); var asset = new Asset("", "", new[] { "" }); Assert.False(asset.IsUsingContentRoot()); asset.UseContentRoot(); Assert.True(asset.IsUsingContentRoot()); }
public void UseFileProvider_Success() { var minifier = new UseContentRoot(); var asset = new Asset("", "", new[] { "" }); Assert.Equal(0, asset.Items.Count); asset.UseFileProvider(null); Assert.Equal(1, asset.Items.Count); }