Skip to content

Commit

Permalink
removing obsolete Add(params string[] files) method
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCuse committed May 31, 2012
1 parent c5385c6 commit 1856a8c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 37 deletions.
9 changes: 0 additions & 9 deletions SquishIt.Framework/Base/BundleBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,6 @@ public T WithoutTypeAttribute()
return (T)this;
}

[Obsolete]
public T Add(params string[] filesPath)
{
foreach(var filePath in filesPath)
Add(filePath);

return (T)this;
}

public T Add(string fileOrFolderPath)
{
AddAsset(new Asset(fileOrFolderPath));
Expand Down
28 changes: 0 additions & 28 deletions SquishIt.Tests/CssBundleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,34 +72,6 @@ public void Setup()
hasher = new Hasher(retryableFileOpener);
}

[Test]
public void CanAddMultiplePathFiles()
{
var cssBundle1 = cssBundleFactory
.WithDebuggingEnabled(true)
.Create();

var cssBundle2 = cssBundleFactory
.WithDebuggingEnabled(true)
.Create();

// Obsolete Test
cssBundle1.Add("/css/first.css", "/css/second.css");
cssBundle2.Add("/css/first.css").Add("/css/second.css");

var cssBundle1Assets = cssBundle1.bundleState.Assets;
var cssBundle2Assets = cssBundle2.bundleState.Assets;

Assert.AreEqual(cssBundle1Assets.Count, cssBundle2Assets.Count);
for(var i = 0; i < cssBundle1Assets.Count; i++)
{
var assetBundle1 = cssBundle1Assets[i];
var assetBundle2 = cssBundle2Assets[i];
Assert.AreEqual(assetBundle1.LocalPath, assetBundle2.LocalPath);
Assert.AreEqual(assetBundle1.Order, assetBundle2.Order);
}
}

[Test]
public void CanBundleCss()
{
Expand Down

0 comments on commit 1856a8c

Please sign in to comment.