Пример #1
0
        public void GetLS_OneValue()
        {
            var options = new Fernandezja.ColorHashSharp.Options();
            var result  = options.GetLS(0.35);

            Assert.NotNull(result);
            Assert.Single(result);
            Assert.Equal(0.35, result[0]);
        }
Пример #2
0
        public void GetLS_DefaultValues()
        {
            var options = new Fernandezja.ColorHashSharp.Options();
            var result  = options.GetLS();

            Assert.NotNull(result);
            Assert.Equal(3, result.Count);
            Assert.Equal(0.35, result[0]);
            Assert.Equal(0.5, result[1]);
            Assert.Equal(0.65, result[2]);
        }
Пример #3
0
        public void GetLS_ArrayValues()
        {
            var options = new Fernandezja.ColorHashSharp.Options();
            var result  = options.GetLS(new ArrayList()
            {
                0.35, 0.35, 0.35
            });

            Assert.NotNull(result);
            Assert.Equal(3, result.Count);
            Assert.Equal(0.35, result[0]);
            Assert.Equal(0.35, result[1]);
            Assert.Equal(0.35, result[2]);
        }