예제 #1
0
        public void ConvertDoubleArrayToDashes_Should_Return_Dashes_String()
        {
            var dashes   = new double[] { 2.0, 2.0, 0.0, 2.0, 0.0, 2.0 };
            var expected = "2 2 0 2 0 2";

            var target = StyleHelper.ConvertDoubleArrayToDashes(dashes);

            Assert.Equal(expected, target);
        }
예제 #2
0
        public void ConvertDoubleArrayToDashes_Should_Not_Throw()
        {
            var target = StyleHelper.ConvertDoubleArrayToDashes(null);

            Assert.Null(target);
        }