Esempio n. 1
0
 public void Should_handle_projects_referencing_nunit()
 {
     var document = new ProjectDocument(ProjectType.CSharp);
     document.SetAsNUnitTestContainer();
     _runner.CanHandleTestFor(document).ShouldBeTrue();
 }
Esempio n. 2
0
        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));
			}
        }
Esempio n. 3
0
 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();
 }