public void Test_Observer3()
        {
            Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;

            string path  = typeof(Observer1).Namespace + ".Data.test.csv";
            double value = new SumCSV().ParseAndSum(path);

            Assert.Equal(31.007, value, 3);
        }
示例#2
0
        public static void Main(string[] args)
        {
            // We have to set the culture explicitely, otherwise double.Parse method above would
            // depend on the current culture of the operating system.
            Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;

            string path  = typeof(Observer1).Namespace + ".Data.test.csv";
            double value = new SumCSV().ParseAndSum(path);

            Console.WriteLine(value);
        }