Skip to content

Commit

Permalink
fix: modify AssemblyInfo to reflect current version in ixlib param (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
sherwinski authored May 14, 2019
1 parent bf740bb commit 435e551
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Imgix/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyVersion("2.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
7 changes: 7 additions & 0 deletions tests/Imgix.Tests/UrlBuilderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,12 @@ public void UrlBuilderBase64EncodesBase64ParamVariants()

Assert.AreEqual("https://demo.imgix.net/~text?txt64=SSBjYW5uw7h0IGJlbMOuw6l24oiRIGl0IHdvcu-jv3MhIPCfmLE", test.BuildUrl("~text", parameters));
}

[Test]
public void UrlBuilderGeneratesIxLibParam()
{
var test = new UrlBuilder("demo.imgix.net", includeLibraryParam: true);
Assert.AreEqual(String.Format("https://demo.imgix.net/demo.png?ixlib=csharp-{0}", typeof(UrlBuilder).Assembly.GetName().Version), test.BuildUrl("demo.png"));
}
}
}

0 comments on commit 435e551

Please sign in to comment.