Ejemplo n.º 1
0
        public void BadJSONTest()
        {
            FileProcessor fileProcessor = new FileProcessor();

            IFileSource fileSource = new JSONSource();

            Assert.False(fileSource.CanProcess("disk:\\folder\\file.xml"));
        }
Ejemplo n.º 2
0
        public void OkayJSONTest()
        {
            FileProcessor fileProcessor = new FileProcessor();

            IFileSource fileSource = new JSONSource();

            Assert.True(fileSource.CanProcess("disk:\\folder\\file.json"));
        }