Ejemplo n.º 1
0
        public void GuessDocumentType_Production()
        {
            var docName = Names.Document("CSharp /Project/SomeFile.cs");
            var actual  = TransformerUtils.GuessDocumentType(docName, new SST());

            Assert.AreEqual(DocumentType.Production, actual);
        }
Ejemplo n.º 2
0
        public void GuessDocumentType_Undefined()
        {
            var docName = Names.Document("NotCSharp /Project/SomeFile.abc");
            var actual  = TransformerUtils.GuessDocumentType(docName, new SST());

            Assert.AreEqual(DocumentType.Undefined, actual);
        }
Ejemplo n.º 3
0
        public void GuessDocumentType_FilenameTest()
        {
            var docName = Names.Document("CSharp /TestProject/Test.cs");
            var actual  = TransformerUtils.GuessDocumentType(docName, new SST());

            Assert.AreEqual(DocumentType.FilenameTest, actual);
        }
Ejemplo n.º 4
0
        public void GuessDocumentType_TestFramework(string methodName)
        {
            var docName = Names.Document("CSharp /TestProject/MockHelpers.cs");
            var sst     = PrepareSST(methodName);

            var actual = TransformerUtils.GuessDocumentType(docName, sst);

            Assert.AreEqual(DocumentType.TestFramework, actual);
        }
Ejemplo n.º 5
0
        public void GuessDocumentType_NotTest(string methodName)
        {
            var docName = Names.Document("CSharp /TestProject/Test.cs");
            var sst     = PrepareSST(methodName);

            var actual = TransformerUtils.GuessDocumentType(docName, sst);

            Assert.AreNotEqual(DocumentType.Test, actual);
        }