2020-01-02 16:58:06 -08:00
|
|
|
|
// Copyright (c) Brice Lambson
|
|
|
|
|
|
// The Brice Lambson licenses this file to you under the MIT license.
|
|
|
|
|
|
// See the LICENSE file in the project root for more information. Code forked from Brice Lambson's https://github.com/bricelam/ImageResizer/
|
2020-01-02 16:57:27 -08:00
|
|
|
|
|
|
|
|
|
|
using ImageResizer.Properties;
|
2019-12-23 17:49:31 -08:00
|
|
|
|
using Xunit;
|
|
|
|
|
|
|
|
|
|
|
|
namespace ImageResizer.Models
|
|
|
|
|
|
{
|
|
|
|
|
|
public class CustomSizeTests
|
|
|
|
|
|
{
|
|
|
|
|
|
[Fact]
|
|
|
|
|
|
public void Name_works()
|
|
|
|
|
|
{
|
|
|
|
|
|
var size = new CustomSize();
|
|
|
|
|
|
|
|
|
|
|
|
size.Name = "Ignored";
|
|
|
|
|
|
|
|
|
|
|
|
Assert.Equal(Resources.Input_Custom, size.Name);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|