public void should_serialize_size_info()
        {
            var sizes = new ImageSizeInfo[] {new ImageSizeInfo("SmAll", 100, 200)};
            var asString = SizeInfoHelper.Serialize(sizes);

            Assert.AreEqual("small:100x200", asString);
        }
        public void should_serialize_size_info_list_with_more_than_one_element()
        {
            var sizes = new ImageSizeInfo[]
            {
                new ImageSizeInfo("SmAll", 100, 200),
                new ImageSizeInfo("LARGE", 100, 200)
            };
            var asString = SizeInfoHelper.Serialize(sizes);

            Assert.AreEqual("small:100x200|large:100x200", asString);
        }
 public void name_should_be_converted_to_lowercase()
 {
     var si = new ImageSizeInfo("SmAlL", 100, 100);
     Assert.AreEqual("small", si.Name);
 }