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

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

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