public void CsvGraphDataService_Constructor_Test()
        {
            var withDefaultCtor = new CsvGraphDataService();
            Assert.AreEqual(withDefaultCtor.Config, CsvGraphDataServiceConfig.Current);

            var config = new CsvGraphDataServiceConfig()
            {
                VertexesFilePath = "PATH1",
                EdgesFilePath = "PATH2"
            };

            var withConfigPassedInCtor = new CsvGraphDataService(config);
            Assert.AreEqual(withConfigPassedInCtor.Config, config);
        }
Ejemplo n.º 2
0
        public void CsvGraphDataService_Constructor_Test()
        {
            var withDefaultCtor = new CsvGraphDataService();

            Assert.AreEqual(withDefaultCtor.Config, CsvGraphDataServiceConfig.Current);

            var config = new CsvGraphDataServiceConfig()
            {
                VertexesFilePath = "PATH1",
                EdgesFilePath    = "PATH2"
            };

            var withConfigPassedInCtor = new CsvGraphDataService(config);

            Assert.AreEqual(withConfigPassedInCtor.Config, config);
        }