예제 #1
0
        public void ItCanLoadTheEventsTestFile()
        {
            IJsonLoader sut = new JsonLoaderImpl();

            // We simply test that we can load something.
            var loadedObject = sut.Load <object>("Events.json");

            Assert.NotNull(loadedObject);
        }
예제 #2
0
        public void ItCannotLoadANonExistingFile()
        {
            IJsonLoader sut = new JsonLoaderImpl();

            Assert.Throws <FileNotFoundException>(() => sut.Load <object>("NonExistingFile.json"));
        }