public void Should_handle_projects_referencing_xunit()
 {
     var document = new ProjectDocument(ProjectType.CSharp);
     document.SetAsXUnitTestContainer();
     _runner.CanHandleTestFor(document).ShouldBeTrue();
 }
Example #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));
			}
        }
Example #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();
 }