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; } }
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"); }
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"); }