Esempio n. 1
0
        public void GetHexColors_InvalidImage_Failed()
        {
            List <string> hexList = null;

            Assert.That(() => hexList = ProminentColor.GetHexColorsFromImage(null,
                                                                             3,
                                                                             85f,
                                                                             5,
                                                                             10f),
                        Throws.TypeOf <System.Exception>());
        }
Esempio n. 2
0
        public void GetHexColors_Success()
        {
            List <string> hexList = null;

            hexList = ProminentColor.GetHexColorsFromImage(texture2D,
                                                           3,
                                                           85f,
                                                           5,
                                                           10f);

            Assert.NotNull(hexList);
            Assert.Greater(hexList.Count, 0);
        }