public void Test_Calculate_PossibleResolutions_Coefficient()
        {
            EmbroideryCreator calculate = new EmbroideryCreator();

            Dictionary<string, int> actual = calculate.PossibleResolutions(new Bitmap(11, 7), 3, 3, 5);

            Dictionary<string, int> expected = new Dictionary<string, int>();
            int startWidth = 3;
            int startHeight = 2;

            for (int i = 3; i <= 5; i++)
                expected.Add(new Resolution(i * startWidth, i * startHeight).ToString(), i);

            Assert.IsTrue(expected.Count == actual.Count);

            Assert.AreEqual(DictionaryToString(expected), DictionaryToString(actual));
        }
 public void Test_Calculate_PossibleResolutions_CoefficientException6()
 {
     EmbroideryCreator calculate = new EmbroideryCreator();
     calculate.PossibleResolutions(new Bitmap(11, 7), 3, 4, 3);
 }
 public void Test_Calculate_PossibleResolutions_CoefficientException1()
 {
     EmbroideryCreator calculate = new EmbroideryCreator();
     calculate.PossibleResolutions(new Bitmap(1, 1), -1, 3, 5);
 }
 public void Test_Calculate_PossibleResolutions_CountException4()
 {
     EmbroideryCreator calculate = new EmbroideryCreator();
     calculate.PossibleResolutions(new Bitmap(11, 2), 3, 0);
 }
 public void Test_Calculate_PossibleResolutions_CountException1()
 {
     EmbroideryCreator calculate = new EmbroideryCreator();
     calculate.PossibleResolutions(new Bitmap(10, 3), 0, 5);
 }