public void GuessDocumentType_Production() { var docName = Names.Document("CSharp /Project/SomeFile.cs"); var actual = TransformerUtils.GuessDocumentType(docName, new SST()); Assert.AreEqual(DocumentType.Production, actual); }
public void GuessDocumentType_Undefined() { var docName = Names.Document("NotCSharp /Project/SomeFile.abc"); var actual = TransformerUtils.GuessDocumentType(docName, new SST()); Assert.AreEqual(DocumentType.Undefined, actual); }
public void GuessDocumentType_FilenameTest() { var docName = Names.Document("CSharp /TestProject/Test.cs"); var actual = TransformerUtils.GuessDocumentType(docName, new SST()); Assert.AreEqual(DocumentType.FilenameTest, actual); }
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); }
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); }