예제 #1
0
        public void WhenTestAcceptToNullOrEmptyFileArgumentMustBeFalse()
        {
            string file     = null;
            var    compiler = new CoffeeScriptSourceCompiler();

            Assert.IsFalse(compiler.Accept(file));

            file = "";
            Assert.IsFalse(compiler.Accept(file));
        }
예제 #2
0
        public void WhenTestAcceptToNonCoffeeScriptFileMustBefalse()
        {
            var file     = "file.coffeexxx";
            var compiler = new CoffeeScriptSourceCompiler();

            Assert.IsFalse(compiler.Accept(file));
        }
예제 #3
0
        public void WhenTestAcceptToCoffeeScriptFileMustBeTrue()
        {
            var file     = "file.coffee";
            var compiler = new CoffeeScriptSourceCompiler();

            Assert.IsTrue(compiler.Accept(file));
        }