コード例 #1
0
 public void Should_handle_projects_referencing_nunit()
 {
     var document = new ProjectDocument(ProjectType.CSharp);
     document.SetAsNUnitTestContainer();
     _runner.CanHandleTestFor(document).ShouldBeTrue();
 }
コード例 #2
0
ファイル: ProjectParser.cs プロジェクト: tonyx/AutoTest.Net
        private void setContainsTests(ProjectDocument document)
        {
            if (_fileContent.Contains(NUNIT_REFERENCE))
			{
                document.SetAsNUnitTestContainer();
				Debug.WriteMessage(string.Format("{0} contains NUnit tests", _projectFile));
			}
            if (_fileContent.Contains(MSTEST_REFERENCE))
			{
                document.SetAsMSTestContainer();
				Debug.WriteMessage(string.Format("{0} contains MSTest tests", _projectFile));
			}
            if (_fileContent.Contains(XUNIT_REFERENCE))
			{
                document.SetAsXUnitTestContainer();
				Debug.WriteMessage(string.Format("{0} contains XUnit tests", _projectFile));
			}
        }
コード例 #3
0
ファイル: ProjectParser.cs プロジェクト: nieve/AutoTest.Net
 private void setContainsTests(ProjectDocument document)
 {
     if (_fileContent.Contains(NUNIT_REFERENCE))
         document.SetAsNUnitTestContainer();
     if (_fileContent.Contains(MSTEST_REFERENCE))
         document.SetAsMSTestContainer();
     if (_fileContent.Contains(XUNIT_REFERENCE))
         document.SetAsXUnitTestContainer();
 }