Example #1
0
 static void Main(string[] args)
 {
     Work wrk;//main work class
     if (args.Length != 0 && File.Exists(args[0]))
     {
         wrk = new Work();
         wrk.GetProfile(args[0]);
         wrk.GetData();
         wrk.PrintToConsole();
         if (args.Length>1)
         {
             switch (args[1])
             {
                 case "xml":wrk.PrintToXML();
                     break;
                 case "json":wrk.PrintToJSON();
                     break;
                 default: break;
             }
         }
     }
     else
     {
         Console.WriteLine("Wrong parameters");
         return;
     }
 }
Example #2
0
        public void TestMethodRGB()
        {
            Work wrk = new Work();
            wrk.GetProfile("AppleRGB.icc");
            wrk.GetData();

            Assert.IsTrue(wrk.iccProfile.NumComponents == "3");
            Assert.AreEqual(wrk.iccProfile.ClrType, ColorTypeEnum.RGB);
            Assert.AreEqual(wrk.iccProfile.Description, "Apple RGB");
        }
Example #3
0
        public void TestMethodGray()
        {
            Work wrk = new Work();
            wrk.GetProfile("BlackWhite.icc");
            wrk.GetData();

            Assert.IsTrue(wrk.iccProfile.NumComponents == "1");
            Assert.AreEqual(wrk.iccProfile.ClrType, ColorTypeEnum.Gray);
            Assert.AreEqual(wrk.iccProfile.Description, "Black & White");
        }