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

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

            Assert.Equal(31.007, value, 3);
        }
Beispiel #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 = SumCSV.ParseAndSum(path);

            Console.WriteLine(value);
        }