예제 #1
0
        public void Reset_AllSettingsChanged_RestoredToDefault()
        {
            var script = new WhiteboardScript();

            script.BackgroundColor = new MagickColor("purple");
            script.Enhance         = WhiteboardEnhancements.None;
            script.FilterOffset    = (Percentage)5;
            script.FilterSize      = 10;
            script.Saturation      = (Percentage)100;
            script.WhiteBalance    = (Percentage)0.1;

            script.Reset();

            AssertDefaults(script);
        }
        public void Test_Defaults()
        {
            var script = new WhiteboardScript();

            Test_Defaults(script);

            script.BackgroundColor = new MagickColor("purple");
            script.Enhance         = WhiteboardEnhancements.None;
            script.FilterOffset    = (Percentage)5;
            script.FilterSize      = 10;
            script.Saturation      = (Percentage)100;
            script.WhiteBalance    = (Percentage)0.1;

            script.Reset();
            Test_Defaults(script);
        }