public void WhenTestAcceptToNonTypeScriptFileMustBefalse()
        {
            var file     = "file.tsxxx";
            var compiler = new TypeScriptSourceCompiler();

            Assert.IsFalse(compiler.Accept(file));
        }
        public void WhenTestAcceptToTypeScriptFileMustBeTrue()
        {
            var file     = "file.ts";
            var compiler = new TypeScriptSourceCompiler();

            Assert.IsTrue(compiler.Accept(file));
        }
        public void MustCompileAValidTypeScriptFile()
        {
            var compiler        = new TypeScriptSourceCompiler();
            var coffeScriptFile = GetTypeScriptTestFileLocation();
            var compiledFile    = compiler.Compile(coffeScriptFile);

            Assert.AreEqual(GetJavaScriptCompiledTestFile(), compiledFile);
        }
        public void WhenTestAcceptToNullOrEmptyFileArgumentMustBeFalse()
        {
            string file     = null;
            var    compiler = new TypeScriptSourceCompiler();

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

            file = "";
            Assert.IsFalse(compiler.Accept(file));
        }