예제 #1
0
        public void GetFileParserInstance_Success_Case1()
        {
            var    fileParseHandler = new FileParseHandler();
            string path             = "TestData/Caulfield_Race1.xml";
            var    fileParser       = fileParseHandler.GetFileParserInstance(path);

            Assert.NotNull(fileParser);
        }
예제 #2
0
        public void GetFileParserInstance_Fail_Case1()
        {
            var    fileParseHandler = new FileParseHandler();
            string path             = "TestData/Wolferhampton_Race1.abc";
            var    fileParser       = fileParseHandler.GetFileParserInstance(path);

            Assert.Null(fileParser);
        }
예제 #3
0
        public void GetFileParserInstance_Fail_Case2()
        {
            var    fileParseHandler = new FileParseHandler();
            string path             = "junk";
            var    fileParser       = fileParseHandler.GetFileParserInstance(path);

            Assert.Null(fileParser);
        }
예제 #4
0
        public void GetFileParserInstance_Success_Case2()
        {
            var    fileParseHandler = new FileParseHandler();
            string path             = "TestData/Wolferhampton_Race1.json";
            var    fileParser       = fileParseHandler.GetFileParserInstance(path);

            Assert.NotNull(fileParser);
        }