public void TestSourceImageFileName() { var wizard = new SAEWizardForTest(); Assert.IsTrue(string.IsNullOrEmpty(wizard.SourceImageFileName), "Initial image is not loaded from file."); wizard.LoadSourceImageFromFile("file1"); Assert.AreEqual("file1", wizard.SourceImageFileName); wizard.LoadSourceImageFromFile("file2"); Assert.AreEqual("file2", wizard.SourceImageFileName); }
public void TestLoadSourceImageFromFile() { var wizard = new SAEWizardForTest(); wizard.TestSize = new Size(4, 3); wizard.TestColor = 1; wizard.LoadSourceImageFromFile("file1"); AssertLoadedImage(wizard.SourceImage, new Size(4, 3), 1); wizard.TestSize = new Size(5, 6); wizard.TestColor = 100; wizard.LoadSourceImageFromFile("file1"); AssertLoadedImage(wizard.SourceImage, new Size(5, 6), 100); }