├── tests └── test_project │ ├── NUnit_2.5.7_SampleInstall │ ├── bin │ │ ├── net-1.1 │ │ │ ├── runpnunit.bat │ │ │ ├── agent.conf │ │ │ ├── lib │ │ │ │ ├── fit.dll │ │ │ │ ├── log4net.dll │ │ │ │ ├── nunit.core.dll │ │ │ │ ├── nunit.util.dll │ │ │ │ ├── nunit.fixtures.dll │ │ │ │ ├── nunit-console-runner.dll │ │ │ │ └── nunit.core.interfaces.dll │ │ │ ├── runFile.exe │ │ │ ├── nunit-agent.exe │ │ │ ├── nunit-console.exe │ │ │ ├── pnunit-agent.exe │ │ │ ├── pnunit.tests.dll │ │ │ ├── nunit.framework.dll │ │ │ ├── pnunit-launcher.exe │ │ │ ├── pnunit.framework.dll │ │ │ ├── tests │ │ │ │ ├── timing-tests.dll │ │ │ │ ├── mock-assembly.dll │ │ │ │ ├── test-assembly.dll │ │ │ │ ├── test-utilities.dll │ │ │ │ ├── loadtest-assembly.dll │ │ │ │ ├── nunit.core.tests.dll │ │ │ │ ├── nunit.framework.dll │ │ │ │ ├── nunit.mocks.tests.dll │ │ │ │ ├── nunit.util.tests.dll │ │ │ │ ├── nunit-console.tests.dll │ │ │ │ ├── nonamespace-assembly.dll │ │ │ │ ├── nunit.fixtures.tests.dll │ │ │ │ └── nunit.framework.tests.dll │ │ │ ├── framework │ │ │ │ ├── nunit.mocks.dll │ │ │ │ ├── nunit.framework.dll │ │ │ │ └── pnunit.framework.dll │ │ │ ├── NUnitTests.nunit │ │ │ ├── agent.log.conf │ │ │ ├── launcher.log.conf │ │ │ ├── test.conf │ │ │ ├── runFile.exe.config │ │ │ ├── nunit-console.exe.config │ │ │ └── nunit-agent.exe.config │ │ └── net-2.0 │ │ │ ├── runpnunit.bat │ │ │ ├── agent.conf │ │ │ ├── nunit.exe │ │ │ ├── lib │ │ │ ├── fit.dll │ │ │ ├── Failure.png │ │ │ ├── Ignored.png │ │ │ ├── Skipped.png │ │ │ ├── Success.png │ │ │ ├── log4net.dll │ │ │ ├── nunit.core.dll │ │ │ ├── nunit.uikit.dll │ │ │ ├── nunit.util.dll │ │ │ ├── Inconclusive.png │ │ │ ├── nunit.fixtures.dll │ │ │ ├── nunit-gui-runner.dll │ │ │ ├── nunit.uiexception.dll │ │ │ ├── nunit-console-runner.dll │ │ │ └── nunit.core.interfaces.dll │ │ │ ├── runFile.exe │ │ │ ├── nunit-x86.exe │ │ │ ├── nunit-agent.exe │ │ │ ├── nunit-console.exe │ │ │ ├── pnunit-agent.exe │ │ │ ├── pnunit.tests.dll │ │ │ ├── nunit-agent-x86.exe │ │ │ ├── nunit.framework.dll │ │ │ ├── pnunit-launcher.exe │ │ │ ├── nunit-console-x86.exe │ │ │ ├── pnunit.framework.dll │ │ │ ├── tests │ │ │ ├── timing-tests.dll │ │ │ ├── mock-assembly.dll │ │ │ ├── test-assembly.dll │ │ │ ├── test-utilities.dll │ │ │ ├── loadtest-assembly.dll │ │ │ ├── nunit-gui.tests.dll │ │ │ ├── nunit.core.tests.dll │ │ │ ├── nunit.framework.dll │ │ │ ├── nunit.mocks.tests.dll │ │ │ ├── nunit.uikit.tests.dll │ │ │ ├── nunit.util.tests.dll │ │ │ ├── nunit-console.tests.dll │ │ │ ├── nonamespace-assembly.dll │ │ │ ├── nunit.fixtures.tests.dll │ │ │ ├── nunit.framework.tests.dll │ │ │ └── nunit.uiexception.tests.dll │ │ │ ├── framework │ │ │ ├── nunit.mocks.dll │ │ │ ├── nunit.framework.dll │ │ │ └── pnunit.framework.dll │ │ │ ├── agent.log.conf │ │ │ ├── launcher.log.conf │ │ │ ├── NUnitTests.nunit │ │ │ ├── test.conf │ │ │ ├── runFile.exe.config │ │ │ ├── nunit-console.exe.config │ │ │ ├── nunit-agent.exe.config │ │ │ ├── nunit-console-x86.exe.config │ │ │ └── nunit-agent-x86.exe.config │ ├── Logo.ico │ ├── license.txt │ ├── doc │ │ ├── favicon.ico │ │ ├── img │ │ │ ├── logo.gif │ │ │ ├── miniGui.jpg │ │ │ ├── testTab.jpg │ │ │ ├── bulletOff.gif │ │ │ ├── bulletOn.gif │ │ │ ├── resultTab.jpg │ │ │ ├── testsTab.JPG │ │ │ ├── addinsDialog.JPG │ │ │ ├── configEditor.jpg │ │ │ ├── console-mock.jpg │ │ │ ├── displayTab.jpg │ │ │ ├── generalTab.jpg │ │ │ ├── gui-verify.jpg │ │ │ ├── langFilter.gif │ │ │ ├── assembliesTab.jpg │ │ │ ├── generalOptions.jpg │ │ │ ├── gui-screenshot.jpg │ │ │ ├── optionsDialog.jpg │ │ │ ├── testProperties.jpg │ │ │ ├── advancedSettings.jpg │ │ │ ├── generalSettings.jpg │ │ │ ├── testLoadOptions.jpg │ │ │ ├── testLoadSettings.jpg │ │ │ ├── testOutputOptions.jpg │ │ │ ├── testOutputSettings.jpg │ │ │ ├── testResultSettings.JPG │ │ │ ├── textOutputSettings.jpg │ │ │ ├── treeDisplaySettings.jpg │ │ │ ├── assemblyReloadSettings.JPG │ │ │ └── visualStudioSettings.jpg │ │ ├── mainMenu.html │ │ ├── quickStart.html │ │ ├── vsSupport.html │ │ ├── configEditor.html │ │ ├── configFiles.html │ │ ├── contextMenu.html │ │ ├── releaseNotes.html │ │ ├── files │ │ │ ├── QuickStart.doc │ │ │ ├── QuickStart.Spanish.doc │ │ │ └── Summary.xslt │ │ ├── releaseDetail.html │ │ ├── settingsDialog.html │ │ ├── testProperties.html │ │ ├── codeFuncs.js │ │ ├── index.html │ │ └── extensibility.html │ └── samples │ │ ├── csharp │ │ ├── failures │ │ │ ├── cs-failures.build │ │ │ ├── cs-failures.csproj │ │ │ ├── CSharpTest.cs │ │ │ └── AssemblyInfo.cs │ │ ├── syntax │ │ │ ├── cs-syntax.build │ │ │ ├── cs-syntax.csproj │ │ │ └── AssemblyInfo.cs │ │ ├── money │ │ │ ├── cs-money.build │ │ │ ├── IMoney.cs │ │ │ ├── cs-money.csproj │ │ │ ├── AssemblyInfo.cs │ │ │ └── Money.cs │ │ └── CSharp.sln │ │ ├── vb │ │ ├── failures │ │ │ ├── vb-failures.build │ │ │ ├── AssemblyInfo.vb │ │ │ ├── SimpleVBTest.vb │ │ │ └── vb-failures.vbproj │ │ ├── syntax │ │ │ ├── vb-syntax.build │ │ │ ├── AssemblyInfo.vb │ │ │ └── vb-syntax.vbproj │ │ ├── money │ │ │ ├── vb-money.build │ │ │ ├── AssemblyInfo.vb │ │ │ ├── IMoney.vb │ │ │ └── vb-money.vbproj │ │ └── vb-samples.sln │ │ ├── jsharp │ │ ├── failures │ │ │ ├── jsharp-failures.build │ │ │ ├── jsharp-failures.vjsproj │ │ │ ├── JSharpTest.jsl │ │ │ └── AssemblyInfo.jsl │ │ └── jsharp.sln │ │ ├── cpp │ │ ├── cpp-cli │ │ │ ├── syntax │ │ │ │ ├── cpp-cli-syntax.build │ │ │ │ └── AssemblyInfo.cpp │ │ │ ├── failures │ │ │ │ ├── cpp-cli-failures.build │ │ │ │ ├── cppsample.h │ │ │ │ ├── cppsample.cpp │ │ │ │ └── AssemblyInfo.cpp │ │ │ └── cpp-cli.sln │ │ └── managed │ │ │ ├── failures │ │ │ ├── cppsample.h │ │ │ ├── cpp-managed-failures.build │ │ │ ├── cppsample.cpp │ │ │ └── AssemblyInfo.cpp │ │ │ └── managed-cpp.sln │ │ ├── Extensibility │ │ └── Core │ │ │ ├── SampleSuiteExtension │ │ │ ├── SampleSuiteExtension.build │ │ │ ├── SampleSuiteExtensionAttribute.cs │ │ │ ├── Tests │ │ │ │ └── SampleSuiteExtensionTests.cs │ │ │ ├── Addin.cs │ │ │ ├── SampleSuiteExtensionBuilder.cs │ │ │ ├── SampleSuiteExtension.cs │ │ │ ├── ReadMe.txt │ │ │ └── AssemblyInfo.cs │ │ │ ├── Minimal │ │ │ ├── Minimal.build │ │ │ ├── ReadMe.txt │ │ │ └── Minimal.cs │ │ │ └── SampleFixtureExtension │ │ │ ├── SampleFixtureExtension.build │ │ │ ├── SampleFixtureExtensionAttribute.cs │ │ │ ├── Tests │ │ │ ├── SampleFixtureExtensionTests.cs │ │ │ └── AssemblyInfo.cs │ │ │ ├── SampleFixtureExtension.cs │ │ │ ├── ReadMe.txt │ │ │ ├── SampleFixtureExtensionBuilder.cs │ │ │ └── AssemblyInfo.cs │ │ └── ReadMe.txt │ └── SampleDotNetProject │ ├── SampleCodeLibrary │ ├── Foo.cs │ ├── SampleCodeLibrary.sln │ ├── Properties │ │ └── AssemblyInfo.cs │ └── SampleCodeLibrary.csproj │ └── SampleCodeTests │ ├── FooTests.cs │ ├── Properties │ └── AssemblyInfo.cs │ └── SampleCodeTests.csproj ├── spike ├── ProjectTest │ ├── SystemCall.rb │ ├── VisualStudio.rb │ ├── NUnit.rb │ ├── TestReport.rb │ └── EndToEndTest.rb ├── ShadowFolder.rb ├── Mutation │ ├── FileWriter.rb │ ├── MutationController.rb │ ├── Mutator.rb │ └── EndToEndTest.rb └── FileSystem.rb ├── unit_tests ├── TestObjects │ ├── ShadowFolder.rb │ ├── Compiler.rb │ ├── TestResult.rb │ ├── CommentableLineFinder.rb │ ├── TestRunner.rb │ ├── FileSystem.rb │ ├── FileLineReplacer.rb │ └── CommentableLineFinderObserver.rb ├── MutatableFileFinder_Test.rb ├── SafeLineCommenter_tests.rb ├── MutationTest_test.rb └── CommentableLineFinder_tests.rb ├── .gitignore └── src ├── MutatableFileFinder.rb ├── SafeLineCommenter.rb ├── CommentableLineFinder.rb └── MutationTest.rb /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/runpnunit.bat: -------------------------------------------------------------------------------- 1 | start pnunit-agent agent.conf 2 | pnunit-launcher test.conf -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/runpnunit.bat: -------------------------------------------------------------------------------- 1 | start pnunit-agent agent.conf 2 | pnunit-launcher test.conf -------------------------------------------------------------------------------- /spike/ProjectTest/SystemCall.rb: -------------------------------------------------------------------------------- 1 | class SystemCall 2 | def call command, *args 3 | yield `#{command} #{args.join " "}` 4 | end 5 | end -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/Logo.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/Logo.ico -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/license.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/license.txt -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/agent.conf: -------------------------------------------------------------------------------- 1 | 2 | 8080 3 | . 4 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/agent.conf: -------------------------------------------------------------------------------- 1 | 2 | 8080 3 | . 4 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/favicon.ico -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/logo.gif -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/miniGui.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/miniGui.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/testTab.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/testTab.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/mainMenu.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/mainMenu.html -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/quickStart.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/quickStart.html -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/vsSupport.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/vsSupport.html -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/nunit.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/nunit.exe -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/configEditor.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/configEditor.html -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/configFiles.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/configFiles.html -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/contextMenu.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/contextMenu.html -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/bulletOff.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/bulletOff.gif -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/bulletOn.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/bulletOn.gif -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/resultTab.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/resultTab.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/testsTab.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/testsTab.JPG -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/releaseNotes.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/releaseNotes.html -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/lib/fit.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/lib/fit.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/runFile.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/runFile.exe -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/fit.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/fit.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/runFile.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/runFile.exe -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/files/QuickStart.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/files/QuickStart.doc -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/addinsDialog.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/addinsDialog.JPG -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/configEditor.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/configEditor.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/console-mock.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/console-mock.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/displayTab.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/displayTab.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/generalTab.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/generalTab.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/gui-verify.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/gui-verify.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/langFilter.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/langFilter.gif -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/releaseDetail.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/releaseDetail.html -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/settingsDialog.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/settingsDialog.html -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/testProperties.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/testProperties.html -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/nunit-x86.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/nunit-x86.exe -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/assembliesTab.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/assembliesTab.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/generalOptions.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/generalOptions.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/gui-screenshot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/gui-screenshot.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/optionsDialog.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/optionsDialog.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/testProperties.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/testProperties.jpg -------------------------------------------------------------------------------- /unit_tests/TestObjects/ShadowFolder.rb: -------------------------------------------------------------------------------- 1 | class ShadowFolder 2 | def root_path_to_copy 3 | @root_path 4 | end 5 | 6 | def shadow path 7 | @root_path = path 8 | end 9 | end -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/lib/log4net.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/lib/log4net.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/nunit-agent.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/nunit-agent.exe -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/nunit-console.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/nunit-console.exe -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/pnunit-agent.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/pnunit-agent.exe -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/pnunit.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/pnunit.tests.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/Failure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/Failure.png -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/Ignored.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/Ignored.png -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/Skipped.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/Skipped.png -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/Success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/Success.png -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/log4net.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/log4net.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/nunit-agent.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/nunit-agent.exe -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/nunit-console.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/nunit-console.exe -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/pnunit-agent.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/pnunit-agent.exe -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/pnunit.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/pnunit.tests.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/advancedSettings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/advancedSettings.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/generalSettings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/generalSettings.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/testLoadOptions.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/testLoadOptions.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/testLoadSettings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/testLoadSettings.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/testOutputOptions.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/testOutputOptions.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/lib/nunit.core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/lib/nunit.core.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/lib/nunit.util.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/lib/nunit.util.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/nunit.framework.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/pnunit-launcher.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/pnunit-launcher.exe -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/nunit.core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/nunit.core.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/nunit.uikit.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/nunit.uikit.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/nunit.util.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/nunit.util.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/nunit-agent-x86.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/nunit-agent-x86.exe -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/nunit.framework.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/pnunit-launcher.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/pnunit-launcher.exe -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/testOutputSettings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/testOutputSettings.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/testResultSettings.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/testResultSettings.JPG -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/textOutputSettings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/textOutputSettings.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/treeDisplaySettings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/treeDisplaySettings.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/lib/nunit.fixtures.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/lib/nunit.fixtures.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/pnunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/pnunit.framework.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/timing-tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/timing-tests.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/Inconclusive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/Inconclusive.png -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/nunit.fixtures.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/nunit.fixtures.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/nunit-console-x86.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/nunit-console-x86.exe -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/pnunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/pnunit.framework.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/timing-tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/timing-tests.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/files/QuickStart.Spanish.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/files/QuickStart.Spanish.doc -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/assemblyReloadSettings.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/assemblyReloadSettings.JPG -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/visualStudioSettings.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/doc/img/visualStudioSettings.jpg -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/mock-assembly.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/mock-assembly.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/test-assembly.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/test-assembly.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/test-utilities.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/test-utilities.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/nunit-gui-runner.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/nunit-gui-runner.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/mock-assembly.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/mock-assembly.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/test-assembly.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/test-assembly.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/test-utilities.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/test-utilities.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/framework/nunit.mocks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/framework/nunit.mocks.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/loadtest-assembly.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/loadtest-assembly.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/nunit.core.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/nunit.core.tests.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/nunit.framework.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/nunit.mocks.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/nunit.mocks.tests.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/nunit.util.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/nunit.util.tests.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/framework/nunit.mocks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/framework/nunit.mocks.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/nunit.uiexception.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/nunit.uiexception.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/loadtest-assembly.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/loadtest-assembly.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nunit-gui.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nunit-gui.tests.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nunit.core.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nunit.core.tests.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nunit.framework.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nunit.mocks.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nunit.mocks.tests.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nunit.uikit.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nunit.uikit.tests.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nunit.util.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nunit.util.tests.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/framework/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/framework/nunit.framework.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/lib/nunit-console-runner.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/lib/nunit-console-runner.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/lib/nunit.core.interfaces.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/lib/nunit.core.interfaces.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/nunit-console.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/nunit-console.tests.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/framework/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/framework/nunit.framework.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/nunit-console-runner.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/nunit-console-runner.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/nunit.core.interfaces.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/lib/nunit.core.interfaces.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nunit-console.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nunit-console.tests.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/framework/pnunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/framework/pnunit.framework.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/nonamespace-assembly.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/nonamespace-assembly.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/nunit.fixtures.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/nunit.fixtures.tests.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/nunit.framework.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/tests/nunit.framework.tests.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/framework/pnunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/framework/pnunit.framework.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nonamespace-assembly.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nonamespace-assembly.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nunit.fixtures.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nunit.fixtures.tests.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nunit.framework.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nunit.framework.tests.dll -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nunit.uiexception.tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jcbozonier/Mutate/master/tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/tests/nunit.uiexception.tests.dll -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.ncb 2 | *.SEATCORP.* 3 | *.user 4 | .svn 5 | PatchEntry.dll 6 | PatchStub.exe 7 | Milliman.MGAlfa.Packaging.dll 8 | *.sln.cache 9 | *.swp 10 | *.rb~ 11 | TestWorkingFolder 12 | mutation_report.txt 13 | *.ini -------------------------------------------------------------------------------- /tests/test_project/SampleDotNetProject/SampleCodeLibrary/Foo.cs: -------------------------------------------------------------------------------- 1 | namespace SampleCodeLibrary 2 | { 3 | public class Foo 4 | { 5 | public object GetTestedResult(bool p) 6 | { 7 | return !p; 8 | } 9 | } 10 | } -------------------------------------------------------------------------------- /unit_tests/TestObjects/Compiler.rb: -------------------------------------------------------------------------------- 1 | class TestCompiler 2 | def was_ran 3 | @was_ran 4 | end 5 | 6 | def compile project_path 7 | @was_ran = true 8 | @compiled_project_path = project_path 9 | end 10 | 11 | def compiled_project_path 12 | @compiled_project_path 13 | end 14 | end -------------------------------------------------------------------------------- /spike/ShadowFolder.rb: -------------------------------------------------------------------------------- 1 | require "tmpdir" 2 | include FileUtils 3 | 4 | class ShadowFolder 5 | def shadow path 6 | temp_root = Dir.mktmpdir 7 | cp_r path + '\\.', temp_root 8 | 9 | yield temp_root 10 | 11 | rm_r temp_root 12 | raise "Folder not destroyed!!" if File.directory? temp_root 13 | end 14 | end -------------------------------------------------------------------------------- /unit_tests/TestObjects/TestResult.rb: -------------------------------------------------------------------------------- 1 | class TestResultSpy 2 | def unit_tests_passed 3 | @tests_passed = true 4 | end 5 | 6 | def unit_tests_failed 7 | @tests_passed = false 8 | end 9 | 10 | def tests_passed 11 | @tests_passed 12 | end 13 | 14 | def tests_failed 15 | not @tests_passed 16 | end 17 | end -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/csharp/failures/cs-failures.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/vb/failures/vb-failures.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/vb/syntax/vb-syntax.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /unit_tests/TestObjects/CommentableLineFinder.rb: -------------------------------------------------------------------------------- 1 | class TestCommentableLineFinder 2 | def found_path 3 | @found_path 4 | end 5 | 6 | def next_file_path path 7 | @found_path = path 8 | end 9 | 10 | def no_more_files 11 | @completed_searching = true 12 | end 13 | 14 | def completed_searching 15 | @completed_searching 16 | end 17 | end -------------------------------------------------------------------------------- /unit_tests/TestObjects/TestRunner.rb: -------------------------------------------------------------------------------- 1 | class TestTestRunner 2 | def test test_project_path 3 | @was_ran = true 4 | @test_project_path = test_project_path 5 | end 6 | 7 | def was_ran 8 | @was_ran 9 | end 10 | 11 | def was_NOT_ran 12 | not @was_ran 13 | end 14 | 15 | def test_project_path 16 | @test_project_path 17 | end 18 | end -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/csharp/syntax/cs-syntax.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/jsharp/failures/jsharp-failures.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/cpp/cpp-cli/syntax/cpp-cli-syntax.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /unit_tests/TestObjects/FileSystem.rb: -------------------------------------------------------------------------------- 1 | class TestFileSystem 2 | def search_path 3 | @search_path 4 | end 5 | 6 | def glob search_string 7 | @search_path = search_string 8 | end 9 | 10 | def file_path_lines_were_requested_from 11 | @file_path_lines_were_requested_from 12 | end 13 | 14 | def start_reading_all_lines file_path 15 | @file_path_lines_were_requested_from = file_path 16 | end 17 | end -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/vb/money/vb-money.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/csharp/money/cs-money.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tests/test_project/SampleDotNetProject/SampleCodeTests/FooTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using NUnit.Framework; 6 | using SampleCodeLibrary; 7 | 8 | namespace SampleCodeTests 9 | { 10 | [TestFixture] 11 | public class FooTests 12 | { 13 | [Test] 14 | public void FooTest1() 15 | { 16 | var sut = new Foo(); 17 | Assert.That(sut.GetTestedResult(false), Is.True); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /spike/ProjectTest/VisualStudio.rb: -------------------------------------------------------------------------------- 1 | class VisualStudio 2 | def initialize solution_to_build, system_call 3 | @compiler_path = 'C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\msbuild.exe' 4 | @build_path = solution_to_build 5 | @system_call = system_call 6 | end 7 | 8 | def compile 9 | @system_call.call @compiler_path, @build_path do |results| 10 | @test_report.compilation_completed results 11 | end 12 | end 13 | 14 | def report_compilation_results_to test_report 15 | @test_report = test_report 16 | end 17 | end -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/NUnitTests.nunit: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/MutatableFileFinder.rb: -------------------------------------------------------------------------------- 1 | class MutatableFileFinder 2 | def search directory_path 3 | @file_system.glob File.join directory_path, '**/*.cs' 4 | end 5 | 6 | def search_complete 7 | @commentable_line_finder.no_more_files 8 | end 9 | 10 | def on_file_updates_notify file_system 11 | @file_system = file_system 12 | end 13 | 14 | def when_commentable_files_are_found_notify commentable_line_finder 15 | @commentable_line_finder = commentable_line_finder 16 | end 17 | 18 | def next_path_found path 19 | @commentable_line_finder.next_file_path path 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /spike/Mutation/FileWriter.rb: -------------------------------------------------------------------------------- 1 | class FileWriter 2 | def initialize 3 | @files_being_written = {} 4 | end 5 | 6 | def open filepath 7 | raise "File \"#{filepath}\" already open for writing!" if @files_being_written.has_key? filepath 8 | 9 | @files_being_written[filepath] = File.open(filepath, 'w') 10 | end 11 | 12 | def write filepath, text 13 | file = @files_being_written[filepath] 14 | file.puts text 15 | end 16 | 17 | def close filepath 18 | file = @files_being_written[filepath] 19 | file.close 20 | 21 | @files_being_written.delete filepath 22 | end 23 | end 24 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/agent.log.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/agent.log.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/launcher.log.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/launcher.log.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /unit_tests/TestObjects/FileLineReplacer.rb: -------------------------------------------------------------------------------- 1 | class FileLineReplacer 2 | def provided_root_path 3 | @provided_root_path 4 | end 5 | 6 | def provided_line_number 7 | @provided_line_number 8 | end 9 | 10 | def provided_line_of_text 11 | @provided_line_of_text 12 | end 13 | 14 | def provided_target_file_path 15 | @provided_target_file_path 16 | end 17 | 18 | def replace_with_this_line line_number, line_of_text, target_file_path, root_path 19 | @provided_root_path = root_path 20 | @provided_line_number = line_number 21 | @provided_line_of_text = line_of_text 22 | @provided_target_file_path = target_file_path 23 | end 24 | end -------------------------------------------------------------------------------- /spike/FileSystem.rb: -------------------------------------------------------------------------------- 1 | class FileSystem 2 | def read_all path 3 | file = File.open(path, 'r') 4 | yield file.read 5 | file.close 6 | end 7 | 8 | def read_each_line file_path 9 | target_file = File.open file_path 10 | target_file.each_line{ |line| 11 | yield line 12 | } 13 | target_file.close 14 | end 15 | 16 | def write_all file_path, text_to_write 17 | target_file = File.open(file_path, 'w') 18 | target_file.write(text_to_write) 19 | target_file.close 20 | end 21 | 22 | def exists? path 23 | File.exists? path 24 | end 25 | 26 | def glob search_pattern 27 | yield Dir.glob(search_pattern) 28 | end 29 | end -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/Extensibility/Core/SampleSuiteExtension/SampleSuiteExtension.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /src/SafeLineCommenter.rb: -------------------------------------------------------------------------------- 1 | class SafeLineCommenter 2 | def next_line line_number, line_of_text, target_file_path, root_path 3 | @line_number = line_number 4 | @line_of_text = line_of_text 5 | @target_file_path = target_file_path 6 | 7 | @shadow_folder.shadow root_path 8 | end 9 | 10 | def folder_shadowed shadow_folder_path 11 | @file_replacer.replace_with_this_line @line_number, @line_of_text, @target_file_path, shadow_folder_path 12 | end 13 | 14 | def on_shadow_folder_updates_notify shadow_folder 15 | @shadow_folder = shadow_folder 16 | end 17 | 18 | def on_file_line_replacement_updates_notify file_replacer 19 | @file_replacer = file_replacer 20 | end 21 | end -------------------------------------------------------------------------------- /unit_tests/TestObjects/CommentableLineFinderObserver.rb: -------------------------------------------------------------------------------- 1 | class TestCommentableLineFinderObserver 2 | def current_line_number 3 | @current_line_number 4 | end 5 | 6 | def current_relative_path 7 | @current_relative_path 8 | end 9 | 10 | def current_root_path 11 | @current_root_path 12 | end 13 | 14 | def current_line_of_text 15 | @current_line_of_text 16 | end 17 | 18 | def next_line line_number, current_root_path, current_relative_path, current_line_of_text 19 | @current_line_number = line_number 20 | @current_root_path = current_root_path 21 | @current_relative_path = current_relative_path 22 | @current_line_of_text = current_line_of_text 23 | end 24 | end -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/Extensibility/Core/Minimal/Minimal.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtension.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/NUnitTests.nunit: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/Extensibility/Core/SampleSuiteExtension/SampleSuiteExtensionAttribute.cs: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // Copyright 2007, Charlie Poole 3 | // This is free software licensed under the NUnit license. You may 4 | // obtain a copy of the license at http://nunit.org/?p=license&r=2.4 5 | // **************************************************************** 6 | 7 | using System; 8 | 9 | namespace NUnit.Core.Extensions 10 | { 11 | /// 12 | /// SampleSuiteExtensionAttribute is used to identify a SampleSuiteExtension fixture 13 | /// 14 | [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] 15 | public sealed class SampleSuiteExtensionAttribute : Attribute 16 | { 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtensionAttribute.cs: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // Copyright 2007, Charlie Poole 3 | // This is free software licensed under the NUnit license. You may 4 | // obtain a copy of the license at http://nunit.org/?p=license&r=2.4 5 | // **************************************************************** 6 | 7 | using System; 8 | 9 | namespace NUnit.Core.Extensions 10 | { 11 | /// 12 | /// SampleFixtureExtensionAttribute is used to identify a SampleFixtureExtension class 13 | /// 14 | [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] 15 | public sealed class SampleFixtureExtensionAttribute : Attribute 16 | { 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /spike/Mutation/MutationController.rb: -------------------------------------------------------------------------------- 1 | class MutationController 2 | def initialize file_system, mutator, shadow_folder 3 | @file_system = file_system 4 | @mutator = mutator 5 | @folder = shadow_folder 6 | end 7 | 8 | def mutate original_working_path, target_line_number, relative_file_path 9 | file_path_to_read_from = File.join original_working_path, relative_file_path 10 | 11 | @folder.shadow original_working_path do |working_path| 12 | mutated_code_text = StringIO.new 13 | file_path_to_mutate = File.join working_path, relative_file_path 14 | 15 | @mutator.begin file_path_to_mutate, target_line_number 16 | 17 | @file_system.read_each_line file_path_to_read_from do |line| 18 | @mutator.next_line line 19 | end 20 | 21 | @mutator.end 22 | end 23 | end 24 | end -------------------------------------------------------------------------------- /src/CommentableLineFinder.rb: -------------------------------------------------------------------------------- 1 | class CommentableLineFinder 2 | def next_file root_path, relative_path 3 | @current_root_path = root_path 4 | @current_relative_path = relative_path 5 | 6 | if @file_system 7 | @file_system.start_reading_all_lines File.join root_path, relative_path 8 | end 9 | end 10 | 11 | def next_line text 12 | if not /^\s*\/\//.match(text) and text.strip != '' 13 | @current_line_number = 0 if @current_line_number.equal? nil 14 | @current_line_number += 1 15 | @next_line_observer.next_line @current_line_number, @current_root_path, @current_relative_path, text 16 | end 17 | end 18 | 19 | def for_file_system_access_use file_system 20 | @file_system = file_system 21 | end 22 | 23 | def on_next_line_found_notify observer 24 | @next_line_observer = observer 25 | end 26 | end -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/cpp/cpp-cli/failures/cpp-cli-failures.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /spike/Mutation/Mutator.rb: -------------------------------------------------------------------------------- 1 | class Mutator 2 | def initialize file_writer, report 3 | @file_writer = file_writer 4 | @current_line = 0 5 | @report = report 6 | end 7 | 8 | def begin file_path_to_mutate, target_line_number 9 | @file_path_to_mutate = file_path_to_mutate 10 | @target_line_number = target_line_number 11 | @file_writer.open @file_path_to_mutate 12 | end 13 | 14 | def next_line line 15 | @current_line += 1 16 | 17 | if @current_line == @target_line_number 18 | text_to_write = "// " + line 19 | @report.mutated_line @current_line, text_to_write 20 | else 21 | text_to_write = line 22 | end 23 | 24 | @file_writer.write @file_path_to_mutate, text_to_write 25 | end 26 | 27 | def end 28 | @file_writer.close @file_path_to_mutate 29 | @current_line = 0 30 | end 31 | end -------------------------------------------------------------------------------- /spike/ProjectTest/NUnit.rb: -------------------------------------------------------------------------------- 1 | require "src/FileSystem" 2 | require "spike/ProjectTest/SystemCall" 3 | 4 | class NUnit 5 | def initialize test_runner_path, code_to_test, test_results_path, system_call 6 | @test_runner = test_runner_path 7 | @test_results_path = test_results_path 8 | @test_command = code_to_test 9 | @file_system = FileSystem.new 10 | @system_call = system_call 11 | end 12 | 13 | def test 14 | @system_call.call @test_runner, @test_command, "/xml:#{@test_results_path}" do |results| 15 | raise "Test results weren't found" if !@file_system.exists? @test_results_path 16 | 17 | @file_system.read_all @test_results_path do |text| 18 | @test_report.unit_tests_completed text 19 | end 20 | end 21 | end 22 | 23 | def report_test_results_to test_report 24 | @test_report = test_report 25 | end 26 | end -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/test.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Testing 6 | 7 | 8 | Testing 9 | pnunit.tests.dll 10 | TestLibraries.Testing.EqualTo19 11 | localhost:8080 12 | 13 | ..\server 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/test.conf: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Testing 6 | 7 | 8 | Testing 9 | pnunit.tests.dll 10 | TestLibraries.Testing.EqualTo19 11 | localhost:8080 12 | 13 | ..\server 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/MutationTest.rb: -------------------------------------------------------------------------------- 1 | class MutationTest 2 | def initialize 3 | end 4 | 5 | def on_compile_notify compiler 6 | @compiler = compiler 7 | end 8 | 9 | def on_test_results_notify test_results 10 | @test_results = test_results 11 | end 12 | 13 | def on_unit_test_notify test_runner 14 | @test_runner = test_runner 15 | end 16 | 17 | def run working_folder, relative_project_path, test_project_path 18 | @test_project_path = File.join working_folder, test_project_path 19 | @compiler.compile File.join working_folder, relative_project_path 20 | end 21 | 22 | def compiled_successfully 23 | @test_runner.test @test_project_path 24 | end 25 | 26 | def compiled_unsuccessfully 27 | 28 | end 29 | 30 | def unit_tests_passed 31 | @test_results.unit_tests_passed 32 | end 33 | 34 | def unit_tests_failed 35 | @test_results.unit_tests_failed 36 | end 37 | end -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/cpp/cpp-cli/failures/cppsample.h: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // This is free software licensed under the NUnit license. You 3 | // may obtain a copy of the license as well as information regarding 4 | // copyright ownership at http://nunit.org/?p=license&r=2.4. 5 | // **************************************************************** 6 | 7 | #pragma once 8 | 9 | using namespace System; 10 | using namespace NUnit::Framework; 11 | 12 | namespace NUnitSamples 13 | { 14 | [TestFixture] 15 | public ref class SimpleCPPSample 16 | { 17 | int fValue1; 18 | int fValue2; 19 | public: 20 | [SetUp] void Init(); 21 | 22 | [Test] void Add(); 23 | [Test] void DivideByZero(); 24 | [Test] void Equals(); 25 | [Test] [Ignore("ignored test")] void IgnoredTest(); 26 | [Test] [ExpectedException(InvalidOperationException::typeid)] void ExpectAnException(); 27 | }; 28 | } 29 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/cpp/managed/failures/cppsample.h: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // This is free software licensed under the NUnit license. You 3 | // may obtain a copy of the license as well as information regarding 4 | // copyright ownership at http://nunit.org/?p=license&r=2.4. 5 | // **************************************************************** 6 | 7 | #pragma once 8 | 9 | using namespace System; 10 | using namespace NUnit::Framework; 11 | 12 | namespace NUnitSamples 13 | { 14 | [TestFixture] 15 | public __gc class SimpleCPPSample 16 | { 17 | int fValue1; 18 | int fValue2; 19 | public: 20 | [SetUp] void Init(); 21 | 22 | [Test] void Add(); 23 | [Test] void DivideByZero(); 24 | [Test] void Equals(); 25 | [Test] [Ignore("ignored test")] void IgnoredTest(); 26 | [Test] [ExpectedException(__typeof(InvalidOperationException))] void ExpectAnException(); 27 | }; 28 | } 29 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/jsharp/jsharp.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 8.00 2 | Project("{E6FDF86B-F3D1-11D4-8576-0002A516ECE8}") = "jsharp-failures", "failures\jsharp-failures.vjsproj", "{B55A6E53-57A9-4205-B396-C9983B3AF46A}" 3 | ProjectSection(ProjectDependencies) = postProject 4 | EndProjectSection 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfiguration) = preSolution 8 | Debug = Debug 9 | Release = Release 10 | EndGlobalSection 11 | GlobalSection(ProjectConfiguration) = postSolution 12 | {B55A6E53-57A9-4205-B396-C9983B3AF46A}.Debug.ActiveCfg = Debug|.NET 13 | {B55A6E53-57A9-4205-B396-C9983B3AF46A}.Debug.Build.0 = Debug|.NET 14 | {B55A6E53-57A9-4205-B396-C9983B3AF46A}.Release.ActiveCfg = Release|.NET 15 | {B55A6E53-57A9-4205-B396-C9983B3AF46A}.Release.Build.0 = Release|.NET 16 | EndGlobalSection 17 | GlobalSection(ExtensibilityGlobals) = postSolution 18 | EndGlobalSection 19 | GlobalSection(ExtensibilityAddIns) = postSolution 20 | EndGlobalSection 21 | EndGlobal 22 | -------------------------------------------------------------------------------- /spike/ProjectTest/TestReport.rb: -------------------------------------------------------------------------------- 1 | class TestReport 2 | def initialize 3 | @tests_passed = true 4 | end 5 | 6 | def unit_tests_completed test_results 7 | @unit_tests_completed = true 8 | @tests_passed = false if !test_results.include?('failures="0"') 9 | 10 | test_complete if @unit_tests_completed and @compilation_completed 11 | end 12 | 13 | def compilation_completed test_results 14 | @compilation_completed = true 15 | @tests_passed = false if test_results.include? "FAILED" 16 | test_complete if @unit_tests_completed and @compilation_completed 17 | end 18 | 19 | def compile_using compiler 20 | @compiler = compiler 21 | end 22 | 23 | def unit_test_using testing_framework 24 | @testing_framework = testing_framework 25 | end 26 | 27 | def run_test 28 | @compiler.compile 29 | @testing_framework.test 30 | end 31 | 32 | def test_complete 33 | if @tests_passed 34 | puts "Tests passed!" 35 | else 36 | puts "Tests failed!" 37 | end 38 | end 39 | end -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/cpp/managed/managed-cpp.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 8.00 2 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cpp-managed-failures", "failures\cpp-managed-failures.vcproj", "{7E5849C7-0469-4AD2-91B9-C87203934254}" 3 | ProjectSection(ProjectDependencies) = postProject 4 | EndProjectSection 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfiguration) = preSolution 8 | Debug = Debug 9 | Release = Release 10 | EndGlobalSection 11 | GlobalSection(ProjectConfiguration) = postSolution 12 | {7E5849C7-0469-4AD2-91B9-C87203934254}.Debug.ActiveCfg = Debug|Win32 13 | {7E5849C7-0469-4AD2-91B9-C87203934254}.Debug.Build.0 = Debug|Win32 14 | {7E5849C7-0469-4AD2-91B9-C87203934254}.Release.ActiveCfg = Release|Win32 15 | {7E5849C7-0469-4AD2-91B9-C87203934254}.Release.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(ExtensibilityGlobals) = postSolution 18 | EndGlobalSection 19 | GlobalSection(ExtensibilityAddIns) = postSolution 20 | EndGlobalSection 21 | EndGlobal 22 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/Extensibility/Core/SampleSuiteExtension/Tests/SampleSuiteExtensionTests.cs: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // Copyright 2007, Charlie Poole 3 | // This is free software licensed under the NUnit license. You may 4 | // obtain a copy of the license at http://nunit.org/?p=license&r=2.4 5 | // **************************************************************** 6 | 7 | using System; 8 | using System.Reflection; 9 | 10 | namespace NUnit.Core.Extensions.Tests 11 | { 12 | /// 13 | /// Test class that demonstrates SampleSuiteExtension 14 | /// 15 | [SampleSuiteExtension] 16 | public class SampleSuiteExtensionTests 17 | { 18 | public void SampleTest1() 19 | { 20 | Console.WriteLine( "Hello from sample test 1" ); 21 | } 22 | 23 | public void SampleTest2() 24 | { 25 | Console.WriteLine( "Hello from sample test 2" ); 26 | } 27 | 28 | public void NotATest() 29 | { 30 | Console.WriteLine( "I shouldn't be called!" ); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/Extensibility/Core/SampleSuiteExtension/Addin.cs: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // Copyright 2007, Charlie Poole 3 | // This is free software licensed under the NUnit license. You may 4 | // obtain a copy of the license at http://nunit.org/?p=license&r=2.4 5 | // **************************************************************** 6 | 7 | using System; 8 | using NUnit.Core.Extensibility; 9 | 10 | namespace NUnit.Core.Extensions 11 | { 12 | /// 13 | /// Summary description for Addin. 14 | /// 15 | [NUnitAddin(Name="SampleSuiteExtension", Description = "Recognizes Tests starting with SampleTest...")] 16 | public class Addin : IAddin 17 | { 18 | #region IAddin Members 19 | public bool Install(IExtensionHost host) 20 | { 21 | IExtensionPoint builders = host.GetExtensionPoint( "SuiteBuilders" ); 22 | if ( builders == null ) 23 | return false; 24 | 25 | builders.Install( new SampleSuiteExtensionBuilder() ); 26 | return true; 27 | } 28 | #endregion 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/Extensibility/Core/Minimal/ReadMe.txt: -------------------------------------------------------------------------------- 1 | Minimal Addin Example 2 | 3 | 4 | MinimalAddin Class 5 | 6 | This class represents the addin. It is marked by the NUnitAddinAttribute 7 | and implements the required IAddin interface. When called by NUnit to 8 | install itself, it simply returns false. 9 | 10 | Note on Building this Extension 11 | 12 | If you use the Visual Studio solution, the NUnit references in both 13 | included projects must be changed so that they refer to the copy of 14 | NUnit in which you want to install the extension. The post-build step 15 | for the SampleSuiteExtension project must be changed to copy the 16 | extension into the addins directory for your NUnit install. 17 | 18 | NOTE: 19 | 20 | The references to nunit.core and nunit.common in the 21 | SampleSuiteExtension project have their Copy Local property set to 22 | false, rather than the Visual Studio default of true. In developing 23 | extensions, it is essential there be no extra copies of these assemblies 24 | be created. Once the extension is complete, those who install it in 25 | binary form will not need to deal with this issue. 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/cpp/managed/failures/cpp-managed-failures.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 24 | 25 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/vb/failures/AssemblyInfo.vb: -------------------------------------------------------------------------------- 1 | Imports System.Reflection 2 | Imports System.Runtime.InteropServices 3 | 4 | ' General Information about an assembly is controlled through the following 5 | ' set of attributes. Change these attribute values to modify the information 6 | ' associated with an assembly. 7 | 8 | ' Review the values of the assembly attributes 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 'The following GUID is for the ID of the typelib if this project is exposed to COM 19 | 20 | 21 | ' Version information for an assembly consists of the following four values: 22 | ' 23 | ' Major Version 24 | ' Minor Version 25 | ' Build Number 26 | ' Revision 27 | ' 28 | ' You can specify all the values or you can default the Build and Revision Numbers 29 | ' by using the '*' as shown below: 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /spike/ProjectTest/EndToEndTest.rb: -------------------------------------------------------------------------------- 1 | require "spike/ProjectTest/VisualStudio" 2 | require "spike/ProjectTest/NUnit" 3 | require "spike/ShadowFolder" 4 | require "spike/ProjectTest/TestReport" 5 | 6 | if __FILE__ == $0 7 | folder = ShadowFolder.new 8 | 9 | folder.shadow 'C:\Code\MutationTesting\tests\test_project' do |root_path| 10 | solution_path = File.join root_path, 'SampleDotNetProject/SampleCodeLibrary/SampleCodeLibrary.sln' 11 | test_project_path = File.join root_path, 'SampleDotNetProject/SampleCodeTests/SampleCodeTests.csproj' 12 | test_runner_path = File.join root_path, 'NUnit_2.5.7_SampleInstall/bin/net-2.0/nunit-console.exe' 13 | test_results_path = File.join root_path, 'test_results.xml' 14 | 15 | test_report = TestReport.new 16 | system_call = SystemCall.new 17 | visual_studio = VisualStudio.new solution_path, system_call 18 | nunit = NUnit.new test_runner_path, test_project_path, test_results_path, system_call 19 | 20 | test_report.compile_using visual_studio 21 | test_report.unit_test_using nunit 22 | visual_studio.report_compilation_results_to test_report 23 | nunit.report_test_results_to test_report 24 | 25 | test_report.run_test 26 | end 27 | end -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/vb/money/AssemblyInfo.vb: -------------------------------------------------------------------------------- 1 | Imports System 2 | Imports System.Reflection 3 | Imports System.Runtime.InteropServices 4 | 5 | ' General Information about an assembly is controlled through the following 6 | ' set of attributes. Change these attribute values to modify the information 7 | ' associated with an assembly. 8 | 9 | ' Review the values of the assembly attributes 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 'The following GUID is for the ID of the typelib if this project is exposed to COM 20 | 21 | 22 | ' Version information for an assembly consists of the following four values: 23 | ' 24 | ' Major Version 25 | ' Minor Version 26 | ' Build Number 27 | ' Revision 28 | ' 29 | ' You can specify all the values or you can default the Build and Revision Numbers 30 | ' by using the '*' as shown below: 31 | 32 | 33 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/vb/syntax/AssemblyInfo.vb: -------------------------------------------------------------------------------- 1 | Imports System 2 | Imports System.Reflection 3 | Imports System.Runtime.InteropServices 4 | 5 | ' General Information about an assembly is controlled through the following 6 | ' set of attributes. Change these attribute values to modify the information 7 | ' associated with an assembly. 8 | 9 | ' Review the values of the assembly attributes 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 'The following GUID is for the ID of the typelib if this project is exposed to COM 20 | 21 | 22 | ' Version information for an assembly consists of the following four values: 23 | ' 24 | ' Major Version 25 | ' Minor Version 26 | ' Build Number 27 | ' Revision 28 | ' 29 | ' You can specify all the values or you can default the Build and Revision Numbers 30 | ' by using the '*' as shown below: 31 | 32 | 33 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/cpp/managed/failures/cppsample.cpp: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // This is free software licensed under the NUnit license. You 3 | // may obtain a copy of the license as well as information regarding 4 | // copyright ownership at http://nunit.org/?p=license&r=2.4. 5 | // **************************************************************** 6 | 7 | #include "cppsample.h" 8 | 9 | namespace NUnitSamples { 10 | 11 | void SimpleCPPSample::Init() { 12 | fValue1 = 2; 13 | fValue2 = 3; 14 | } 15 | 16 | void SimpleCPPSample::Add() { 17 | int result = fValue1 + fValue2; 18 | Assert::AreEqual(6,result); 19 | } 20 | 21 | void SimpleCPPSample::DivideByZero() 22 | { 23 | int zero= 0; 24 | int result= 8/zero; 25 | } 26 | 27 | void SimpleCPPSample::Equals() { 28 | Assert::AreEqual(12, 12, "Integer"); 29 | Assert::AreEqual(12L, 12L, "Long"); 30 | Assert::AreEqual('a', 'a', "Char"); 31 | 32 | 33 | Assert::AreEqual(12, 13, "Expected Failure (Integer)"); 34 | Assert::AreEqual(12.0, 11.99, 0.0, "Expected Failure (Double)"); 35 | } 36 | 37 | void SimpleCPPSample::IgnoredTest() 38 | { 39 | throw new InvalidCastException(); 40 | } 41 | 42 | void SimpleCPPSample::ExpectAnException() 43 | { 44 | throw new InvalidCastException(); 45 | } 46 | 47 | } 48 | 49 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/cpp/cpp-cli/failures/cppsample.cpp: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // This is free software licensed under the NUnit license. You 3 | // may obtain a copy of the license as well as information regarding 4 | // copyright ownership at http://nunit.org/?p=license&r=2.4. 5 | // **************************************************************** 6 | 7 | #include "cppsample.h" 8 | 9 | namespace NUnitSamples { 10 | 11 | void SimpleCPPSample::Init() { 12 | fValue1 = 2; 13 | fValue2 = 3; 14 | } 15 | 16 | void SimpleCPPSample::Add() { 17 | int result = fValue1 + fValue2; 18 | Assert::AreEqual(6,result); 19 | } 20 | 21 | void SimpleCPPSample::DivideByZero() 22 | { 23 | int zero= 0; 24 | int result= 8/zero; 25 | } 26 | 27 | void SimpleCPPSample::Equals() { 28 | Assert::AreEqual(12, 12, "Integer"); 29 | Assert::AreEqual(12L, 12L, "Long"); 30 | Assert::AreEqual('a', 'a', "Char"); 31 | 32 | 33 | Assert::AreEqual(12, 13, "Expected Failure (Integer)"); 34 | Assert::AreEqual(12.0, 11.99, 0.0, "Expected Failure (Double)"); 35 | } 36 | 37 | void SimpleCPPSample::IgnoredTest() 38 | { 39 | throw gcnew InvalidCastException(); 40 | } 41 | 42 | void SimpleCPPSample::ExpectAnException() 43 | { 44 | throw gcnew InvalidCastException(); 45 | } 46 | 47 | } 48 | 49 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/csharp/money/IMoney.cs: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // This is free software licensed under the NUnit license. You 3 | // may obtain a copy of the license as well as information regarding 4 | // copyright ownership at http://nunit.org/?p=license&r=2.4. 5 | // **************************************************************** 6 | 7 | namespace NUnit.Samples.Money 8 | { 9 | 10 | /// The common interface for simple Monies and MoneyBags. 11 | interface IMoney 12 | { 13 | 14 | /// Adds a money to this money. 15 | IMoney Add(IMoney m); 16 | 17 | /// Adds a simple Money to this money. This is a helper method for 18 | /// implementing double dispatch. 19 | IMoney AddMoney(Money m); 20 | 21 | /// Adds a MoneyBag to this money. This is a helper method for 22 | /// implementing double dispatch. 23 | IMoney AddMoneyBag(MoneyBag s); 24 | 25 | /// True if this money is zero. 26 | bool IsZero { get; } 27 | 28 | /// Multiplies a money by the given factor. 29 | IMoney Multiply(int factor); 30 | 31 | /// Negates this money. 32 | IMoney Negate(); 33 | 34 | /// Subtracts a money from this money. 35 | IMoney Subtract(IMoney m); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/Extensibility/Core/SampleFixtureExtension/Tests/SampleFixtureExtensionTests.cs: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // Copyright 2007, Charlie Poole 3 | // This is free software licensed under the NUnit license. You may 4 | // obtain a copy of the license at http://nunit.org/?p=license&r=2.4 5 | // **************************************************************** 6 | 7 | using System; 8 | using NUnit.Framework; 9 | using NUnit.Core.Extensions; 10 | 11 | namespace NUnit.Extensions.Tests 12 | { 13 | /// 14 | /// Test class that demonstrates SampleFixtureExtension 15 | /// 16 | [SampleFixtureExtension] 17 | public class SampleFixtureExtensionTests 18 | { 19 | [TestFixtureSetUp] 20 | public void SetUpTests() 21 | { 22 | Console.WriteLine( "TestFixtureSetUp called" ); 23 | } 24 | 25 | [TestFixtureTearDown] 26 | public void FixtureTearDown() 27 | { 28 | Console.WriteLine( "TestFixtureTearDown called" ); 29 | } 30 | 31 | [Test] 32 | public void SomeTest() 33 | { 34 | Console.WriteLine( "Hello from some test" ); 35 | } 36 | 37 | [Test] 38 | public void AnotherTest() 39 | { 40 | Console.WriteLine( "Hello from another test" ); 41 | } 42 | 43 | public void NotATest() 44 | { 45 | Console.WriteLine( "I shouldn't be called!" ); 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/Extensibility/Core/Minimal/Minimal.cs: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // Copyright 2007, Charlie Poole 3 | // This is free software licensed under the NUnit license. You may 4 | // obtain a copy of the license at http://nunit.org/?p=license&r=2.4 5 | // **************************************************************** 6 | 7 | using System; 8 | using NUnit.Core.Extensibility; 9 | 10 | namespace NUnit.Samples.Extensibility 11 | { 12 | /// 13 | /// This is the smallest possible Addin, which does nothing 14 | /// but is recognized by NUnit and listed in the Addins dialog. 15 | /// 16 | /// The Addin class is marked by the NUnitAddin attribute and 17 | /// implements IAddin, as required. Optional property syntax 18 | /// is used here to override the default name of the addin and 19 | /// to provide a description. Both are displayed by NUnit in the 20 | /// Addin Dialog. 21 | /// 22 | /// The addin doesn't actually install anything, but simply 23 | /// returns false in its Install method. 24 | /// 25 | [NUnitAddin(Name="Minimal Addin", Description="This Addin doesn't do anything")] 26 | public class Minimal : IAddin 27 | { 28 | #region IAddin Members 29 | public bool Install(IExtensionHost host) 30 | { 31 | // TODO: Add Minimal.Install implementation 32 | return true; 33 | } 34 | #endregion 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/vb/money/IMoney.vb: -------------------------------------------------------------------------------- 1 | ' **************************************************************** 2 | ' This is free software licensed under the NUnit license. You 3 | ' may obtain a copy of the license as well as information regarding 4 | ' copyright ownership at http://nunit.org/?p=license&r=2.4. 5 | ' **************************************************************** 6 | 7 | Namespace NUnit.Samples 8 | 9 | 'The common interface for simple Monies and MoneyBags. 10 | Public Interface IMoney 11 | 12 | 'Adds a money to this money 13 | Function Add(ByVal m As IMoney) As IMoney 14 | 15 | 'Adds a simple Money to this money. This is a helper method for 16 | 'implementing double dispatch. 17 | Function AddMoney(ByVal m As Money) As IMoney 18 | 19 | 'Adds a MoneyBag to this money. This is a helper method for 20 | 'implementing double dispatch. 21 | Function AddMoneyBag(ByVal s As MoneyBag) As IMoney 22 | 23 | 'True if this money is zero. 24 | ReadOnly Property IsZero() As Boolean 25 | 26 | 'Multiplies a money by the given factor. 27 | Function Multiply(ByVal factor As Int32) As IMoney 28 | 29 | 'Negates this money. 30 | Function Negate() As IMoney 31 | 32 | 'Subtracts a money from this money. 33 | Function Subtract(ByVal m As IMoney) As IMoney 34 | 35 | End Interface 36 | 37 | End Namespace 38 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/cpp/cpp-cli/syntax/AssemblyInfo.cpp: -------------------------------------------------------------------------------- 1 | #include "stdafx.h" 2 | 3 | using namespace System; 4 | using namespace System::Reflection; 5 | using namespace System::Runtime::CompilerServices; 6 | using namespace System::Runtime::InteropServices; 7 | using namespace System::Security::Permissions; 8 | 9 | // 10 | // General Information about an assembly is controlled through the following 11 | // set of attributes. Change these attribute values to modify the information 12 | // associated with an assembly. 13 | // 14 | [assembly:AssemblyTitleAttribute("cppclisyntax")]; 15 | [assembly:AssemblyDescriptionAttribute("")]; 16 | [assembly:AssemblyConfigurationAttribute("")]; 17 | [assembly:AssemblyCompanyAttribute("")]; 18 | [assembly:AssemblyProductAttribute("cppclisyntax")]; 19 | [assembly:AssemblyCopyrightAttribute("Copyright (c) 2007")]; 20 | [assembly:AssemblyTrademarkAttribute("")]; 21 | [assembly:AssemblyCultureAttribute("")]; 22 | 23 | // 24 | // Version information for an assembly consists of the following four values: 25 | // 26 | // Major Version 27 | // Minor Version 28 | // Build Number 29 | // Revision 30 | // 31 | // You can specify all the value or you can default the Revision and Build Numbers 32 | // by using the '*' as shown below: 33 | 34 | [assembly:AssemblyVersionAttribute("1.0.*")]; 35 | 36 | [assembly:ComVisible(false)]; 37 | 38 | [assembly:CLSCompliantAttribute(true)]; 39 | 40 | [assembly:SecurityPermission(SecurityAction::RequestMinimum, UnmanagedCode = true)]; 41 | -------------------------------------------------------------------------------- /tests/test_project/SampleDotNetProject/SampleCodeLibrary/SampleCodeLibrary.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleCodeLibrary", "SampleCodeLibrary.csproj", "{9459ABAB-B9A4-4226-B57E-93704D9EA2F8}" 5 | EndProject 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleCodeTests", "..\SampleCodeTests\SampleCodeTests.csproj", "{1EC1F560-7B16-44FC-B3D4-5A8904CA7709}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {9459ABAB-B9A4-4226-B57E-93704D9EA2F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {9459ABAB-B9A4-4226-B57E-93704D9EA2F8}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {9459ABAB-B9A4-4226-B57E-93704D9EA2F8}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {9459ABAB-B9A4-4226-B57E-93704D9EA2F8}.Release|Any CPU.Build.0 = Release|Any CPU 18 | {1EC1F560-7B16-44FC-B3D4-5A8904CA7709}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 19 | {1EC1F560-7B16-44FC-B3D4-5A8904CA7709}.Debug|Any CPU.Build.0 = Debug|Any CPU 20 | {1EC1F560-7B16-44FC-B3D4-5A8904CA7709}.Release|Any CPU.ActiveCfg = Release|Any CPU 21 | {1EC1F560-7B16-44FC-B3D4-5A8904CA7709}.Release|Any CPU.Build.0 = Release|Any CPU 22 | EndGlobalSection 23 | GlobalSection(SolutionProperties) = preSolution 24 | HideSolutionNode = FALSE 25 | EndGlobalSection 26 | EndGlobal 27 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/files/Summary.xslt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Tests run: 11 | 12 | , Failures: 13 | 14 | , Not run: 15 | 16 | , Time: 17 | 18 | seconds 19 | 20 | 21 | 22 | 23 | Failures: 24 | 25 | 26 | Tests not run: 27 | 28 | 29 | 30 | 31 | 32 | 33 | ) 34 | 35 | : 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /tests/test_project/SampleDotNetProject/SampleCodeTests/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("SampleCodeTests")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("SampleCodeTests")] 13 | [assembly: AssemblyCopyright("Copyright © 2010")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("205ed919-1abe-47ae-9d6a-57ebaf18749c")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /tests/test_project/SampleDotNetProject/SampleCodeLibrary/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("SampleCodeLibrary")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("SampleCodeLibrary")] 13 | //using System.Reflection; 14 | [assembly: AssemblyTrademark("")] 15 | //using System.Runtime.InteropServices; 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | //[assembly: AssemblyCompany("")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | //// COM, set the ComVisible attribute to true on that type. 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /spike/Mutation/EndToEndTest.rb: -------------------------------------------------------------------------------- 1 | require 'spike/ShadowFolder' 2 | require 'spike/FileSystem' 3 | require 'spike/Mutation/Mutator' 4 | require 'spike/Mutation/FileWriter' 5 | require 'spike/Mutation/MutationController' 6 | require "StringIO" 7 | 8 | class Report 9 | def mutated_line line_number, text 10 | puts "Mutated line: #{text}" 11 | end 12 | 13 | def mutating_file file_path 14 | puts "Mutating file: #{file_path}" 15 | end 16 | 17 | def mutating_line_number line_number 18 | puts "Mutating line ##{line_number}" 19 | end 20 | end 21 | 22 | if __FILE__ == $0 23 | file_system = FileSystem.new 24 | folder = ShadowFolder.new 25 | report = Report.new 26 | mutation_controller = MutationController.new file_system, Mutator.new(FileWriter.new, report), folder 27 | 28 | folder.shadow 'C:\Code\MutationTesting\tests\test_project' do |root_path| 29 | working_folder = File.join root_path, "SampleDotNetProject" 30 | search_pattern = File.join working_folder, "**", "*.cs" 31 | 32 | file_system.glob(search_pattern) do |mutatable_file_paths| 33 | mutatable_file_paths.each{ |mutatable_file_path| 34 | relative_mutatable_file_path = mutatable_file_path.sub(working_folder, '') 35 | report.mutating_file relative_mutatable_file_path 36 | 37 | file_line_number = 0 38 | 39 | file_system.read_each_line mutatable_file_path do |mutatable_line| 40 | file_line_number += 1 41 | report.mutating_line_number file_line_number 42 | mutation_controller.mutate working_folder, file_line_number, relative_mutatable_file_path 43 | end 44 | } 45 | end 46 | end 47 | end -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/Extensibility/Core/SampleSuiteExtension/SampleSuiteExtensionBuilder.cs: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // Copyright 2007, Charlie Poole 3 | // This is free software licensed under the NUnit license. You may 4 | // obtain a copy of the license at http://nunit.org/?p=license&r=2.4 5 | // **************************************************************** 6 | 7 | using System; 8 | using NUnit.Core.Extensibility; 9 | 10 | namespace NUnit.Core.Extensions 11 | { 12 | /// 13 | /// SampleSuiteExtensionBuilder knows how to build a SampleSuiteExtension 14 | /// 15 | public class SampleSuiteExtensionBuilder : ISuiteBuilder 16 | { 17 | #region ISuiteBuilder Members 18 | 19 | // This builder delegates all the work to the constructor of the 20 | // extension suite. Many builders will need to do more work, 21 | // looking for other attributes, setting properties on the 22 | // suite and locating methods for tests, setup and teardown. 23 | public Test BuildFrom(Type type) 24 | { 25 | if ( CanBuildFrom( type ) ) 26 | return new SampleSuiteExtension( type ); 27 | return null; 28 | } 29 | 30 | // The builder recognizes the types that it can use by the presense 31 | // of SampleSuiteExtensionAttribute. Note that an attribute does not 32 | // have to be used. You can use any arbitrary set of rules that can be 33 | // implemented using reflection on the type. 34 | public bool CanBuildFrom(Type type) 35 | { 36 | return Reflect.HasAttribute( type, "NUnit.Core.Extensions.SampleSuiteExtensionAttribute", false ); 37 | } 38 | 39 | #endregion 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /unit_tests/MutatableFileFinder_Test.rb: -------------------------------------------------------------------------------- 1 | #Test Framework 2 | require 'test/unit' 3 | 4 | #Subject Under Test 5 | require 'src/MutatableFileFinder' 6 | 7 | #Test Objects 8 | require 'unit_tests/TestObjects/FileSystem' 9 | require 'unit_tests/TestObjects/CommentableLineFinder' 10 | 11 | class MutatableFileFinder_Tests < Test::Unit::TestCase 12 | def test_when_searching_a_path 13 | @file_path = '' 14 | 15 | file_system = TestFileSystem.new 16 | file_finder = MutatableFileFinder.new 17 | file_finder.on_file_updates_notify file_system 18 | 19 | file_finder.search @file_path 20 | 21 | assert_equal file_system.search_path, '/**/*.cs', 'The wrong search string was requested of the file system.' 22 | end 23 | 24 | def test_when_mutatable_paths_are_found 25 | test_commentable_line_finder = TestCommentableLineFinder.new 26 | file_finder = MutatableFileFinder.new 27 | file_finder.when_commentable_files_are_found_notify test_commentable_line_finder 28 | expected_found_path = 'path_found' 29 | 30 | file_finder.next_path_found expected_found_path 31 | 32 | assert_equal expected_found_path, test_commentable_line_finder.found_path, 'The path found is not the same path that was provided.' 33 | end 34 | 35 | def test_when_search_is_complete 36 | test_commentable_line_finder = TestCommentableLineFinder.new 37 | file_finder = MutatableFileFinder.new 38 | file_finder.when_commentable_files_are_found_notify test_commentable_line_finder 39 | 40 | file_finder.search_complete 41 | 42 | assert test_commentable_line_finder.completed_searching, 'The commentable line finder should be done searching now.' 43 | end 44 | end -------------------------------------------------------------------------------- /unit_tests/SafeLineCommenter_tests.rb: -------------------------------------------------------------------------------- 1 | #Test Framework 2 | require 'test/unit' 3 | 4 | #Subject Under Test 5 | require 'src/SafeLineCommenter' 6 | 7 | #Test Objects 8 | require 'unit_tests/TestObjects/ShadowFolder' 9 | require 'unit_tests/TestObjects/FileLineReplacer' 10 | 11 | class SafeLineCommenter_tests < Test::Unit::TestCase 12 | def test_when_a_commentable_line_is_provided 13 | line_number = 42 14 | line_of_text = 'line OF texxxtttttt!!!!!' 15 | root_path_to_shadow = 'root path to shadow' 16 | target_file_path = 'target file path!' 17 | shadow_root_path = 'shadow root path' 18 | shadow_folder = ShadowFolder.new 19 | file_line_replacer = FileLineReplacer.new 20 | safe_line_commenter = SafeLineCommenter.new 21 | 22 | safe_line_commenter.on_shadow_folder_updates_notify shadow_folder 23 | safe_line_commenter.on_file_line_replacement_updates_notify file_line_replacer 24 | 25 | safe_line_commenter.next_line line_number, line_of_text, target_file_path, root_path_to_shadow 26 | safe_line_commenter.folder_shadowed shadow_root_path 27 | 28 | assert_equal root_path_to_shadow, shadow_folder.root_path_to_copy, 'it should request a shadow folder for the correct path' 29 | assert_equal shadow_root_path, file_line_replacer.provided_root_path, 'it should pass the shadow root path to the file_line_replacer' 30 | assert_equal line_number, file_line_replacer.provided_line_number, 'it should request to replace the correct line number' 31 | assert_equal line_of_text, file_line_replacer.provided_line_of_text, 'it should provide the correct replacement text' 32 | assert_equal target_file_path, file_line_replacer.provided_target_file_path, 'it should provide the correct target file path' 33 | end 34 | end -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/Extensibility/Core/SampleSuiteExtension/SampleSuiteExtension.cs: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // Copyright 2007, Charlie Poole 3 | // This is free software licensed under the NUnit license. You may 4 | // obtain a copy of the license at http://nunit.org/?p=license&r=2.4 5 | // **************************************************************** 6 | 7 | using System; 8 | using System.Reflection; 9 | 10 | namespace NUnit.Core.Extensions 11 | { 12 | /// 13 | /// SampleSuiteExtension is a minimal example of a suite extension. It 14 | /// extends test suite and creates a fixture that runs every test starting 15 | /// with "SampleTest..." Because it inherits from TestSuite, rather than 16 | /// TestFixture, it has to construct its own fixture object and find its 17 | /// own tests. Everything is done in the constructor for simplicity. 18 | /// 19 | class SampleSuiteExtension : TestSuite 20 | { 21 | public SampleSuiteExtension( Type fixtureType ) 22 | : base( fixtureType ) 23 | { 24 | // Create the fixture object. We could wait to do this when 25 | // it is needed, but we do it here for simplicity. 26 | this.Fixture = Reflect.Construct( fixtureType ); 27 | 28 | // Locate our test methods and add them to the suite using 29 | // the Add method of TestSuite. Note that we don't do a simple 30 | // Tests.Add, because that wouldn't set the parent of the tests. 31 | foreach( MethodInfo method in fixtureType.GetMethods( 32 | BindingFlags.Public | BindingFlags.Instance | BindingFlags.DeclaredOnly ) ) 33 | { 34 | if ( method.Name.StartsWith( "SampleTest" ) ) 35 | this.Add( new NUnitTestMethod( method ) ); 36 | } 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/jsharp/failures/jsharp-failures.vjsproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtension.cs: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // Copyright 2007, Charlie Poole 3 | // This is free software licensed under the NUnit license. You may 4 | // obtain a copy of the license at http://nunit.org/?p=license&r=2.4 5 | // **************************************************************** 6 | 7 | using System; 8 | 9 | namespace NUnit.Core.Extensions 10 | { 11 | /// 12 | /// SampleFixtureExtension extends NUnitTestFixture and adds a custom setup 13 | /// before running TestFixtureSetUp and after running TestFixtureTearDown. 14 | /// Because it inherits from NUnitTestFixture, a lot of work is done for it. 15 | /// 16 | class SampleFixtureExtension : NUnitTestFixture 17 | { 18 | public SampleFixtureExtension( Type fixtureType ) 19 | : base( fixtureType ) 20 | { 21 | // NOTE: Since we are inheriting from NUnitTestFixture we don't 22 | // have to do anything if we don't want to. All the attributes 23 | // that are normally used with an NUnitTestFixture will be 24 | // recognized. 25 | // 26 | // Just to have something to do, we override DoOneTimeSetUp and 27 | // DoOneTimeTearDown below to do some special processing before 28 | // and after the normal TestFixtureSetUp and TestFixtureTearDown. 29 | // In this example, we simply display a message. 30 | } 31 | 32 | protected override void DoOneTimeSetUp(TestResult suiteResult) 33 | { 34 | Console.WriteLine( "Extended Fixture SetUp called" ); 35 | base.DoOneTimeSetUp (suiteResult); 36 | } 37 | 38 | protected override void DoOneTimeTearDown(TestResult suiteResult) 39 | { 40 | base.DoOneTimeTearDown (suiteResult); 41 | Console.WriteLine( "Extended Fixture TearDown called" ); 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/vb/failures/SimpleVBTest.vb: -------------------------------------------------------------------------------- 1 | ' **************************************************************** 2 | ' This is free software licensed under the NUnit license. You 3 | ' may obtain a copy of the license as well as information regarding 4 | ' copyright ownership at http://nunit.org/?p=license&r=2.4. 5 | ' **************************************************************** 6 | 7 | Option Explicit On 8 | Imports System 9 | Imports NUnit.Framework 10 | 11 | Namespace NUnit.Samples 12 | 13 | Public Class SimpleVBTest 14 | 15 | Private fValue1 As Integer 16 | Private fValue2 As Integer 17 | 18 | Public Sub New() 19 | MyBase.New() 20 | End Sub 21 | 22 | Public Sub Init() 23 | fValue1 = 2 24 | fValue2 = 3 25 | End Sub 26 | 27 | Public Sub Add() 28 | Dim result As Double 29 | 30 | result = fValue1 + fValue2 31 | Assert.AreEqual(6, result) 32 | End Sub 33 | 34 | Public Sub DivideByZero() 35 | Dim zero As Integer 36 | Dim result As Integer 37 | 38 | zero = 0 39 | result = 8 / zero 40 | End Sub 41 | 42 | Public Sub TestEquals() 43 | Assert.AreEqual(12, 12) 44 | Assert.AreEqual(CLng(12), CLng(12)) 45 | 46 | Assert.AreEqual(12, 13, "Size") 47 | Assert.AreEqual(12, 11.99, 0, "Capacity") 48 | End Sub 49 | 50 | Public Sub ExpectAnException() 51 | Throw New InvalidCastException() 52 | End Sub 53 | 54 | Public Sub IgnoredTest() 55 | ' does not matter what we type the test is not run 56 | Throw New ArgumentException() 57 | End Sub 58 | 59 | End Class 60 | End Namespace -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/runFile.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/runFile.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 18 | 19 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/codeFuncs.js: -------------------------------------------------------------------------------- 1 | window.onload = init; 2 | 3 | var langElements = new Array(); 4 | 5 | function init() { 6 | var els = document.getElementsByTagName( 'pre' ); 7 | var elsLen = els.length; 8 | var pattern = new RegExp('(^|\\s)(cs|vb|mc|js)(\\s|$)'); 9 | for (i = 0, j = 0; i < elsLen; i++) { 10 | if ( pattern.test(els[i].className) ) { 11 | //els[i].style.background = "#fcc"; 12 | langElements[j] = els[i]; 13 | j++; 14 | } 15 | } 16 | 17 | var lang = getCookie( "lang" ); 18 | if ( lang == null ) lang = "cs"; 19 | showLang(lang); 20 | } 21 | 22 | function getCookie(name) { 23 | var cname = name + "="; 24 | var dc = document.cookie; 25 | if ( dc.length > 0 ) { 26 | begin = dc.indexOf(cname); 27 | if ( begin != -1 ) { 28 | begin += cname.length; 29 | end = dc.indexOf(";",begin); 30 | if (end == -1) end = dc.length; 31 | return unescape(dc.substring(begin, end) ); 32 | } 33 | } 34 | } 35 | 36 | function setCookie(name,value,expires) { 37 | document.cookie = name + "=" + escape(value) + "; path=/" + 38 | ((expires == null) ? "" : "; expires=" + expires.toGMTString()); 39 | } 40 | 41 | function showLang(lang) { 42 | var pattern = new RegExp('(^|\\s)'+lang+'(\\s|$)'); 43 | var elsLen = langElements.length; 44 | for (i = 0; i < elsLen; i++ ) 45 | { 46 | var el = langElements[i]; 47 | if ( pattern.test( el.className ) ) 48 | el.style.display = ""; 49 | else 50 | el.style.display = "none"; 51 | } 52 | setCookie("lang",lang); 53 | } 54 | 55 | function Show( id ) { 56 | document.getElementById(id).style.display = ""; 57 | } 58 | 59 | function Hide( id ) { 60 | document.getElementById(id).style.display = "none"; 61 | } 62 | 63 | function ShowCS() { 64 | showLang('cs'); 65 | } 66 | 67 | function ShowVB() { 68 | showLang('vb'); 69 | } 70 | 71 | function ShowMC() { 72 | showLang('mc'); 73 | } 74 | 75 | function ShowJS() { 76 | showLang('js'); 77 | } 78 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/Extensibility/Core/SampleFixtureExtension/ReadMe.txt: -------------------------------------------------------------------------------- 1 | SampleSuiteExtension Example 2 | 3 | This is a minimal example of a SuiteBuilder extension. It extends 4 | NUnit.Core.TestSuite test suite and creates a fixture that runs every 5 | test starting with "SampleTest..." It packages both the core extension 6 | and the attribute used in the tests in the same assembly. 7 | 8 | SampleSuiteExtension Class 9 | 10 | This class derives from NUnit.Framework.TestSuite and represents the 11 | extended suite within NUnit. Because it inherits from TestSuite, 12 | rather than TestFixture, it has to construct its own fixture object and 13 | find its own tests. Everything is done in the constructor for simplicity. 14 | 15 | SampleSuiteExtensionBuilder 16 | 17 | This class is the actual SuiteBuilder loaded by NUnit as an add-in. 18 | It recognizes the SampleSuiteExtensionAttribute and invokes the 19 | SampleSuiteExtension constructor to build the suite. 20 | 21 | SampleSuiteExtensionAttribute 22 | 23 | This is the special attribute used to mark tests to be constructed 24 | using this add-in. It is the only class referenced from the user tests. 25 | 26 | Note on Building this Extension 27 | 28 | If you use the Visual Studio solution, the NUnit references in both 29 | included projects must be changed so that they refer to the copy of 30 | NUnit in which you want to install the extension. The post-build step 31 | for the SampleSuiteExtension project must be changed to copy the 32 | extension into the addins directory for your NUnit install. 33 | 34 | NOTE: 35 | 36 | The references to nunit.core and nunit.common in the 37 | SampleSuiteExtension project have their Copy Local property set to 38 | false, rather than the Visual Studio default of true. In developing 39 | extensions, it is essential there be no extra copies of these assemblies 40 | be created. Once the extension is complete, those who install it in 41 | binary form will not need to deal with this issue. 42 | 43 | 44 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/Extensibility/Core/SampleSuiteExtension/ReadMe.txt: -------------------------------------------------------------------------------- 1 | SampleSuiteExtension Example 2 | 3 | This is a minimal example of a SuiteBuilder extension. It extends 4 | NUnit.Core.TestSuite test suite and creates a fixture that runs every 5 | test starting with "SampleTest..." It packages both the core extension 6 | and the attribute used in the tests in the same assembly. 7 | 8 | SampleSuiteExtension Class 9 | 10 | This class derives from NUnit.Framework.TestSuite and represents the 11 | extended suite within NUnit. Because it inherits from TestSuite, 12 | rather than TestFixture, it has to construct its own fixture object and 13 | find its own tests. Everything is done in the constructor for simplicity. 14 | 15 | SampleSuiteExtensionBuilder 16 | 17 | This class is the actual SuiteBuilder loaded by NUnit as an add-in. 18 | It recognizes the SampleSuiteExtensionAttribute and invokes the 19 | SampleSuiteExtension constructor to build the suite. 20 | 21 | SampleSuiteExtensionAttribute 22 | 23 | This is the special attribute used to mark tests to be constructed 24 | using this add-in. It is the only class referenced from the user tests. 25 | 26 | Note on Building this Extension 27 | 28 | If you use the Visual Studio solution, the NUnit references in both 29 | included projects must be changed so that they refer to the copy of 30 | NUnit in which you want to install the extension. The post-build step 31 | for the SampleSuiteExtension project must be changed to copy the 32 | extension into the addins directory for your NUnit install. 33 | 34 | NOTE: 35 | 36 | The references to nunit.core and nunit.common in the 37 | SampleSuiteExtension project have their Copy Local property set to 38 | false, rather than the Visual Studio default of true. In developing 39 | extensions, it is essential there be no extra copies of these assemblies 40 | be created. Once the extension is complete, those who install it in 41 | binary form will not need to deal with this issue. 42 | 43 | 44 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/vb/failures/vb-failures.vbproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/csharp/syntax/cs-syntax.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/csharp/failures/cs-failures.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/csharp/CSharp.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 8.00 2 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cs-failures", "failures\cs-failures.csproj", "{15D66EEE-A852-4A52-89C2-83E74ECF3770}" 3 | ProjectSection(ProjectDependencies) = postProject 4 | EndProjectSection 5 | EndProject 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cs-money", "money\cs-money.csproj", "{11EDF872-A04D-4F75-A1BF-71168DC86AF3}" 7 | ProjectSection(ProjectDependencies) = postProject 8 | EndProjectSection 9 | EndProject 10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cs-syntax", "syntax\cs-syntax.csproj", "{06F46FA2-687B-4B46-A912-C1B0B4CC1B20}" 11 | ProjectSection(ProjectDependencies) = postProject 12 | EndProjectSection 13 | EndProject 14 | Global 15 | GlobalSection(SolutionConfiguration) = preSolution 16 | Debug = Debug 17 | Release = Release 18 | EndGlobalSection 19 | GlobalSection(ProjectConfiguration) = postSolution 20 | {15D66EEE-A852-4A52-89C2-83E74ECF3770}.Debug.ActiveCfg = Debug|.NET 21 | {15D66EEE-A852-4A52-89C2-83E74ECF3770}.Debug.Build.0 = Debug|.NET 22 | {15D66EEE-A852-4A52-89C2-83E74ECF3770}.Release.ActiveCfg = Release|.NET 23 | {15D66EEE-A852-4A52-89C2-83E74ECF3770}.Release.Build.0 = Release|.NET 24 | {11EDF872-A04D-4F75-A1BF-71168DC86AF3}.Debug.ActiveCfg = Debug|.NET 25 | {11EDF872-A04D-4F75-A1BF-71168DC86AF3}.Debug.Build.0 = Debug|.NET 26 | {11EDF872-A04D-4F75-A1BF-71168DC86AF3}.Release.ActiveCfg = Release|.NET 27 | {11EDF872-A04D-4F75-A1BF-71168DC86AF3}.Release.Build.0 = Release|.NET 28 | {06F46FA2-687B-4B46-A912-C1B0B4CC1B20}.Debug.ActiveCfg = Debug|.NET 29 | {06F46FA2-687B-4B46-A912-C1B0B4CC1B20}.Debug.Build.0 = Debug|.NET 30 | {06F46FA2-687B-4B46-A912-C1B0B4CC1B20}.Release.ActiveCfg = Release|.NET 31 | {06F46FA2-687B-4B46-A912-C1B0B4CC1B20}.Release.Build.0 = Release|.NET 32 | EndGlobalSection 33 | GlobalSection(ExtensibilityGlobals) = postSolution 34 | EndGlobalSection 35 | GlobalSection(ExtensibilityAddIns) = postSolution 36 | EndGlobalSection 37 | EndGlobal 38 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/vb/vb-samples.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 8.00 2 | Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "vb-failures", "failures\vb-failures.vbproj", "{F199991B-6C8E-4AB0-9AAA-703CD4897700}" 3 | ProjectSection(ProjectDependencies) = postProject 4 | EndProjectSection 5 | EndProject 6 | Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "vb-money", "money\vb-money.vbproj", "{95394B96-A794-48EA-9879-0E4EC79C5724}" 7 | ProjectSection(ProjectDependencies) = postProject 8 | EndProjectSection 9 | EndProject 10 | Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "vb-syntax", "syntax\vb-syntax.vbproj", "{6BEF566A-2691-4EE8-91AF-0390CCCDDAF1}" 11 | ProjectSection(ProjectDependencies) = postProject 12 | EndProjectSection 13 | EndProject 14 | Global 15 | GlobalSection(SolutionConfiguration) = preSolution 16 | Debug = Debug 17 | Release = Release 18 | EndGlobalSection 19 | GlobalSection(ProjectConfiguration) = postSolution 20 | {F199991B-6C8E-4AB0-9AAA-703CD4897700}.Debug.ActiveCfg = Debug|.NET 21 | {F199991B-6C8E-4AB0-9AAA-703CD4897700}.Debug.Build.0 = Debug|.NET 22 | {F199991B-6C8E-4AB0-9AAA-703CD4897700}.Release.ActiveCfg = Release|.NET 23 | {F199991B-6C8E-4AB0-9AAA-703CD4897700}.Release.Build.0 = Release|.NET 24 | {95394B96-A794-48EA-9879-0E4EC79C5724}.Debug.ActiveCfg = Debug|.NET 25 | {95394B96-A794-48EA-9879-0E4EC79C5724}.Debug.Build.0 = Debug|.NET 26 | {95394B96-A794-48EA-9879-0E4EC79C5724}.Release.ActiveCfg = Release|.NET 27 | {95394B96-A794-48EA-9879-0E4EC79C5724}.Release.Build.0 = Release|.NET 28 | {6BEF566A-2691-4EE8-91AF-0390CCCDDAF1}.Debug.ActiveCfg = Debug|.NET 29 | {6BEF566A-2691-4EE8-91AF-0390CCCDDAF1}.Debug.Build.0 = Debug|.NET 30 | {6BEF566A-2691-4EE8-91AF-0390CCCDDAF1}.Release.ActiveCfg = Release|.NET 31 | {6BEF566A-2691-4EE8-91AF-0390CCCDDAF1}.Release.Build.0 = Release|.NET 32 | EndGlobalSection 33 | GlobalSection(ExtensibilityGlobals) = postSolution 34 | EndGlobalSection 35 | GlobalSection(ExtensibilityAddIns) = postSolution 36 | EndGlobalSection 37 | EndGlobal 38 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/jsharp/failures/JSharpTest.jsl: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // This is free software licensed under the NUnit license. You 3 | // may obtain a copy of the license as well as information regarding 4 | // copyright ownership at http://nunit.org/?p=license&r=2.4. 5 | // **************************************************************** 6 | 7 | package NUnit.Samples; 8 | 9 | import System.*; 10 | import NUnit.Framework.Assert; 11 | 12 | /** @attribute NUnit.Framework.TestFixture() */ 13 | public class SimpleJSharpTest 14 | { 15 | protected int fValue1; 16 | protected int fValue2; 17 | 18 | /** @attribute NUnit.Framework.SetUp() */ 19 | public void Init() 20 | { 21 | fValue1 = 2; 22 | fValue2 = 3; 23 | } 24 | 25 | /** @attribute NUnit.Framework.Test() */ 26 | public void Add() 27 | { 28 | int result= fValue1 + fValue2; 29 | Assert.AreEqual(6,result, "Expected Failure"); 30 | } 31 | 32 | /** @attribute NUnit.Framework.Test() */ 33 | public void DivideByZero() 34 | { 35 | int zero= 0; 36 | int result = 8/zero; 37 | KeepCompilerFromWarning(result); // never executed, here to avoid compiler warning that result is unused. 38 | } 39 | 40 | /** @attribute NUnit.Framework.Test() */ 41 | public void Equals() 42 | { 43 | Assert.AreEqual(12, 12, "Integer"); 44 | Assert.AreEqual(new Long(12), new Long(13), "Long"); 45 | Assert.AreEqual('a', 'a', "Char"); 46 | Assert.AreEqual(new Integer(12), new Integer(12), "Integer Object Cast"); 47 | 48 | Assert.AreEqual(12, 13, "Expected Failure (Integer)"); 49 | Assert.AreEqual(12.0, 11.99, 0.0, "Expected Failure (Double)."); 50 | } 51 | 52 | /** @attribute NUnit.Framework.Test() */ 53 | /** @attribute NUnit.Framework.Ignore("ignored test") */ 54 | public void IgnoredTest() 55 | { 56 | throw new InvalidCastException(); 57 | } 58 | 59 | // A useless function, designed to avoid a compiler warning in the the DivideByZero test. 60 | private int KeepCompilerFromWarning(int dummy) 61 | { 62 | return dummy; 63 | } 64 | 65 | } -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtensionBuilder.cs: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // Copyright 2007, Charlie Poole 3 | // This is free software licensed under the NUnit license. You may 4 | // obtain a copy of the license at http://nunit.org/?p=license&r=2.4 5 | // **************************************************************** 6 | 7 | using System; 8 | using NUnit.Core.Builders; 9 | using NUnit.Core.Extensibility; 10 | 11 | namespace NUnit.Core.Extensions 12 | { 13 | /// 14 | /// MockFixtureExtensionBuilder knows how to build 15 | /// a MockFixtureExtension. 16 | /// 17 | [NUnitAddin(Description="Wraps an NUnitTestFixture with an additional level of SetUp and TearDown")] 18 | public class SampleFixtureExtensionBuilder : ISuiteBuilder, IAddin 19 | { 20 | #region NUnitTestFixtureBuilder Overrides 21 | /// 22 | /// Makes a SampleFixtureExtension instance 23 | /// 24 | /// The type to be used 25 | /// A SampleFixtureExtension as a TestSuite 26 | // protected override TestSuite MakeSuite(Type type) 27 | // { 28 | // return new SampleFixtureExtension( type ); 29 | // } 30 | 31 | // The builder recognizes the types that it can use by the presense 32 | // of SampleFixtureExtensionAttribute. Note that an attribute does not 33 | // have to be used. You can use any arbitrary set of rules that can be 34 | // implemented using reflection on the type. 35 | public bool CanBuildFrom(Type type) 36 | { 37 | return Reflect.HasAttribute( type, "NUnit.Core.Extensions.SampleFixtureExtensionAttribute", false ); 38 | } 39 | 40 | public Test BuildFrom(Type type) 41 | { 42 | return null; 43 | } 44 | #endregion 45 | 46 | #region IAddin Members 47 | public bool Install(IExtensionHost host) 48 | { 49 | IExtensionPoint suiteBuilders = host.GetExtensionPoint( "SuiteBuilders" ); 50 | if ( suiteBuilders == null ) 51 | return false; 52 | 53 | suiteBuilders.Install( this ); 54 | return true; 55 | } 56 | #endregion 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/csharp/failures/CSharpTest.cs: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // This is free software licensed under the NUnit license. You 3 | // may obtain a copy of the license as well as information regarding 4 | // copyright ownership at http://nunit.org/?p=license&r=2.4. 5 | // **************************************************************** 6 | 7 | namespace NUnit.Samples 8 | { 9 | using System; 10 | using NUnit.Framework; 11 | 12 | /// Some simple Tests. 13 | /// 14 | [TestFixture] 15 | public class SimpleCSharpTest 16 | { 17 | /// 18 | /// 19 | /// 20 | protected int fValue1; 21 | /// 22 | /// 23 | /// 24 | protected int fValue2; 25 | 26 | /// 27 | /// 28 | /// 29 | [SetUp] public void Init() 30 | { 31 | fValue1= 2; 32 | fValue2= 3; 33 | } 34 | 35 | /// 36 | /// 37 | /// 38 | /// 39 | [Test] public void Add() 40 | { 41 | double result= fValue1 + fValue2; 42 | // forced failure result == 5 43 | Assert.AreEqual(6, result, "Expected Failure."); 44 | } 45 | 46 | /// 47 | /// 48 | /// 49 | /// 50 | [Test] public void DivideByZero() 51 | { 52 | int zero= 0; 53 | int result= 8/zero; 54 | } 55 | 56 | /// 57 | /// 58 | /// 59 | /// 60 | [Test] public void Equals() 61 | { 62 | Assert.AreEqual(12, 12, "Integer"); 63 | Assert.AreEqual(12L, 12L, "Long"); 64 | Assert.AreEqual('a', 'a', "Char"); 65 | Assert.AreEqual((object)12, (object)12, "Integer Object Cast"); 66 | 67 | Assert.AreEqual(12, 13, "Expected Failure (Integer)"); 68 | Assert.AreEqual(12.0, 11.99, 0.0, "Expected Failure (Double)."); 69 | } 70 | 71 | [Test] 72 | [ExpectedException(typeof(InvalidOperationException))] 73 | public void ExpectAnException() 74 | { 75 | throw new InvalidCastException(); 76 | } 77 | 78 | [Test] 79 | [Ignore("ignored test")] 80 | public void IgnoredTest() 81 | { 82 | throw new Exception(); 83 | } 84 | } 85 | } -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/csharp/money/cs-money.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/vb/money/vb-money.vbproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/vb/syntax/vb-syntax.vbproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/ReadMe.txt: -------------------------------------------------------------------------------- 1 | NUnit Samples 2 | 3 | This directory contains sample applications demonstrating the use of NUnit and organized as follows... 4 | 5 | CSharp: Samples in C# 6 | 7 | Failures: Demonstrates 4 failing tests and one that is not run. 8 | 9 | Money: This is a C# version of the money example which is found in most xUnit implementations. Thanks to Kent Beck. 10 | 11 | Money-Port: This shows how the Money example can be ported from Version 1 of NUnit with minimal changes. 12 | 13 | Syntax: Illustrates most Assert methods using both the classic and constraint-based syntax. 14 | 15 | JSharp: Samples in J# 16 | 17 | Failures: Demonstrates 4 failing tests and one that is not run. 18 | 19 | CPP: C++ Samples 20 | 21 | MANAGED: Managed C++ Samples (VS 2003 compatible) 22 | 23 | Failures: Demonstrates 4 failing tests and one that is not run. 24 | 25 | CPP-CLI: C++/CLI Samples (VS 2005 only) 26 | 27 | Failures: Demonstrates 4 failing tests and one that is not run. 28 | 29 | Syntax: Illustrates most Assert methods using both the classic and constraint-based syntax. 30 | 31 | VB: Samples in VB.NET 32 | 33 | Failures: Demonstrates 4 failing tests and one that is not run. 34 | 35 | Money: This is a VB.NET version of the money example found in most xUnit implementations. Thanks to Kent Beck. 36 | 37 | Syntax: Illustrates most Assert methods using both the classic and constraint-based syntax. 38 | 39 | Extensibility: Examples of extending NUnit 40 | 41 | Framework: 42 | 43 | Core: 44 | 45 | TestSuiteExtension 46 | 47 | TestFixtureExtension 48 | 49 | 50 | Building the Samples 51 | 52 | A Visual Studio 2003 project is included for most samples. 53 | Visual Studio 2005 will convert the format automatically upon 54 | opening it. The C++/CLI samples, as well as other samples that 55 | depend on .NET 2.0 features, include Visual Studio 2005 projects. 56 | 57 | In most cases, you will need to remove the reference to the 58 | nunit.framework assembly and replace it with a reference to 59 | your installed copy of NUnit. 60 | 61 | To build using the Microsoft compiler, use a command similar 62 | to the following: 63 | 64 | csc /target:library /r:/nunit.framework.dll example.cs 65 | 66 | To build using the mono compiler, use a command like this: 67 | 68 | msc /target:library /r:/nunit.framework.dll example.cs 69 | 70 | -------------------------------------------------------------------------------- /tests/test_project/SampleDotNetProject/SampleCodeLibrary/SampleCodeLibrary.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | AnyCPU 6 | 8.0.30703 7 | 2.0 8 | {9459ABAB-B9A4-4226-B57E-93704D9EA2F8} 9 | Library 10 | Properties 11 | SampleCodeLibrary 12 | SampleCodeLibrary 13 | v3.5 14 | 512 15 | 16 | 17 | 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | 26 | 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 54 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/cpp/cpp-cli/failures/AssemblyInfo.cpp: -------------------------------------------------------------------------------- 1 | using namespace System::Reflection; 2 | using namespace System::Runtime::CompilerServices; 3 | 4 | // 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | // 9 | [assembly:AssemblyTitleAttribute("")]; 10 | [assembly:AssemblyDescriptionAttribute("")]; 11 | [assembly:AssemblyConfigurationAttribute("")]; 12 | [assembly:AssemblyCompanyAttribute("")]; 13 | [assembly:AssemblyProductAttribute("")]; 14 | [assembly:AssemblyCopyrightAttribute("")]; 15 | [assembly:AssemblyTrademarkAttribute("")]; 16 | [assembly:AssemblyCultureAttribute("")]; 17 | 18 | // 19 | // Version information for an assembly consists of the following four values: 20 | // 21 | // Major Version 22 | // Minor Version 23 | // Build Number 24 | // Revision 25 | // 26 | // You can specify all the value or you can default the Revision and Build Numbers 27 | // by using the '*' as shown below: 28 | 29 | [assembly:AssemblyVersionAttribute("2.2.0.0")]; 30 | 31 | // 32 | // In order to sign your assembly you must specify a key to use. Refer to the 33 | // Microsoft .NET Framework documentation for more information on assembly signing. 34 | // 35 | // Use the attributes below to control which key is used for signing. 36 | // 37 | // Notes: 38 | // (*) If no key is specified, the assembly is not signed. 39 | // (*) KeyName refers to a key that has been installed in the Crypto Service 40 | // Provider (CSP) on your machine. KeyFile refers to a file which contains 41 | // a key. 42 | // (*) If the KeyFile and the KeyName values are both specified, the 43 | // following processing occurs: 44 | // (1) If the KeyName can be found in the CSP, that key is used. 45 | // (2) If the KeyName does not exist and the KeyFile does exist, the key 46 | // in the KeyFile is installed into the CSP and used. 47 | // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. 48 | // When specifying the KeyFile, the location of the KeyFile should be 49 | // relative to the project directory. 50 | // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework 51 | // documentation for more information on this. 52 | // 53 | [assembly:AssemblyDelaySignAttribute(false)]; 54 | [assembly:AssemblyKeyFileAttribute("")]; 55 | [assembly:AssemblyKeyNameAttribute("")]; 56 | 57 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/cpp/managed/failures/AssemblyInfo.cpp: -------------------------------------------------------------------------------- 1 | using namespace System::Reflection; 2 | using namespace System::Runtime::CompilerServices; 3 | 4 | // 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | // 9 | [assembly:AssemblyTitleAttribute("")]; 10 | [assembly:AssemblyDescriptionAttribute("")]; 11 | [assembly:AssemblyConfigurationAttribute("")]; 12 | [assembly:AssemblyCompanyAttribute("")]; 13 | [assembly:AssemblyProductAttribute("")]; 14 | [assembly:AssemblyCopyrightAttribute("")]; 15 | [assembly:AssemblyTrademarkAttribute("")]; 16 | [assembly:AssemblyCultureAttribute("")]; 17 | 18 | // 19 | // Version information for an assembly consists of the following four values: 20 | // 21 | // Major Version 22 | // Minor Version 23 | // Build Number 24 | // Revision 25 | // 26 | // You can specify all the value or you can default the Revision and Build Numbers 27 | // by using the '*' as shown below: 28 | 29 | [assembly:AssemblyVersionAttribute("2.2.0.0")]; 30 | 31 | // 32 | // In order to sign your assembly you must specify a key to use. Refer to the 33 | // Microsoft .NET Framework documentation for more information on assembly signing. 34 | // 35 | // Use the attributes below to control which key is used for signing. 36 | // 37 | // Notes: 38 | // (*) If no key is specified, the assembly is not signed. 39 | // (*) KeyName refers to a key that has been installed in the Crypto Service 40 | // Provider (CSP) on your machine. KeyFile refers to a file which contains 41 | // a key. 42 | // (*) If the KeyFile and the KeyName values are both specified, the 43 | // following processing occurs: 44 | // (1) If the KeyName can be found in the CSP, that key is used. 45 | // (2) If the KeyName does not exist and the KeyFile does exist, the key 46 | // in the KeyFile is installed into the CSP and used. 47 | // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. 48 | // When specifying the KeyFile, the location of the KeyFile should be 49 | // relative to the project directory. 50 | // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework 51 | // documentation for more information on this. 52 | // 53 | [assembly:AssemblyDelaySignAttribute(false)]; 54 | [assembly:AssemblyKeyFileAttribute("")]; 55 | [assembly:AssemblyKeyNameAttribute("")]; 56 | 57 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/csharp/money/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | 4 | // 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | // 9 | [assembly: AssemblyTitle("")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("")] 13 | [assembly: AssemblyProduct("")] 14 | [assembly: AssemblyCopyright("")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | 18 | // 19 | // Version information for an assembly consists of the following four values: 20 | // 21 | // Major Version 22 | // Minor Version 23 | // Build Number 24 | // Revision 25 | // 26 | // You can specify all the values or you can default the Revision and Build Numbers 27 | // by using the '*' as shown below: 28 | 29 | [assembly: AssemblyVersion("2.2.0.0")] 30 | 31 | // 32 | // In order to sign your assembly you must specify a key to use. Refer to the 33 | // Microsoft .NET Framework documentation for more information on assembly signing. 34 | // 35 | // Use the attributes below to control which key is used for signing. 36 | // 37 | // Notes: 38 | // (*) If no key is specified, the assembly is not signed. 39 | // (*) KeyName refers to a key that has been installed in the Crypto Service 40 | // Provider (CSP) on your machine. KeyFile refers to a file which contains 41 | // a key. 42 | // (*) If the KeyFile and the KeyName values are both specified, the 43 | // following processing occurs: 44 | // (1) If the KeyName can be found in the CSP, that key is used. 45 | // (2) If the KeyName does not exist and the KeyFile does exist, the key 46 | // in the KeyFile is installed into the CSP and used. 47 | // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. 48 | // When specifying the KeyFile, the location of the KeyFile should be 49 | // relative to the project output directory which is 50 | // %Project Directory%\obj\. For example, if your KeyFile is 51 | // located in the project directory, you would specify the AssemblyKeyFile 52 | // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] 53 | // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework 54 | // documentation for more information on this. 55 | // 56 | [assembly: AssemblyDelaySign(false)] 57 | [assembly: AssemblyKeyFile("")] 58 | [assembly: AssemblyKeyName("")] 59 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/csharp/syntax/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | 4 | // 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | // 9 | [assembly: AssemblyTitle("")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("")] 13 | [assembly: AssemblyProduct("")] 14 | [assembly: AssemblyCopyright("")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | 18 | // 19 | // Version information for an assembly consists of the following four values: 20 | // 21 | // Major Version 22 | // Minor Version 23 | // Build Number 24 | // Revision 25 | // 26 | // You can specify all the values or you can default the Revision and Build Numbers 27 | // by using the '*' as shown below: 28 | 29 | [assembly: AssemblyVersion("1.0.*")] 30 | 31 | // 32 | // In order to sign your assembly you must specify a key to use. Refer to the 33 | // Microsoft .NET Framework documentation for more information on assembly signing. 34 | // 35 | // Use the attributes below to control which key is used for signing. 36 | // 37 | // Notes: 38 | // (*) If no key is specified, the assembly is not signed. 39 | // (*) KeyName refers to a key that has been installed in the Crypto Service 40 | // Provider (CSP) on your machine. KeyFile refers to a file which contains 41 | // a key. 42 | // (*) If the KeyFile and the KeyName values are both specified, the 43 | // following processing occurs: 44 | // (1) If the KeyName can be found in the CSP, that key is used. 45 | // (2) If the KeyName does not exist and the KeyFile does exist, the key 46 | // in the KeyFile is installed into the CSP and used. 47 | // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. 48 | // When specifying the KeyFile, the location of the KeyFile should be 49 | // relative to the project output directory which is 50 | // %Project Directory%\obj\. For example, if your KeyFile is 51 | // located in the project directory, you would specify the AssemblyKeyFile 52 | // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] 53 | // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework 54 | // documentation for more information on this. 55 | // 56 | [assembly: AssemblyDelaySign(false)] 57 | [assembly: AssemblyKeyFile("")] 58 | [assembly: AssemblyKeyName("")] 59 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/jsharp/failures/AssemblyInfo.jsl: -------------------------------------------------------------------------------- 1 | import System.Reflection.*; 2 | import System.Runtime.CompilerServices.*; 3 | 4 | // 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | // 9 | /** @assembly AssemblyTitle("") */ 10 | /** @assembly AssemblyDescription("") */ 11 | /** @assembly AssemblyConfiguration("") */ 12 | /** @assembly AssemblyCompany("") */ 13 | /** @assembly AssemblyProduct("") */ 14 | /** @assembly AssemblyCopyright("") */ 15 | /** @assembly AssemblyTrademark("") */ 16 | /** @assembly AssemblyCulture("") */ 17 | 18 | // 19 | // Version information for an assembly consists of the following four values: 20 | // 21 | // Major Version 22 | // Minor Version 23 | // Build Number 24 | // Revision 25 | // 26 | // You can specify all the values or you can default the Revision and Build 27 | // Numbers by using the '*' as shown below: 28 | 29 | /** @assembly AssemblyVersion("2.2.0.0") */ 30 | 31 | // 32 | // In order to sign your assembly you must specify a key to use. Refer to the 33 | // Microsoft .NET Framework documentation for more information on assembly signing. 34 | // 35 | // Use the attributes below to control which key is used for signing. 36 | // 37 | // Notes: 38 | // (*) If no key is specified, the assembly is not signed. 39 | // (*) KeyName refers to a key that has been installed in the Crypto Service 40 | // Provider (CSP) on your machine. KeyFile refers to a file which contains 41 | // a key. 42 | // (*) If the KeyFile and the KeyName values are both specified, the 43 | // following processing occurs: 44 | // (1) If the KeyName can be found in the CSP, that key is used. 45 | // (2) If the KeyName does not exist and the KeyFile does exist, the key 46 | // in the KeyFile is installed into the CSP and used. 47 | // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. 48 | // When specifying the KeyFile, the location of the KeyFile should be 49 | // relative to the project directory. For example, if your KeyFile is 50 | // located in the project directory itself, you would specify the 51 | // AssemblyKeyFile attribute as @assembly AssemblyKeyFile("mykey.snk") 52 | // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework 53 | // documentation for more information on this. 54 | // 55 | 56 | /** @assembly AssemblyDelaySign(false) */ 57 | /** @assembly AssemblyKeyFile("") */ 58 | /** @assembly AssemblyKeyName("") */ 59 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/Extensibility/Core/SampleFixtureExtension/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | 4 | // 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | // 9 | [assembly: AssemblyTitle("")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("")] 13 | [assembly: AssemblyProduct("")] 14 | [assembly: AssemblyCopyright("")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | 18 | // 19 | // Version information for an assembly consists of the following four values: 20 | // 21 | // Major Version 22 | // Minor Version 23 | // Build Number 24 | // Revision 25 | // 26 | // You can specify all the values or you can default the Revision and Build Numbers 27 | // by using the '*' as shown below: 28 | 29 | [assembly: AssemblyVersion("1.0.*")] 30 | 31 | // 32 | // In order to sign your assembly you must specify a key to use. Refer to the 33 | // Microsoft .NET Framework documentation for more information on assembly signing. 34 | // 35 | // Use the attributes below to control which key is used for signing. 36 | // 37 | // Notes: 38 | // (*) If no key is specified, the assembly is not signed. 39 | // (*) KeyName refers to a key that has been installed in the Crypto Service 40 | // Provider (CSP) on your machine. KeyFile refers to a file which contains 41 | // a key. 42 | // (*) If the KeyFile and the KeyName values are both specified, the 43 | // following processing occurs: 44 | // (1) If the KeyName can be found in the CSP, that key is used. 45 | // (2) If the KeyName does not exist and the KeyFile does exist, the key 46 | // in the KeyFile is installed into the CSP and used. 47 | // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. 48 | // When specifying the KeyFile, the location of the KeyFile should be 49 | // relative to the project output directory which is 50 | // %Project Directory%\obj\. For example, if your KeyFile is 51 | // located in the project directory, you would specify the AssemblyKeyFile 52 | // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] 53 | // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework 54 | // documentation for more information on this. 55 | // 56 | [assembly: AssemblyDelaySign(false)] 57 | [assembly: AssemblyKeyFile("")] 58 | [assembly: AssemblyKeyName("")] 59 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/Extensibility/Core/SampleSuiteExtension/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | 4 | // 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | // 9 | [assembly: AssemblyTitle("")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("")] 13 | [assembly: AssemblyProduct("")] 14 | [assembly: AssemblyCopyright("")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | 18 | // 19 | // Version information for an assembly consists of the following four values: 20 | // 21 | // Major Version 22 | // Minor Version 23 | // Build Number 24 | // Revision 25 | // 26 | // You can specify all the values or you can default the Revision and Build Numbers 27 | // by using the '*' as shown below: 28 | 29 | [assembly: AssemblyVersion("1.0.*")] 30 | 31 | // 32 | // In order to sign your assembly you must specify a key to use. Refer to the 33 | // Microsoft .NET Framework documentation for more information on assembly signing. 34 | // 35 | // Use the attributes below to control which key is used for signing. 36 | // 37 | // Notes: 38 | // (*) If no key is specified, the assembly is not signed. 39 | // (*) KeyName refers to a key that has been installed in the Crypto Service 40 | // Provider (CSP) on your machine. KeyFile refers to a file which contains 41 | // a key. 42 | // (*) If the KeyFile and the KeyName values are both specified, the 43 | // following processing occurs: 44 | // (1) If the KeyName can be found in the CSP, that key is used. 45 | // (2) If the KeyName does not exist and the KeyFile does exist, the key 46 | // in the KeyFile is installed into the CSP and used. 47 | // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. 48 | // When specifying the KeyFile, the location of the KeyFile should be 49 | // relative to the project output directory which is 50 | // %Project Directory%\obj\. For example, if your KeyFile is 51 | // located in the project directory, you would specify the AssemblyKeyFile 52 | // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] 53 | // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework 54 | // documentation for more information on this. 55 | // 56 | [assembly: AssemblyDelaySign(false)] 57 | [assembly: AssemblyKeyFile("")] 58 | [assembly: AssemblyKeyName("")] 59 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/Extensibility/Core/SampleFixtureExtension/Tests/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | 4 | // 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | // 9 | [assembly: AssemblyTitle("")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("")] 13 | [assembly: AssemblyProduct("")] 14 | [assembly: AssemblyCopyright("")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | 18 | // 19 | // Version information for an assembly consists of the following four values: 20 | // 21 | // Major Version 22 | // Minor Version 23 | // Build Number 24 | // Revision 25 | // 26 | // You can specify all the values or you can default the Revision and Build Numbers 27 | // by using the '*' as shown below: 28 | 29 | [assembly: AssemblyVersion("1.0.*")] 30 | 31 | // 32 | // In order to sign your assembly you must specify a key to use. Refer to the 33 | // Microsoft .NET Framework documentation for more information on assembly signing. 34 | // 35 | // Use the attributes below to control which key is used for signing. 36 | // 37 | // Notes: 38 | // (*) If no key is specified, the assembly is not signed. 39 | // (*) KeyName refers to a key that has been installed in the Crypto Service 40 | // Provider (CSP) on your machine. KeyFile refers to a file which contains 41 | // a key. 42 | // (*) If the KeyFile and the KeyName values are both specified, the 43 | // following processing occurs: 44 | // (1) If the KeyName can be found in the CSP, that key is used. 45 | // (2) If the KeyName does not exist and the KeyFile does exist, the key 46 | // in the KeyFile is installed into the CSP and used. 47 | // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. 48 | // When specifying the KeyFile, the location of the KeyFile should be 49 | // relative to the project output directory which is 50 | // %Project Directory%\obj\. For example, if your KeyFile is 51 | // located in the project directory, you would specify the AssemblyKeyFile 52 | // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] 53 | // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework 54 | // documentation for more information on this. 55 | // 56 | [assembly: AssemblyDelaySign(false)] 57 | [assembly: AssemblyKeyFile("")] 58 | [assembly: AssemblyKeyName("")] 59 | -------------------------------------------------------------------------------- /unit_tests/MutationTest_test.rb: -------------------------------------------------------------------------------- 1 | #Test Framework 2 | require 'test/unit' 3 | 4 | #Subject Under Test 5 | require 'src/MutationTest' 6 | 7 | #Test Objects 8 | require 'unit_tests/TestObjects/Compiler' 9 | require 'unit_tests/TestObjects/TestRunner' 10 | require 'unit_tests/TestObjects/TestResult' 11 | 12 | class Test_tests < Test::Unit::TestCase 13 | def setup 14 | @working_folder_path = 'working_folder_path' 15 | @project_path = 'project_path' 16 | @test_project_path = 'test project path' 17 | @expected_compiled_project_path = File.join @working_folder_path, @project_path 18 | @expected_test_project_path = File.join @working_folder_path, @test_project_path 19 | end 20 | 21 | def test_when_running_a_test 22 | compiler = TestCompiler.new 23 | test = MutationTest.new 24 | test.on_compile_notify compiler 25 | 26 | test.run @working_folder_path, @project_path, @test_project_path 27 | 28 | assert compiler.was_ran, 'Compiler was not ran and it should have been.' 29 | assert_equal @expected_compiled_project_path, compiler.compiled_project_path, 'The correct project path should be compiled.' 30 | end 31 | 32 | def test_when_compiled_successfully 33 | test_runner = TestTestRunner.new 34 | test = MutationTest.new 35 | test.on_unit_test_notify test_runner 36 | 37 | test.on_compile_notify TestCompiler.new 38 | 39 | test.run @working_folder_path, 'none', @test_project_path 40 | test.compiled_successfully 41 | 42 | assert test_runner.was_ran, 'should run test runner' 43 | assert_equal @expected_test_project_path, test_runner.test_project_path, 'should run the correct_test_project' 44 | end 45 | 46 | def test_when_compiled_unsuccessfully 47 | test_runner = TestTestRunner.new 48 | test = MutationTest.new 49 | test.on_unit_test_notify test_runner 50 | 51 | test.compiled_unsuccessfully 52 | 53 | assert test_runner.was_NOT_ran, "should not run test runner if the project could not compile" 54 | end 55 | 56 | def test_when_unit_tests_pass 57 | test_result_spy = TestResultSpy.new 58 | test = MutationTest.new 59 | test.on_test_results_notify test_result_spy 60 | 61 | test.unit_tests_passed 62 | 63 | assert test_result_spy.tests_passed, "should notify that the tests passed." 64 | end 65 | 66 | def test_when_unit_tests_fail 67 | test_result_spy = TestResultSpy.new 68 | test = MutationTest.new 69 | test.on_test_results_notify test_result_spy 70 | 71 | test.unit_tests_failed 72 | 73 | assert test_result_spy.tests_failed, "should notify that the tests failed" 74 | end 75 | 76 | # def teardown 77 | # end 78 | end -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/cpp/cpp-cli/cpp-cli.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 9.00 2 | # Visual Studio 2005 3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cpp-cli-failures", "failures\cpp-cli-failures.vcproj", "{A0987BCD-AFE6-40E4-95A8-ADA7ADB7E97D}" 4 | EndProject 5 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cpp-cli-syntax", "syntax\cpp-cli-syntax.vcproj", "{72448C2D-17C9-419E-B28D-3B533E7E0CD5}" 6 | EndProject 7 | Global 8 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 9 | Debug|Any CPU = Debug|Any CPU 10 | Debug|Mixed Platforms = Debug|Mixed Platforms 11 | Debug|Win32 = Debug|Win32 12 | Release|Any CPU = Release|Any CPU 13 | Release|Mixed Platforms = Release|Mixed Platforms 14 | Release|Win32 = Release|Win32 15 | EndGlobalSection 16 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 17 | {A0987BCD-AFE6-40E4-95A8-ADA7ADB7E97D}.Debug|Any CPU.ActiveCfg = Debug|Win32 18 | {A0987BCD-AFE6-40E4-95A8-ADA7ADB7E97D}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 19 | {A0987BCD-AFE6-40E4-95A8-ADA7ADB7E97D}.Debug|Mixed Platforms.Build.0 = Debug|Win32 20 | {A0987BCD-AFE6-40E4-95A8-ADA7ADB7E97D}.Debug|Win32.ActiveCfg = Debug|Win32 21 | {A0987BCD-AFE6-40E4-95A8-ADA7ADB7E97D}.Debug|Win32.Build.0 = Debug|Win32 22 | {A0987BCD-AFE6-40E4-95A8-ADA7ADB7E97D}.Release|Any CPU.ActiveCfg = Release|Win32 23 | {A0987BCD-AFE6-40E4-95A8-ADA7ADB7E97D}.Release|Mixed Platforms.ActiveCfg = Release|Win32 24 | {A0987BCD-AFE6-40E4-95A8-ADA7ADB7E97D}.Release|Mixed Platforms.Build.0 = Release|Win32 25 | {A0987BCD-AFE6-40E4-95A8-ADA7ADB7E97D}.Release|Win32.ActiveCfg = Release|Win32 26 | {A0987BCD-AFE6-40E4-95A8-ADA7ADB7E97D}.Release|Win32.Build.0 = Release|Win32 27 | {72448C2D-17C9-419E-B28D-3B533E7E0CD5}.Debug|Any CPU.ActiveCfg = Debug|Win32 28 | {72448C2D-17C9-419E-B28D-3B533E7E0CD5}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 29 | {72448C2D-17C9-419E-B28D-3B533E7E0CD5}.Debug|Mixed Platforms.Build.0 = Debug|Win32 30 | {72448C2D-17C9-419E-B28D-3B533E7E0CD5}.Debug|Win32.ActiveCfg = Debug|Win32 31 | {72448C2D-17C9-419E-B28D-3B533E7E0CD5}.Debug|Win32.Build.0 = Debug|Win32 32 | {72448C2D-17C9-419E-B28D-3B533E7E0CD5}.Release|Any CPU.ActiveCfg = Release|Win32 33 | {72448C2D-17C9-419E-B28D-3B533E7E0CD5}.Release|Mixed Platforms.ActiveCfg = Release|Win32 34 | {72448C2D-17C9-419E-B28D-3B533E7E0CD5}.Release|Mixed Platforms.Build.0 = Release|Win32 35 | {72448C2D-17C9-419E-B28D-3B533E7E0CD5}.Release|Win32.ActiveCfg = Release|Win32 36 | {72448C2D-17C9-419E-B28D-3B533E7E0CD5}.Release|Win32.Build.0 = Release|Win32 37 | EndGlobalSection 38 | GlobalSection(SolutionProperties) = preSolution 39 | HideSolutionNode = FALSE 40 | EndGlobalSection 41 | EndGlobal 42 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/csharp/money/Money.cs: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // This is free software licensed under the NUnit license. You 3 | // may obtain a copy of the license as well as information regarding 4 | // copyright ownership at http://nunit.org/?p=license&r=2.4. 5 | // **************************************************************** 6 | 7 | namespace NUnit.Samples.Money 8 | { 9 | 10 | using System; 11 | using System.Text; 12 | 13 | /// A simple Money. 14 | class Money: IMoney 15 | { 16 | 17 | private int fAmount; 18 | private String fCurrency; 19 | 20 | /// Constructs a money from the given amount and 21 | /// currency. 22 | public Money(int amount, String currency) 23 | { 24 | fAmount= amount; 25 | fCurrency= currency; 26 | } 27 | 28 | /// Adds a money to this money. Forwards the request to 29 | /// the AddMoney helper. 30 | public IMoney Add(IMoney m) 31 | { 32 | return m.AddMoney(this); 33 | } 34 | 35 | public IMoney AddMoney(Money m) 36 | { 37 | if (m.Currency.Equals(Currency) ) 38 | return new Money(Amount+m.Amount, Currency); 39 | return new MoneyBag(this, m); 40 | } 41 | 42 | public IMoney AddMoneyBag(MoneyBag s) 43 | { 44 | return s.AddMoney(this); 45 | } 46 | 47 | public int Amount 48 | { 49 | get { return fAmount; } 50 | } 51 | 52 | public String Currency 53 | { 54 | get { return fCurrency; } 55 | } 56 | 57 | public override bool Equals(Object anObject) 58 | { 59 | if (IsZero) 60 | if (anObject is IMoney) 61 | return ((IMoney)anObject).IsZero; 62 | if (anObject is Money) 63 | { 64 | Money aMoney= (Money)anObject; 65 | return aMoney.Currency.Equals(Currency) 66 | && Amount == aMoney.Amount; 67 | } 68 | return false; 69 | } 70 | 71 | public override int GetHashCode() 72 | { 73 | return fCurrency.GetHashCode()+fAmount; 74 | } 75 | 76 | public bool IsZero 77 | { 78 | get { return Amount == 0; } 79 | } 80 | 81 | public IMoney Multiply(int factor) 82 | { 83 | return new Money(Amount*factor, Currency); 84 | } 85 | 86 | public IMoney Negate() 87 | { 88 | return new Money(-Amount, Currency); 89 | } 90 | 91 | public IMoney Subtract(IMoney m) 92 | { 93 | return Add(m.Negate()); 94 | } 95 | 96 | public override String ToString() 97 | { 98 | StringBuilder buffer = new StringBuilder(); 99 | buffer.Append("["+Amount+" "+Currency+"]"); 100 | return buffer.ToString(); 101 | } 102 | } 103 | } 104 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NUnit - DocHome 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 23 | 24 | 25 |
26 | 27 |

NUnit 2.5.7

28 | 29 |

This documentation covers the NUnit 2.5.7 release, 30 | introducing a large set of new features to NUnit, particularly in 31 | the area of parameterized or data-driven testing. 32 | 33 |

Where applicable, we have marked sections with the version in which a feature 34 | first appeared.

35 | 36 |

If you are new to NUnit, we suggest you begin by reading the 37 | Getting Started section of this site. 38 | Those who have used earlier releases may want to begin with the 39 | Upgrading section.

40 | 41 |

See the 42 | Release Notes for more information on this release.

43 | 44 |

All documentation is included in the release packages of NUnit. Beginning with NUnit 45 | 2.4.2, you may choose to download the documentation 46 | separately.

47 | 48 |
49 | 50 | 51 | 67 | 68 | 69 | 70 | 71 | 74 | 75 | 76 | 77 | 78 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/samples/csharp/failures/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | 4 | // 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | // 9 | [assembly: AssemblyTitle("csharp.sample.dll")] 10 | [assembly: AssemblyDescription("C# Sample Unit Tests")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("NUnit")] 13 | [assembly: AssemblyProduct("NUnit")] 14 | [assembly: AssemblyCopyright("Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov. \nCopyright (C) 2000-2003 Philip Craig.\nAll Rights Reserved.")] 15 | [assembly: AssemblyTrademark("")] 16 | [assembly: AssemblyCulture("")] 17 | 18 | // 19 | // Version information for an assembly consists of the following four values: 20 | // 21 | // Major Version 22 | // Minor Version 23 | // Build Number 24 | // Revision 25 | // 26 | // You can specify all the values or you can default the Revision and Build Numbers 27 | // by using the '*' as shown below: 28 | 29 | [assembly: AssemblyVersion("2.2.0.0")] 30 | 31 | // 32 | // In order to sign your assembly you must specify a key to use. Refer to the 33 | // Microsoft .NET Framework documentation for more information on assembly signing. 34 | // 35 | // Use the attributes below to control which key is used for signing. 36 | // 37 | // Notes: 38 | // (*) If no key is specified, the assembly is not signed. 39 | // (*) KeyName refers to a key that has been installed in the Crypto Service 40 | // Provider (CSP) on your machine. KeyFile refers to a file which contains 41 | // a key. 42 | // (*) If the KeyFile and the KeyName values are both specified, the 43 | // following processing occurs: 44 | // (1) If the KeyName can be found in the CSP, that key is used. 45 | // (2) If the KeyName does not exist and the KeyFile does exist, the key 46 | // in the KeyFile is installed into the CSP and used. 47 | // (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. 48 | // When specifying the KeyFile, the location of the KeyFile should be 49 | // relative to the project output directory which is 50 | // %Project Directory%\obj\. For example, if your KeyFile is 51 | // located in the project directory, you would specify the AssemblyKeyFile 52 | // attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] 53 | // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework 54 | // documentation for more information on this. 55 | // 56 | [assembly: AssemblyDelaySign(false)] 57 | [assembly: AssemblyKeyFile("")] 58 | [assembly: AssemblyKeyName("")] 59 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/doc/extensibility.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NUnit - Extensibility 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 23 | 24 | 25 |
26 | 27 |

NUnit Extensibility

28 | 29 |

NUnit is designed to be extended in a number of ways.

30 | 31 |

Extensions to the NUnit framework - the part of NUnit that is referenced 32 | by tests - usually take the form of 33 | Custom Constraints, written by users to 34 | encapsulate tests that pertain to their specific projects.

35 | 36 |

Extending the features found within NUnit itself depends on the use of 37 | NUnit Addins. 38 | Currently, The Addin mechanism only supports extensions to the NUnit core - 39 | the part of NUnit that builds and executes test suites. However, the API that 40 | is used provides for the future ability to extend the client side of NUnit, 41 | including the GUI.

42 | 43 | 44 |
45 | 46 | 47 | 68 | 69 | 70 | 71 | 72 | 75 | 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /tests/test_project/SampleDotNetProject/SampleCodeTests/SampleCodeTests.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | AnyCPU 6 | 8.0.30703 7 | 2.0 8 | {1EC1F560-7B16-44FC-B3D4-5A8904CA7709} 9 | Library 10 | Properties 11 | SampleCodeTests 12 | SampleCodeTests 13 | v3.5 14 | 512 15 | 16 | 17 | 18 | true 19 | full 20 | false 21 | bin\Debug\ 22 | DEBUG;TRACE 23 | prompt 24 | 4 25 | 26 | 27 | pdbonly 28 | true 29 | bin\Release\ 30 | TRACE 31 | prompt 32 | 4 33 | 34 | 35 | 36 | ..\..\NUnit_2.5.7_SampleInstall\bin\net-2.0\nunit.framework.dll 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | {9459ABAB-B9A4-4226-B57E-93704D9EA2F8} 52 | SampleCodeLibrary 53 | 54 | 55 | 56 | 63 | -------------------------------------------------------------------------------- /unit_tests/CommentableLineFinder_tests.rb: -------------------------------------------------------------------------------- 1 | #Test Framework 2 | require 'test/unit' 3 | 4 | #Subject Under Test 5 | require 'src/CommentableLineFinder' 6 | 7 | #Test Objects 8 | require 'unit_tests/TestObjects/FileSystem' 9 | require 'unit_tests/TestObjects/CommentableLineFinderObserver' 10 | 11 | class CommentableLineFinder_Tests < Test::Unit::TestCase 12 | def test_when_a_mutatable_file_is_found 13 | root_path = 'root path' 14 | relative_file_path = 'relative file path' 15 | expected_file_path = File.join root_path, relative_file_path 16 | 17 | file_system = TestFileSystem.new 18 | commentable_line_finder = CommentableLineFinder.new 19 | commentable_line_finder.for_file_system_access_use file_system 20 | 21 | commentable_line_finder.next_file root_path, relative_file_path 22 | 23 | assert_equal expected_file_path, file_system.file_path_lines_were_requested_from, 'should ask file system for lines of text' 24 | end 25 | 26 | def test_when_a_line_of_text_is_provided_to_the_finder 27 | expected_root_path = 'root_path' 28 | expected_relative_path = 'relative path' 29 | expected_line_of_text = 'yada yada!' 30 | 31 | commentable_line_finder_observer = TestCommentableLineFinderObserver.new 32 | commentable_line_finder = CommentableLineFinder.new 33 | commentable_line_finder.on_next_line_found_notify commentable_line_finder_observer 34 | 35 | commentable_line_finder.next_file expected_root_path, expected_relative_path 36 | commentable_line_finder.next_line expected_line_of_text 37 | 38 | assert_equal 1, commentable_line_finder_observer.current_line_number, 'should pass the correct line number to the observer' 39 | assert_equal expected_root_path, commentable_line_finder_observer.current_root_path, 'should pass the correct root path to the observer' 40 | assert_equal expected_relative_path, commentable_line_finder_observer.current_relative_path, 'should pass the correct relative path to the observer' 41 | assert_equal expected_line_of_text, commentable_line_finder_observer.current_line_of_text, 'should pass the correct line of text to the observer' 42 | end 43 | 44 | def test_when_multiple_lines_of_commentable_and_uncommentable_text_are_provided_to_the_finder 45 | line_count = 4 46 | 47 | commentable_line_finder_observer = TestCommentableLineFinderObserver.new 48 | commentable_line_finder = CommentableLineFinder.new 49 | commentable_line_finder.on_next_line_found_notify commentable_line_finder_observer 50 | 51 | commentable_line_finder.next_line 'yada yada!' 52 | commentable_line_finder.next_line 'gfdgfdgfdg dgfd ' 53 | commentable_line_finder.next_line '// this is uncommentable and shouldnt be passed along' 54 | commentable_line_finder.next_line ' \t\r\n' 55 | commentable_line_finder.next_line 'ftryytiu53' 56 | 57 | assert_equal line_count, commentable_line_finder_observer.current_line_number, 'the current line number should be the total line count' 58 | end 59 | end -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/nunit-console.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 29 | 31 | 32 | 33 | 36 | 38 | 39 | 40 | 41 | 44 | 46 | 47 | 48 | 49 | 52 | 54 | 55 | 56 | 57 | 60 | 62 | 63 | 64 | 65 | 68 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/nunit-console.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 29 | 31 | 32 | 33 | 36 | 38 | 39 | 40 | 41 | 44 | 46 | 47 | 48 | 49 | 52 | 54 | 55 | 56 | 57 | 60 | 62 | 63 | 64 | 65 | 68 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-1.1/nunit-agent.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 29 | 31 | 32 | 33 | 36 | 38 | 39 | 40 | 41 | 44 | 46 | 47 | 48 | 49 | 52 | 54 | 55 | 56 | 57 | 60 | 62 | 63 | 64 | 65 | 68 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/nunit-agent.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 29 | 31 | 32 | 33 | 36 | 38 | 39 | 40 | 41 | 44 | 46 | 47 | 48 | 49 | 52 | 54 | 55 | 56 | 57 | 60 | 62 | 63 | 64 | 65 | 68 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/nunit-console-x86.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 29 | 31 | 32 | 33 | 36 | 38 | 39 | 40 | 41 | 44 | 46 | 47 | 48 | 49 | 52 | 54 | 55 | 56 | 57 | 60 | 62 | 63 | 64 | 65 | 68 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /tests/test_project/NUnit_2.5.7_SampleInstall/bin/net-2.0/nunit-agent-x86.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 29 | 31 | 32 | 33 | 36 | 38 | 39 | 40 | 41 | 44 | 46 | 47 | 48 | 49 | 52 | 54 | 55 | 56 | 57 | 60 | 62 | 63 | 64 | 65 | 68 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | --------------------------------------------------------------------------------