Example #1
0
        public void TestValidateInvalidContentPath()
        {
            var opts = new Options
            {
                BSPPath     = "testdata/map.bsp",
                ContentPath = "testdataInvalid"
            };

            Assert.Throws <App.InvalidOptionException>(() => Program.ValidateOptions(opts));
        }
Example #2
0
        public void TestValidateValidOptions()
        {
            var opts = new Options
            {
                BSPPath     = "testdata/map.bsp",
                ContentPath = "testdata"
            };

            Program.ValidateOptions(opts); // Should not throw anything
        }