public void Add_throws_when_any_input_image_exceeds_output_size()
 {
     var settings = GetCalculatorSettings(100, 100, 0);
     var input = new TextureAtlasInput(settings);
     Assert.Throws<ArgumentOutOfRangeException>(() =>
         input.AddSprite(GetBitmap(256, 10, "Invalid"), "Invalid")
         );
 }
 private void AddTexture(TextureAtlasInput input, int width, int height, string reference)
 {
     input.AddSprite(GetBitmap(width,height,reference),reference);
 }
 public void Add_throws_on_null_image()
 {
     var settings = GetCalculatorSettings(100, 100, 0);
     var input = new TextureAtlasInput(settings);
     Assert.Throws<ArgumentNullException>(() => input.AddSprite(null, "invalid"));
 }
 public void Add_throws_on_null_reference()
 {
     var settings = GetCalculatorSettings(100, 100, 0);
     var input = new TextureAtlasInput(settings);
     Assert.Throws<ArgumentNullException>(() => input.AddSprite(GetBitmap(10, 10, "a"), null));
 }
 public void Add_throws_on_empty_reference(string reference)
 {
     var settings = GetCalculatorSettings(100, 100, 0);
     var input = new TextureAtlasInput(settings);
     Assert.Throws<ArgumentOutOfRangeException>(() => input.AddSprite(GetBitmap(10, 10, "a"), reference));
 }