Example #1
0
        public void PointCollectionToStrConverterTest1()
        {
            PointCollection points = new PointCollection();

            points.Add(new System.Windows.Point(1, 1));
            string strPoints = "1;1\n";
            PointCollectionToStringConverter converter = new PointCollectionToStringConverter();

            Assert.AreEqual(strPoints, converter.Convert(points, typeof(string), null, null));
        }
Example #2
0
        public void PointCollectionToStrConverterTest2()
        {
            string strPoints = "1;1\n";
            PointCollectionToStringConverter conv = new PointCollectionToStringConverter();
            PointCollection points = new PointCollection();

            points.Add(new System.Windows.Point(1, 1));
            string buff = (string)conv.Convert(points, string.Empty.GetType(), null, null);

            Assert.IsTrue(strPoints == buff);
        }