├── .gitignore ├── CHANGES.txt ├── LICENSE.txt ├── NUnitLite.nuspec ├── NUnitLite.sln ├── NUnitLiteCF.sln ├── README.txt ├── nant.bat ├── nunitlite.build ├── nunitlite.build.include ├── src ├── TestResultConsole │ ├── AssemblyInfo.cs │ ├── Program.cs │ └── TestResultConsole.csproj ├── framework │ ├── Api │ │ ├── ExpectedExceptionData.cs │ │ ├── FailureSite.cs │ │ ├── IParameterDataSource.cs │ │ ├── IPropertyBag.cs │ │ ├── ITest.cs │ │ ├── ITestAssemblyBuilder.cs │ │ ├── ITestAssemblyRunner.cs │ │ ├── ITestCaseData.cs │ │ ├── ITestCaseSource.cs │ │ ├── ITestCaseSourceProvider.cs │ │ ├── ITestFilter.cs │ │ ├── ITestListener.cs │ │ ├── ITestResult.cs │ │ ├── IXmlNodeBuilder.cs │ │ ├── PropertyEntry.cs │ │ ├── ResultState.cs │ │ ├── RunState.cs │ │ ├── TestOutput.cs │ │ ├── TestStatus.cs │ │ └── XmlNode.cs │ ├── AssemblyInfo.cs │ ├── Assert.cs │ ├── AssertionHelper.cs │ ├── Assume.cs │ ├── Attributes │ │ ├── CategoryAttribute.cs │ │ ├── CombinatorialAttribute.cs │ │ ├── CultureAttribute.cs │ │ ├── DataAttribute.cs │ │ ├── DatapointAttribute.cs │ │ ├── DatapointSourceAttribute.cs │ │ ├── DatapointsAttribute.cs │ │ ├── DescriptionAttribute.cs │ │ ├── ExpectedExceptionAttribute.cs │ │ ├── ExplicitAttribute.cs │ │ ├── IgnoreAttribute.cs │ │ ├── IncludeExcludeAttribute.cs │ │ ├── MaxTimeAttribute.cs │ │ ├── NUnitAttribute.cs │ │ ├── PairwiseAttribute.cs │ │ ├── PlatformAttribute.cs │ │ ├── PropertyAttribute.cs │ │ ├── RandomAttribute.cs │ │ ├── RangeAttribute.cs │ │ ├── RepeatAttribute.cs │ │ ├── SequentialAttribute.cs │ │ ├── SetCultureAttribute.cs │ │ ├── SetUICultureAttribute.cs │ │ ├── SetUpAttribute.cs │ │ ├── TearDownAttribute.cs │ │ ├── TestAttribute.cs │ │ ├── TestCaseAttribute.cs │ │ ├── TestCaseSourceAttribute.cs │ │ ├── TestFixtureAttribute.cs │ │ ├── TestFixtureSetUpAttribute.cs │ │ ├── TestFixtureTearDownAttribute.cs │ │ ├── TheoryAttribute.cs │ │ ├── TimeoutAttribute.cs │ │ ├── ValueSourceAttribute.cs │ │ └── ValuesAttribute.cs │ ├── Compatibility │ │ └── SerializableAttribute.cs │ ├── Constraints │ │ ├── AllItemsConstraint.cs │ │ ├── AndConstraint.cs │ │ ├── AssignableFromConstraint.cs │ │ ├── AssignableToConstraint.cs │ │ ├── AttributeConstraint.cs │ │ ├── AttributeExistsConstraint.cs │ │ ├── BasicConstraint.cs │ │ ├── BinaryConstraint.cs │ │ ├── BinarySerializableConstraint.cs │ │ ├── CollectionConstraint.cs │ │ ├── CollectionContainsConstraint.cs │ │ ├── CollectionEquivalentConstraint.cs │ │ ├── CollectionItemsEqualConstraint.cs │ │ ├── CollectionOrderedConstraint.cs │ │ ├── CollectionSubsetConstraint.cs │ │ ├── CollectionSupersetConstraint.cs │ │ ├── CollectionTally.cs │ │ ├── ComparisonAdapter.cs │ │ ├── ComparisonConstraint.cs │ │ ├── Constraint.cs │ │ ├── ConstraintBuilder.cs │ │ ├── ConstraintExpression.cs │ │ ├── ConstraintExpressionBase.cs │ │ ├── ConstraintFactory.cs │ │ ├── ContainsConstraint.cs │ │ ├── DelayedConstraint.cs │ │ ├── EmptyCollectionConstraint.cs │ │ ├── EmptyConstraint.cs │ │ ├── EmptyDirectoryConstraint.cs │ │ ├── EmptyStringConstraint.cs │ │ ├── EndsWithConstraint.cs │ │ ├── EqualConstraint.cs │ │ ├── EqualityAdapter.cs │ │ ├── ExactCountConstraint.cs │ │ ├── ExactTypeConstraint.cs │ │ ├── ExceptionTypeConstraint.cs │ │ ├── FailurePoint.cs │ │ ├── FalseConstraint.cs │ │ ├── FloatingPointNumerics.cs │ │ ├── GreaterThanConstraint.cs │ │ ├── GreaterThanOrEqualConstraint.cs │ │ ├── IResolveConstraint.cs │ │ ├── InstanceOfTypeConstraint.cs │ │ ├── LessThanConstraint.cs │ │ ├── LessThanOrEqualConstraint.cs │ │ ├── MessageWriter.cs │ │ ├── MsgUtils.cs │ │ ├── NUnitComparer.cs │ │ ├── NUnitEqualityComparer.cs │ │ ├── NaNConstraint.cs │ │ ├── NoItemConstraint.cs │ │ ├── NotConstraint.cs │ │ ├── NullConstraint.cs │ │ ├── NullOrEmptyStringConstraint.cs │ │ ├── Numerics.cs │ │ ├── Operators │ │ │ ├── AllOperator.cs │ │ │ ├── AndOperator.cs │ │ │ ├── AttributeOperator.cs │ │ │ ├── BinaryOperator.cs │ │ │ ├── CollectionOperator.cs │ │ │ ├── ConstraintOperator.cs │ │ │ ├── ExactCountOperator.cs │ │ │ ├── NoneOperator.cs │ │ │ ├── NotOperator.cs │ │ │ ├── OrOperator.cs │ │ │ ├── PrefixOperator.cs │ │ │ ├── PropOperator.cs │ │ │ ├── SelfResolvingOperator.cs │ │ │ ├── SomeOperator.cs │ │ │ ├── ThrowsOperator.cs │ │ │ └── WithOperator.cs │ │ ├── OrConstraint.cs │ │ ├── PathConstraint.cs │ │ ├── PredicateConstraint.cs │ │ ├── PrefixConstraint.cs │ │ ├── PropertyConstraint.cs │ │ ├── PropertyExistsConstraint.cs │ │ ├── RangeConstraint.cs │ │ ├── RegexConstraint.cs │ │ ├── ResolvableConstraintExpression.cs │ │ ├── ReusableConstraint.cs │ │ ├── SameAsConstraint.cs │ │ ├── SamePathConstraint.cs │ │ ├── SamePathOrUnderConstraint.cs │ │ ├── SomeItemsConstraint.cs │ │ ├── StartsWithConstraint.cs │ │ ├── StringConstraint.cs │ │ ├── SubPathConstraint.cs │ │ ├── SubstringConstraint.cs │ │ ├── ThrowsConstraint.cs │ │ ├── ThrowsNothingConstraint.cs │ │ ├── Tolerance.cs │ │ ├── ToleranceMode.cs │ │ ├── TrueConstraint.cs │ │ ├── TypeConstraint.cs │ │ ├── UniqueItemsConstraint.cs │ │ └── XmlSerializableConstraint.cs │ ├── Contains.cs │ ├── Env.cs │ ├── Exceptions │ │ ├── AssertionException.cs │ │ ├── IgnoreException.cs │ │ ├── InconclusiveException.cs │ │ └── SuccessException.cs │ ├── Extensibility │ │ ├── IParameterDataProvider.cs │ │ ├── ISuiteBuilder.cs │ │ ├── ITestCaseBuilder.cs │ │ └── ITestCaseProvider.cs │ ├── GlobalSettings.cs │ ├── Guard.cs │ ├── GuiUnit.sln │ ├── GuiUnit │ │ ├── AdditionalAsserts.cs │ │ ├── GtkMainLoopIntegration.cs │ │ ├── IMainLoopIntegration.cs │ │ ├── InvokerHelper.cs │ │ ├── MainLoopCommand.cs │ │ ├── MonoMacMainLoopIntegration.cs │ │ ├── TestRunner.cs │ │ ├── XmlTestListener.cs │ │ └── XwtMainLoopIntegration.cs │ ├── GuiUnit_MT.csproj │ ├── GuiUnit_NET_4_0.csproj │ ├── GuiUnit_NET_4_5.csproj │ ├── GuiUnit_xammac_mobile.csproj │ ├── Has.cs │ ├── IExpectException.cs │ ├── Info.plist │ ├── Internal │ │ ├── AssemblyHelper.cs │ │ ├── AsyncInvocationRegion.cs │ │ ├── AsyncSynchronizationContext.cs │ │ ├── Builders │ │ │ ├── CombinatorialStrategy.cs │ │ │ ├── CombinatorialTestCaseProvider.cs │ │ │ ├── CombiningStrategy.cs │ │ │ ├── DataAttributeTestCaseProvider.cs │ │ │ ├── DatapointProvider.cs │ │ │ ├── NUnitTestCaseBuilder.cs │ │ │ ├── NUnitTestFixtureBuilder.cs │ │ │ ├── PairwiseStrategy.cs │ │ │ ├── ParameterDataProvider.cs │ │ │ ├── ProviderCache.cs │ │ │ └── SequentialStrategy.cs │ │ ├── Commands │ │ │ ├── ApplyChangesToContextCommand.cs │ │ │ ├── CommandDecoratorList.cs │ │ │ ├── CommandStage.cs │ │ │ ├── DelegatingTestCommand.cs │ │ │ ├── ExpectedExceptionCommand.cs │ │ │ ├── ICommandDecorator.cs │ │ │ ├── MaxTimeCommand.cs │ │ │ ├── OneTimeSetUpCommand.cs │ │ │ ├── OneTimeTearDownCommand.cs │ │ │ ├── RepeatedTestCommand.cs │ │ │ ├── SetUpTearDownCommand.cs │ │ │ ├── SkipCommand.cs │ │ │ ├── TestCommand.cs │ │ │ ├── TestMethodCommand.cs │ │ │ └── TheoryResultCommand.cs │ │ ├── CultureDetector.cs │ │ ├── ExceptionHelper.cs │ │ ├── Extensibility │ │ │ ├── ParameterDataProviders.cs │ │ │ └── TestCaseProviders.cs │ │ ├── Filters │ │ │ ├── AndFilter.cs │ │ │ ├── CategoryExpression.cs │ │ │ ├── CategoryFilter.cs │ │ │ ├── NotFilter.cs │ │ │ ├── OrFilter.cs │ │ │ ├── SimpleCategoryExpression.cs │ │ │ └── SimpleNameFilter.cs │ │ ├── IApplyToContext.cs │ │ ├── IApplyToTest.cs │ │ ├── InvalidTestFixtureException.cs │ │ ├── MethodHelper.cs │ │ ├── NUnitException.cs │ │ ├── NUnitLiteTestAssemblyBuilder.cs │ │ ├── NUnitLiteTestAssemblyRunner.cs │ │ ├── OSPlatform.cs │ │ ├── ParameterSet.cs │ │ ├── PlatformHelper.cs │ │ ├── PropertyBag.cs │ │ ├── PropertyNames.cs │ │ ├── RandomGenerator.cs │ │ ├── Randomizer.cs │ │ ├── Reflect.cs │ │ ├── Results │ │ │ ├── TestCaseResult.cs │ │ │ ├── TestResult.cs │ │ │ └── TestSuiteResult.cs │ │ ├── RuntimeFramework.cs │ │ ├── StackFilter.cs │ │ ├── StringUtil.cs │ │ ├── TestExecutionContext.cs │ │ ├── TestFilter.cs │ │ ├── TestFixtureBuilder.cs │ │ ├── TestListener.cs │ │ ├── Tests │ │ │ ├── ParameterizedFixtureSuite.cs │ │ │ ├── ParameterizedMethodSuite.cs │ │ │ ├── Test.cs │ │ │ ├── TestAssembly.cs │ │ │ ├── TestFixture.cs │ │ │ ├── TestMethod.cs │ │ │ └── TestSuite.cs │ │ ├── TextMessageWriter.cs │ │ ├── ThreadUtility.cs │ │ ├── TypeHelper.cs │ │ └── WorkItems │ │ │ ├── CompositeWorkItem.cs │ │ │ ├── CountdownEvent.cs │ │ │ ├── SimpleWorkItem.cs │ │ │ ├── WorkItem.cs │ │ │ └── WorkItemState.cs │ ├── Is.cs │ ├── Iz.cs │ ├── ListMapper.cs │ ├── MessageMatch.cs │ ├── ObjectList.cs │ ├── Runner │ │ ├── CommandLineOptions.cs │ │ ├── ConsoleWriter.cs │ │ ├── DebugWriter.cs │ │ ├── OutputWriters │ │ │ ├── NUnit2XmlOutputWriter.cs │ │ │ ├── NUnit3XmlOutputWriter.cs │ │ │ └── OutputWriter.cs │ │ ├── ResultReporter.cs │ │ ├── ResultSummary.cs │ │ ├── Silverlight │ │ │ ├── TestPage.g.cs │ │ │ ├── TestPage.xaml.cs │ │ │ └── TextBlockWriter.cs │ │ └── TcpWriter.cs │ ├── SpecialValue.cs │ ├── TestCaseData.cs │ ├── TestContext.cs │ ├── Throws.cs │ ├── guiunit.snk │ ├── nunitlite-2.0.csproj │ ├── nunitlite-3.5.csproj │ ├── nunitlite-4.0.csproj │ ├── nunitlite-4.5.csproj │ ├── nunitlite-netcf-2.0.csproj │ ├── nunitlite-netcf-3.5.csproj │ ├── nunitlite-sl-3.0.csproj │ ├── nunitlite-sl-4.0.csproj │ ├── nunitlite-sl-5.0.csproj │ ├── nunitlite.framework.build │ └── obj │ │ ├── Debug │ │ ├── net-4.5 │ │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ │ ├── sl-3.0 │ │ │ ├── Runner │ │ │ │ └── Silverlight │ │ │ │ │ └── TestPage.g.cs │ │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ │ ├── sl-4.0 │ │ │ └── Runner │ │ │ │ └── Silverlight │ │ │ │ ├── TestPage.g.cs │ │ │ │ └── TestPage.g.i.cs │ │ └── sl-5.0 │ │ │ ├── Runner │ │ │ └── Silverlight │ │ │ │ ├── TestPage.g.cs │ │ │ │ └── TestPage.g.i.cs │ │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ │ └── release │ │ ├── sl-3.0 │ │ ├── Runner │ │ │ └── Silverlight │ │ │ │ └── TestPage.g.cs │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ │ ├── sl-4.0 │ │ └── Runner │ │ │ └── Silverlight │ │ │ └── TestPage.g.cs │ │ └── sl-5.0 │ │ ├── Runner │ │ └── Silverlight │ │ │ └── TestPage.g.cs │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs ├── mock-assembly │ ├── MockAssembly.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── mock-assembly-2.0.csproj │ ├── mock-assembly-3.5.csproj │ ├── mock-assembly-4.0.csproj │ ├── mock-assembly-4.5.csproj │ ├── mock-assembly-netcf-2.0.csproj │ ├── mock-assembly-netcf-3.5.csproj │ ├── mock-assembly-sl-3.0.csproj │ ├── mock-assembly-sl-4.0.csproj │ ├── mock-assembly-sl-5.0.csproj │ ├── mock-assembly.build │ └── obj │ │ ├── Debug │ │ ├── net-4.5 │ │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ │ ├── sl-3.0 │ │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ │ └── sl-5.0 │ │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ │ └── release │ │ ├── sl-3.0 │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ │ └── sl-5.0 │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs ├── testdata │ ├── AssemblyInfo.cs │ ├── AssertCountFixture.cs │ ├── AssertFailFixture.cs │ ├── AssertIgnoreData.cs │ ├── AsyncDummyFixture.cs │ ├── AsyncRealFixture.cs │ ├── AttributeInheritanceData.cs │ ├── CategoryAttributeData.cs │ ├── CultureAttributeData.cs │ ├── DatapointFixture.cs │ ├── DescriptionFixture.cs │ ├── ExpectedExceptionData.cs │ ├── FixtureSetUpTearDownData.cs │ ├── MaxTimeFixture.cs │ ├── ParameterizedTestFixture.cs │ ├── PropertyAttributeTests.cs │ ├── RepeatedTestFixture.cs │ ├── SetUpData.cs │ ├── TestCaseAttributeFixture.cs │ ├── TestCaseSourceAttributeFixture.cs │ ├── TestContextData.cs │ ├── TestFixtureData.cs │ ├── TestMethodSignatureFixture.cs │ ├── TheoryFixture.cs │ ├── TimeoutFixture.cs │ ├── nunitlite.testdata-2.0.csproj │ ├── nunitlite.testdata-3.5.csproj │ ├── nunitlite.testdata-4.0.csproj │ ├── nunitlite.testdata-4.5.csproj │ ├── nunitlite.testdata-netcf-2.0.csproj │ ├── nunitlite.testdata-netcf-3.5.csproj │ ├── nunitlite.testdata-sl-3.0.csproj │ ├── nunitlite.testdata-sl-4.0.csproj │ ├── nunitlite.testdata-sl-5.0.csproj │ ├── nunitlite.testdata.build │ └── obj │ │ ├── Debug │ │ ├── net-4.5 │ │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ │ ├── sl-3.0 │ │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ │ └── sl-5.0 │ │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ │ └── release │ │ ├── sl-3.0 │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ │ └── sl-5.0 │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs └── tests │ ├── Api │ └── ResultStateTests.cs │ ├── App.g.cs │ ├── App.xaml.cs │ ├── AssemblyInfo.cs │ ├── Assertions │ ├── ArrayEqualsFailureMessageFixture.cs │ ├── ArrayEqualsFixture.cs │ ├── ArrayNotEqualFixture.cs │ ├── AssertFailTests.cs │ ├── AssertIgnoreTests.cs │ ├── AssertInconclusiveTests.cs │ ├── AssertPassTests.cs │ ├── AssertThatTests.cs │ ├── AssertThrowsTests.cs │ ├── AssumeThatTests.cs │ ├── AsyncThrowsTests.cs │ ├── CollectionTests.cs │ ├── ConditionAssertTests.cs │ ├── EqualsFixture.cs │ ├── MessageChecker.cs │ ├── NotEqualFixture.cs │ ├── NotSameFixture.cs │ ├── NullableTypesTests.cs │ └── SameFixture.cs │ ├── Attributes │ ├── ApplyToTestTests.cs │ ├── AttributeInheritanceTests.cs │ ├── CategoryAttributeTests.cs │ ├── CombinatorialTests.cs │ ├── DatapointTests.cs │ ├── DescriptionTests.cs │ ├── ExpectedExceptionTests.cs │ ├── FixtureSetUpTearDownTests.cs │ ├── MaxTimeTests.cs │ ├── PairwiseTests.cs │ ├── ParameterizedTestFixtureTests.cs │ ├── PropertyAttributeTests.cs │ ├── RepeatedTestTests.cs │ ├── SetCultureAttributeTests.cs │ ├── TestCaseAttributeTests.cs │ ├── TestCaseSourceTests.cs │ ├── TestDummy.cs │ ├── TestFixtureAttributeTests.cs │ ├── TheoryTests.cs │ ├── TimeoutTests.cs │ ├── ValueSourceTests.cs │ └── ValuesAttributeTests.cs │ ├── Constraints │ ├── AllItemsConstraintTests.cs │ ├── AndConstraintTests.cs │ ├── AssignableFromConstraintTests.cs │ ├── AssignableToConstraintTests.cs │ ├── AsyncDelayedConstraintTests.cs │ ├── AttributeExistsConstraintTests.cs │ ├── BasicConstraintTests.cs │ ├── BinarySerializableTest.cs │ ├── CollectionContainsConstraintTests.cs │ ├── CollectionEquivalentConstraintTests.cs │ ├── CollectionOrderedConstraintTests.cs │ ├── CollectionSubsetConstraintTests.cs │ ├── ComparisonConstraintTest.cs │ ├── ConstraintTestBase.cs │ ├── DelayedConstraintTest.cs │ ├── EmptyConstraintTest.cs │ ├── EndsWithConstraintTests.cs │ ├── EqualConstraintTests.cs │ ├── ExactCountConstraintTests.cs │ ├── ExactTypeConstraintTests.cs │ ├── FloatingPointNumericsTest.cs │ ├── GreaterThanConstraintTests.cs │ ├── GreaterThanOrEqualConstraintTests.cs │ ├── InstanceOfTypeConstraintTests.cs │ ├── LessThanConstraintTests.cs │ ├── LessThanOrEqualConstraintTests.cs │ ├── MessageWriterTests.cs │ ├── MsgUtilTests.cs │ ├── NUnitComparerTests.cs │ ├── NUnitEqualityComparerTests.cs │ ├── NotConstraintTests.cs │ ├── NumericsTest.cs │ ├── OrConstraintTests.cs │ ├── PathConstraintTests.cs │ ├── PredicateConstraintTests.cs │ ├── PropertyTests.cs │ ├── RangeConstraintTests.cs │ ├── RangeTests.cs │ ├── ReusableConstraintTests.cs │ ├── SameAsTest.cs │ ├── StartsWithConstraintTests.cs │ ├── SubstringConstraintTests.cs │ ├── TestDelegates.cs │ ├── ThrowsConstraintTests.cs │ ├── ToStringTests.cs │ ├── UniqueItemsConstraintTests.cs │ └── XmlSerializableTest.cs │ ├── Framework │ ├── StackFilterTest.cs │ ├── SyntaxTests.cs │ ├── TestContextTests.cs │ └── TestResultTests.cs │ ├── Internal │ ├── AssemblyHelperTests.cs │ ├── AsyncTestMethodTests.cs │ ├── CultureSettingAndDetectionTests.cs │ ├── DeduceTypeArgsFromArgs.cs │ ├── GenericTestFixtureTests.cs │ ├── GenericTestMethodTests.cs │ ├── NUnitTestCaseBuilderTests.cs │ ├── PlatformDetectionTests.cs │ ├── PropertyBagTests.cs │ ├── RandomGeneratorTests.cs │ ├── RandomizerTests.cs │ ├── RuntimeFrameworkTests.cs │ ├── SetUpTest.cs │ ├── SimpleGenericMethods.cs │ ├── TestExecutionContextTests.cs │ ├── TestFixtureTests.cs │ ├── TestMethodSignatureTests.cs │ ├── TestResultTests.cs │ ├── TestXmlTests.cs │ ├── TextMessageWriterTests.cs │ └── TypeParameterUsedWithTestMethod.cs │ ├── Program.cs │ ├── RecordingTestListener.cs │ ├── Runner │ ├── CommandLineOptionTests.cs │ └── NUnit2XmlOutputWriterTests.cs │ ├── Syntax │ ├── AfterTests.cs │ ├── ArbitraryConstraintMatching.cs │ ├── CollectionTests.cs │ ├── ComparisonTests.cs │ ├── EqualityTests.cs │ ├── InvalidCodeTests.cs │ ├── OperatorOverrides.cs │ ├── OperatorTests.cs │ ├── PathConstraintTests.cs │ ├── PropertyTests.cs │ ├── SerializableConstraints.cs │ ├── SimpleConstraints.cs │ ├── StringConstraints.cs │ ├── SyntaxTest.cs │ ├── TestCompiler.cs │ ├── ThrowsTests.cs │ └── TypeConstraints.cs │ ├── TestUtilities │ ├── Collections │ │ ├── SimpleObjectCollection.cs │ │ └── SimpleObjectList.cs │ ├── Comparers │ │ ├── AlwaysEqualComparer.cs │ │ ├── SimpleEqualityComparer.cs │ │ └── SimpleObjectComparer.cs │ ├── ResultSummary.cs │ ├── TestAssert.cs │ ├── TestBuilder.cs │ ├── TestComparer.cs │ ├── TestDelegates.cs │ └── TestFinder.cs │ ├── nunitlite.tests-2.0.csproj │ ├── nunitlite.tests-3.5.csproj │ ├── nunitlite.tests-4.0.csproj │ ├── nunitlite.tests-4.5.csproj │ ├── nunitlite.tests-netcf-2.0.csproj │ ├── nunitlite.tests-netcf-3.5.csproj │ ├── nunitlite.tests-sl-3.0.csproj │ ├── nunitlite.tests-sl-4.0.csproj │ ├── nunitlite.tests-sl-5.0.csproj │ ├── nunitlite.tests.build │ └── obj │ ├── Debug │ ├── net-4.5 │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ ├── sl-3.0 │ │ ├── App.g.cs │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ ├── sl-4.0 │ │ ├── App.g.cs │ │ └── App.g.i.cs │ └── sl-5.0 │ │ ├── App.g.cs │ │ ├── App.g.i.cs │ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ └── release │ ├── sl-3.0 │ ├── App.g.cs │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs │ ├── sl-4.0 │ └── App.g.cs │ └── sl-5.0 │ ├── App.g.cs │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs │ └── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs └── tools └── nant ├── COPYING.txt ├── README.txt └── bin ├── NAnt.CompressionTasks.dll ├── NAnt.CompressionTasks.xml ├── NAnt.Core.dll ├── NAnt.Core.xml ├── NAnt.DotNetTasks.dll ├── NAnt.DotNetTasks.xml ├── NAnt.MSNetTasks.dll ├── NAnt.MSNetTasks.xml ├── NAnt.NUnit.dll ├── NAnt.NUnit.xml ├── NAnt.NUnit1Tasks.dll ├── NAnt.NUnit1Tasks.xml ├── NAnt.NUnit2Tasks.dll ├── NAnt.NUnit2Tasks.xml ├── NAnt.SourceControlTasks.dll ├── NAnt.SourceControlTasks.xml ├── NAnt.VSNetTasks.dll ├── NAnt.VSNetTasks.xml ├── NAnt.VisualCppTasks.dll ├── NAnt.VisualCppTasks.xml ├── NAnt.Win32Tasks.dll ├── NAnt.Win32Tasks.xml ├── NAnt.exe ├── NAnt.exe.config ├── NAnt.xml ├── NDoc.Documenter.NAnt.dll ├── NDoc.Documenter.NAnt.xml ├── extensions └── common │ ├── 2.0 │ ├── NAnt.MSBuild.dll │ └── NAnt.MSBuild.xml │ └── 4.0 │ ├── NAnt.MSBuild.dll │ └── NAnt.MSBuild.xml ├── lib └── common │ ├── 2.0 │ ├── nunit-console-runner.dll │ ├── nunit-console.exe │ ├── nunit-console.exe.config │ ├── nunit.core.dll │ ├── nunit.core.interfaces.dll │ ├── nunit.framework.dll │ └── nunit.util.dll │ └── neutral │ ├── ICSharpCode.SharpCvsLib.Console.dll │ ├── ICSharpCode.SharpCvsLib.dll │ ├── ICSharpCode.SharpZipLib.dll │ ├── NDoc.Core.dll │ ├── NDoc.Documenter.Msdn.dll │ ├── NDoc.ExtendedUI.dll │ ├── NUnitCore.dll │ └── netDumbster.dll ├── log4net.dll └── scvs.exe /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | bin 3 | obj 4 | src/framework/GuiUnit.userprefs 5 | *.userprefs 6 | *.csproj.CoreCompileInputs.cache 7 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2004-2013 Charlie Poole 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | 21 | -------------------------------------------------------------------------------- /README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/README.txt -------------------------------------------------------------------------------- /nant.bat: -------------------------------------------------------------------------------- 1 | tools\nant\bin\nant.exe %* 2 | 3 | -------------------------------------------------------------------------------- /src/TestResultConsole/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("TestResultConsole.cs")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("TestResultConsole.cs")] 13 | [assembly: AssemblyCopyright("Copyright © 2007")] 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("0245d9d3-40c9-47f0-a109-31131cc0ea53")] 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 | [assembly: AssemblyVersion("1.0.0.0")] 33 | [assembly: AssemblyFileVersion("1.0.0.0")] 34 | -------------------------------------------------------------------------------- /src/TestResultConsole/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Net.Sockets; 4 | using System.Text; 5 | 6 | namespace TestResultConsole.cs 7 | { 8 | class Program 9 | { 10 | static int port = 9000; 11 | 12 | static void Main(string[] args) 13 | { 14 | TcpListener listener = new TcpListener(port); 15 | 16 | listener.Start(); 17 | Console.WriteLine("Waiting for test to begin..."); 18 | TcpClient client = listener.AcceptTcpClient(); 19 | 20 | Console.WriteLine("Connected to test runner..."); 21 | Console.WriteLine(); 22 | 23 | NetworkStream ns = client.GetStream(); 24 | TextReader rdr = new StreamReader(ns); 25 | 26 | try 27 | { 28 | while (client.Connected) 29 | { 30 | string data = rdr.ReadLine(); 31 | Console.WriteLine(data); 32 | } 33 | } 34 | catch (IOException e) 35 | { 36 | if (client.Connected) 37 | Console.WriteLine(e.ToString()); 38 | } 39 | catch (Exception e) 40 | { 41 | Console.WriteLine(e.ToString()); 42 | } 43 | 44 | client.Close(); 45 | listener.Stop(); 46 | } 47 | } 48 | } 49 | 50 | -------------------------------------------------------------------------------- /src/framework/Api/FailureSite.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2012 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Api 25 | { 26 | /// 27 | /// The FailureSite enum indicates the stage of a test 28 | /// in which an error or failure occured. 29 | /// 30 | public enum FailureSite 31 | { 32 | /// 33 | /// Failure in the test itself 34 | /// 35 | Test, 36 | 37 | /// 38 | /// Failure in the SetUp method 39 | /// 40 | SetUp, 41 | 42 | /// 43 | /// Failure in the TearDown method 44 | /// 45 | TearDown, 46 | 47 | /// 48 | /// Failure of a parent test 49 | /// 50 | Parent, 51 | 52 | /// 53 | /// Failure of a child test 54 | /// 55 | Child 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/framework/Api/IParameterDataSource.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2008 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | using System.Collections; 26 | using System.Reflection; 27 | 28 | namespace NUnit.Framework.Api 29 | { 30 | /// 31 | /// The IParameterDataSource interface is implemented by types 32 | /// that can provide data for a test method parameter. 33 | /// 34 | public interface IParameterDataSource 35 | { 36 | /// 37 | /// Gets an enumeration of data items for use as arguments 38 | /// for a test method parameter. 39 | /// 40 | /// The parameter for which data is needed 41 | /// An enumeration containing individual data items 42 | IEnumerable GetData(ParameterInfo parameter); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/framework/Api/ITestFilter.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2007 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | 26 | namespace NUnit.Framework.Api 27 | { 28 | /// 29 | /// Interface to be implemented by filters applied to tests. 30 | /// The filter applies when running the test, after it has been 31 | /// loaded, since this is the only time an ITest exists. 32 | /// 33 | public interface ITestFilter 34 | { 35 | /// 36 | /// Indicates whether this is the EmptyFilter 37 | /// 38 | bool IsEmpty { get; } 39 | 40 | /// 41 | /// Determine if a particular test passes the filter criteria. Pass 42 | /// may examine the parents and/or descendants of a test, depending 43 | /// on the semantics of the particular filter 44 | /// 45 | /// The test to which the filter is applied 46 | /// True if the test passes the fFilter, otherwise false 47 | bool Pass( ITest test ); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/framework/Api/IXmlNodeBuilder.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace NUnit.Framework.Api 4 | { 5 | /// 6 | /// An object implementing IXmlNodeBuilder is able to build 7 | /// an XmlResult representation of itself and any children. 8 | /// Note that the interface refers to the implementation 9 | /// of XmlNode in the NUnit.Framework.Api namespace. 10 | /// 11 | public interface IXmlNodeBuilder 12 | { 13 | /// 14 | /// Returns an XmlNode representating the current object. 15 | /// 16 | /// If true, children are included where applicable 17 | /// An XmlNode representing the result 18 | XmlNode ToXml(bool recursive); 19 | 20 | /// 21 | /// Returns an XmlNode representing the current object after 22 | /// adding it as a child of the supplied parent node. 23 | /// 24 | /// The parent node. 25 | /// If true, children are included, where applicable 26 | /// 27 | XmlNode AddToXml(XmlNode parentNode, bool recursive); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/framework/Api/TestStatus.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2010 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Api 25 | { 26 | /// 27 | /// The TestStatus enum indicates the result of running a test 28 | /// 29 | public enum TestStatus 30 | { 31 | /// 32 | /// The test was inconclusive 33 | /// 34 | Inconclusive, 35 | 36 | /// 37 | /// The test has skipped 38 | /// 39 | Skipped, 40 | 41 | /// 42 | /// The test succeeded 43 | /// 44 | Passed, 45 | 46 | /// 47 | /// The test failed 48 | /// 49 | Failed 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/framework/Attributes/CombinatorialAttribute.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2008 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | using NUnit.Framework.Internal; 26 | 27 | namespace NUnit.Framework 28 | { 29 | /// 30 | /// Marks a test to use a combinatorial join of any argument 31 | /// data provided. Since this is the default, the attribute is 32 | /// not needed. 33 | /// 34 | [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited=false)] 35 | public class CombinatorialAttribute : PropertyAttribute 36 | { 37 | /// 38 | /// Default constructor 39 | /// 40 | public CombinatorialAttribute() : base(PropertyNames.JoinType, "Combinatorial") { } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/framework/Attributes/DataAttribute.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2010 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | 26 | namespace NUnit.Framework 27 | { 28 | /// 29 | /// The abstract base class for all data-providing attributes 30 | /// defined by NUnit. Used to select all data sources for a 31 | /// method, class or parameter. 32 | /// 33 | public abstract class DataAttribute : NUnitAttribute 34 | { 35 | /// 36 | /// Default constructor 37 | /// 38 | public DataAttribute() { } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/framework/Attributes/DatapointAttribute.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2009 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | 26 | namespace NUnit.Framework 27 | { 28 | /// 29 | /// Used to mark a field for use as a datapoint when executing a theory 30 | /// within the same fixture that requires an argument of the field's Type. 31 | /// 32 | [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = true)] 33 | public class DatapointAttribute : NUnitAttribute 34 | { 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/framework/Attributes/DatapointSourceAttribute.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2009 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | 26 | namespace NUnit.Framework 27 | { 28 | /// 29 | /// Used to mark a field, property or method providing a set of datapoints to 30 | /// be used in executing any theories within the same fixture that require an 31 | /// argument of the Type provided. The data source may provide an array of 32 | /// the required Type or an IEnumerable<T>. 33 | /// Synonymous with DatapointsAttribute. 34 | /// 35 | [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = true)] 36 | public class DatapointSourceAttribute : NUnitAttribute 37 | { 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/framework/Attributes/DatapointsAttribute.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2009 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | 26 | namespace NUnit.Framework 27 | { 28 | /// 29 | /// Used to mark a field, property or method providing a set of datapoints to 30 | /// be used in executing any theories within the same fixture that require an 31 | /// argument of the Type provided. The data source may provide an array of 32 | /// the required Type or an IEnumerable<T>. 33 | /// Synonymous with DatapointSourceAttribute. 34 | /// 35 | [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Method, AllowMultiple = false, Inherited = true)] 36 | public class DatapointsAttribute : DatapointSourceAttribute 37 | { 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/framework/Attributes/DescriptionAttribute.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2007 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | using NUnit.Framework.Internal; 26 | 27 | namespace NUnit.Framework 28 | { 29 | /// 30 | /// Attribute used to provide descriptive text about a 31 | /// test case or fixture. 32 | /// 33 | [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Assembly, AllowMultiple = false, Inherited=false)] 34 | public sealed class DescriptionAttribute : PropertyAttribute 35 | { 36 | /// 37 | /// Construct a description Attribute 38 | /// 39 | /// The text of the description 40 | public DescriptionAttribute(string description) : base(PropertyNames.Description, description) { } 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /src/framework/Attributes/NUnitAttribute.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2010 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | 26 | namespace NUnit.Framework 27 | { 28 | /// 29 | /// The abstract base class for all custom attributes defined by NUnit. 30 | /// 31 | public abstract class NUnitAttribute : Attribute 32 | { 33 | /// 34 | /// Default constructor 35 | /// 36 | public NUnitAttribute() { } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/framework/Attributes/PairwiseAttribute.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2008 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | using NUnit.Framework.Internal; 26 | 27 | namespace NUnit.Framework 28 | { 29 | /// 30 | /// Marks a test to use a pairwise join of any argument 31 | /// data provided. Arguments will be combined in such a 32 | /// way that all possible pairs of arguments are used. 33 | /// 34 | [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited=false)] 35 | public class PairwiseAttribute : PropertyAttribute 36 | { 37 | /// 38 | /// Default constructor 39 | /// 40 | public PairwiseAttribute() : base(PropertyNames.JoinType, "Pairwise") { } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/framework/Attributes/SequentialAttribute.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2008 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | using NUnit.Framework.Internal; 26 | 27 | namespace NUnit.Framework 28 | { 29 | /// 30 | /// Marks a test to use a Sequential join of any argument 31 | /// data provided. Arguments will be combined into test cases, 32 | /// taking the next value of each argument until all are used. 33 | /// 34 | [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited=false)] 35 | public class SequentialAttribute : PropertyAttribute 36 | { 37 | /// 38 | /// Default constructor 39 | /// 40 | public SequentialAttribute() : base(PropertyNames.JoinType, "Sequential") { } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/framework/Attributes/TearDownAttribute.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2009 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework 25 | { 26 | using System; 27 | 28 | /// 29 | /// Attribute used to identify a method that is called 30 | /// immediately after each test is run. The method is 31 | /// guaranteed to be called, even if an exception is thrown. 32 | /// 33 | [AttributeUsage(AttributeTargets.Method, AllowMultiple=false, Inherited=true)] 34 | public class TearDownAttribute : NUnitAttribute 35 | {} 36 | } 37 | -------------------------------------------------------------------------------- /src/framework/Attributes/TestFixtureSetUpAttribute.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2009 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework 25 | { 26 | using System; 27 | 28 | /// 29 | /// Attribute used to identify a method that is 30 | /// called before any tests in a fixture are run. 31 | /// 32 | [AttributeUsage(AttributeTargets.Method, AllowMultiple=false, Inherited=true)] 33 | public class TestFixtureSetUpAttribute : NUnitAttribute 34 | { 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/framework/Attributes/TestFixtureTearDownAttribute.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2009 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework 25 | { 26 | using System; 27 | 28 | /// 29 | /// Attribute used to identify a method that is called after 30 | /// all the tests in a fixture have run. The method is 31 | /// guaranteed to be called, even if an exception is thrown. 32 | /// 33 | [AttributeUsage(AttributeTargets.Method, AllowMultiple=false, Inherited=true)] 34 | public class TestFixtureTearDownAttribute : NUnitAttribute 35 | { 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/framework/Compatibility/SerializableAttribute.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2012 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | #if NETCF_1_0 || SILVERLIGHT 25 | namespace System 26 | { 27 | /// 28 | /// Replacement for the SerializableAttribute so we compile 29 | /// under Silverlight. 30 | /// 31 | public class SerializableAttribute : Attribute 32 | { 33 | } 34 | } 35 | #endif 36 | -------------------------------------------------------------------------------- /src/framework/Constraints/FalseConstraint.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2008 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints 25 | { 26 | /// 27 | /// FalseConstraint tests that the actual value is false 28 | /// 29 | public class FalseConstraint : BasicConstraint 30 | { 31 | /// 32 | /// Initializes a new instance of the class. 33 | /// 34 | public FalseConstraint() : base(false, "False") { } 35 | } 36 | } -------------------------------------------------------------------------------- /src/framework/Constraints/IResolveConstraint.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2008 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints 25 | { 26 | /// 27 | /// The IConstraintExpression interface is implemented by all 28 | /// complete and resolvable constraints and expressions. 29 | /// 30 | public interface IResolveConstraint 31 | { 32 | /// 33 | /// Return the top-level constraint for this expression 34 | /// 35 | /// 36 | Constraint Resolve(); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/framework/Constraints/NullConstraint.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2008 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints 25 | { 26 | /// 27 | /// NullConstraint tests that the actual value is null 28 | /// 29 | public class NullConstraint : BasicConstraint 30 | { 31 | /// 32 | /// Initializes a new instance of the class. 33 | /// 34 | public NullConstraint() : base(null, "null") { } 35 | } 36 | } -------------------------------------------------------------------------------- /src/framework/Constraints/Operators/AllOperator.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2008 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints 25 | { 26 | /// 27 | /// Represents a constraint that succeeds if all the 28 | /// members of a collection match a base constraint. 29 | /// 30 | public class AllOperator : CollectionOperator 31 | { 32 | /// 33 | /// Returns a constraint that will apply the argument 34 | /// to the members of a collection, succeeding if 35 | /// they all succeed. 36 | /// 37 | public override Constraint ApplyPrefix(Constraint constraint) 38 | { 39 | return new AllItemsConstraint(constraint); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/framework/Constraints/Operators/AndOperator.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2008 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints 25 | { 26 | /// 27 | /// Operator that requires both it's arguments to succeed 28 | /// 29 | public class AndOperator : BinaryOperator 30 | { 31 | /// 32 | /// Construct an AndOperator 33 | /// 34 | public AndOperator() 35 | { 36 | this.left_precedence = this.right_precedence = 2; 37 | } 38 | 39 | /// 40 | /// Apply the operator to produce an AndConstraint 41 | /// 42 | public override Constraint ApplyOperator(Constraint left, Constraint right) 43 | { 44 | return new AndConstraint(left, right); 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /src/framework/Constraints/Operators/CollectionOperator.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2008 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints 25 | { 26 | /// 27 | /// Abstract base for operators that indicate how to 28 | /// apply a constraint to items in a collection. 29 | /// 30 | public abstract class CollectionOperator : PrefixOperator 31 | { 32 | /// 33 | /// Constructs a CollectionOperator 34 | /// 35 | protected CollectionOperator() 36 | { 37 | // Collection Operators stack on everything 38 | // and allow all other ops to stack on them 39 | this.left_precedence = 1; 40 | this.right_precedence = 10; 41 | } 42 | } 43 | } -------------------------------------------------------------------------------- /src/framework/Constraints/Operators/NoneOperator.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2008 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints 25 | { 26 | /// 27 | /// Represents a constraint that succeeds if none of the 28 | /// members of a collection match a base constraint. 29 | /// 30 | public class NoneOperator : CollectionOperator 31 | { 32 | /// 33 | /// Returns a constraint that will apply the argument 34 | /// to the members of a collection, succeeding if 35 | /// none of them succeed. 36 | /// 37 | public override Constraint ApplyPrefix(Constraint constraint) 38 | { 39 | return new NoItemConstraint(constraint); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/framework/Constraints/Operators/NotOperator.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2008 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints 25 | { 26 | /// 27 | /// Negates the test of the constraint it wraps. 28 | /// 29 | public class NotOperator : PrefixOperator 30 | { 31 | /// 32 | /// Constructs a new NotOperator 33 | /// 34 | public NotOperator() 35 | { 36 | // Not stacks on anything and only allows other 37 | // prefix ops to stack on top of it. 38 | this.left_precedence = this.right_precedence = 1; 39 | } 40 | 41 | /// 42 | /// Returns a NotConstraint applied to its argument. 43 | /// 44 | public override Constraint ApplyPrefix(Constraint constraint) 45 | { 46 | return new NotConstraint(constraint); 47 | } 48 | } 49 | } -------------------------------------------------------------------------------- /src/framework/Constraints/Operators/OrOperator.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2008 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints 25 | { 26 | /// 27 | /// Operator that requires at least one of it's arguments to succeed 28 | /// 29 | public class OrOperator : BinaryOperator 30 | { 31 | /// 32 | /// Construct an OrOperator 33 | /// 34 | public OrOperator() 35 | { 36 | this.left_precedence = this.right_precedence = 3; 37 | } 38 | 39 | /// 40 | /// Apply the operator to produce an OrConstraint 41 | /// 42 | public override Constraint ApplyOperator(Constraint left, Constraint right) 43 | { 44 | return new OrConstraint(left, right); 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /src/framework/Constraints/Operators/SelfResolvingOperator.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2008 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints 25 | { 26 | /// 27 | /// Abstract base class for operators that are able to reduce to a 28 | /// constraint whether or not another syntactic element follows. 29 | /// 30 | public abstract class SelfResolvingOperator : ConstraintOperator 31 | { 32 | } 33 | } -------------------------------------------------------------------------------- /src/framework/Constraints/Operators/SomeOperator.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2008 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints 25 | { 26 | /// 27 | /// Represents a constraint that succeeds if any of the 28 | /// members of a collection match a base constraint. 29 | /// 30 | public class SomeOperator : CollectionOperator 31 | { 32 | /// 33 | /// Returns a constraint that will apply the argument 34 | /// to the members of a collection, succeeding if 35 | /// any of them succeed. 36 | /// 37 | public override Constraint ApplyPrefix(Constraint constraint) 38 | { 39 | return new SomeItemsConstraint(constraint); 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/framework/Constraints/Operators/WithOperator.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2008 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints 25 | { 26 | /// 27 | /// Represents a constraint that simply wraps the 28 | /// constraint provided as an argument, without any 29 | /// further functionality, but which modifes the 30 | /// order of evaluation because of its precedence. 31 | /// 32 | public class WithOperator : PrefixOperator 33 | { 34 | /// 35 | /// Constructor for the WithOperator 36 | /// 37 | public WithOperator() 38 | { 39 | this.left_precedence = 1; 40 | this.right_precedence = 4; 41 | } 42 | 43 | /// 44 | /// Returns a constraint that wraps its argument 45 | /// 46 | public override Constraint ApplyPrefix(Constraint constraint) 47 | { 48 | return constraint; 49 | } 50 | } 51 | } -------------------------------------------------------------------------------- /src/framework/Constraints/PrefixConstraint.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2007 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints 25 | { 26 | /// 27 | /// Abstract base class used for prefixes 28 | /// 29 | public abstract class PrefixConstraint : Constraint 30 | { 31 | /// 32 | /// The base constraint 33 | /// 34 | protected Constraint baseConstraint; 35 | 36 | /// 37 | /// Construct given a base constraint 38 | /// 39 | /// 40 | protected PrefixConstraint(IResolveConstraint resolvable) : base(resolvable) 41 | { 42 | if (resolvable != null) 43 | this.baseConstraint = resolvable.Resolve(); 44 | } 45 | } 46 | } -------------------------------------------------------------------------------- /src/framework/Constraints/TrueConstraint.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2008 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints 25 | { 26 | /// 27 | /// TrueConstraint tests that the actual value is true 28 | /// 29 | public class TrueConstraint : BasicConstraint 30 | { 31 | /// 32 | /// Initializes a new instance of the class. 33 | /// 34 | public TrueConstraint() : base(true, "True") { } 35 | } 36 | } -------------------------------------------------------------------------------- /src/framework/GlobalSettings.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2008 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | 26 | namespace NUnit.Framework 27 | { 28 | /// 29 | /// GlobalSettings is a place for setting default values used 30 | /// by the framework in performing asserts. 31 | /// 32 | public class GlobalSettings 33 | { 34 | /// 35 | /// Default tolerance for floating point equality 36 | /// 37 | public static double DefaultFloatingPointTolerance = 0.0d; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/framework/Guard.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace NUnit.Framework 4 | { 5 | /// 6 | /// Class used to guard against unexpected argument values 7 | /// by throwing an appropriate exception. 8 | /// 9 | public class Guard 10 | { 11 | /// 12 | /// Throws an exception if an argument is null 13 | /// 14 | /// The value to be tested 15 | /// The name of the argument 16 | public static void ArgumentNotNull(object value, string name) 17 | { 18 | if (value == null) 19 | throw new ArgumentNullException("Argument " + name + " must not be null", name); 20 | } 21 | 22 | /// 23 | /// Throws an exception if a string argument is null or empty 24 | /// 25 | /// The value to be tested 26 | /// The name of the argument 27 | public static void ArgumentNotNullOrEmpty(string value, string name) 28 | { 29 | ArgumentNotNull(value, name); 30 | 31 | if (value == string.Empty) 32 | throw new ArgumentException("Argument " + name +" must not be the empty string", name); 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/framework/GuiUnit.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GuiUnit_NET_4_5", "GuiUnit_NET_4_5.csproj", "{D12F0F7B-8DE3-43EC-BA49-41052D065A9B}" 5 | EndProject 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GuiUnit_NET_4_0", "GuiUnit_NET_4_0.csproj", "{E13A0A7B-4DE6-43ED-A139-41052D065A9B}" 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 | {D12F0F7B-8DE3-43EC-BA49-41052D065A9B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {D12F0F7B-8DE3-43EC-BA49-41052D065A9B}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {D12F0F7B-8DE3-43EC-BA49-41052D065A9B}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {D12F0F7B-8DE3-43EC-BA49-41052D065A9B}.Release|Any CPU.Build.0 = Release|Any CPU 18 | {E13A0A7B-4DE6-43ED-A139-41052D065A9B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 19 | {E13A0A7B-4DE6-43ED-A139-41052D065A9B}.Debug|Any CPU.Build.0 = Debug|Any CPU 20 | {E13A0A7B-4DE6-43ED-A139-41052D065A9B}.Release|Any CPU.ActiveCfg = Release|Any CPU 21 | {E13A0A7B-4DE6-43ED-A139-41052D065A9B}.Release|Any CPU.Build.0 = Release|Any CPU 22 | EndGlobalSection 23 | GlobalSection(MonoDevelopProperties) = preSolution 24 | StartupItem = GuiUnit_NET_4_5.csproj 25 | EndGlobalSection 26 | EndGlobal 27 | -------------------------------------------------------------------------------- /src/framework/GuiUnit/IMainLoopIntegration.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace GuiUnit 4 | { 5 | public interface IMainLoopIntegration 6 | { 7 | void InitializeToolkit (); 8 | void InvokeOnMainLoop (InvokerHelper helper); 9 | void RunMainLoop (); 10 | void Shutdown (int exitCode); 11 | } 12 | } 13 | 14 | -------------------------------------------------------------------------------- /src/framework/GuiUnit/InvokerHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using NUnit.Framework.Internal; 3 | 4 | namespace GuiUnit 5 | { 6 | public class InvokerHelper 7 | { 8 | internal object Result; 9 | internal Func Func; 10 | internal Exception ex; 11 | internal TestExecutionContext Context; 12 | internal System.Threading.ManualResetEvent Waiter = new System.Threading.ManualResetEvent(false); 13 | 14 | public void Invoke () 15 | { 16 | TestExecutionContext.SetCurrentContext (Context); 17 | try { 18 | Result = Func (); 19 | } catch (Exception e) { 20 | ex = e; 21 | } finally { 22 | Waiter.Set (); 23 | } 24 | } 25 | } 26 | } 27 | 28 | -------------------------------------------------------------------------------- /src/framework/GuiUnit/MainLoopCommand.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/framework/GuiUnit/MainLoopCommand.cs -------------------------------------------------------------------------------- /src/framework/IExpectException.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2007 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | 26 | namespace NUnit.Framework 27 | { 28 | /// 29 | /// Interface implemented by a user fixture in order to 30 | /// validate any expected exceptions. It is only called 31 | /// for test methods marked with the ExpectedException 32 | /// attribute. 33 | /// 34 | public interface IExpectException 35 | { 36 | /// 37 | /// Method to handle an expected exception 38 | /// 39 | /// The exception to be handled 40 | void HandleException(Exception ex); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/framework/Info.plist: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | CFBundleDisplayName 6 | GuiUnit 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | com.xamarin.guiunit 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | guiunit 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSMinimumSystemVersion 26 | 10.9 27 | NSHumanReadableCopyright 28 | (C) Xamarin 2015 29 | NSMainNibFile 30 | MainMenu 31 | NSPrincipalClass 32 | NSApplication 33 | 34 | 35 | -------------------------------------------------------------------------------- /src/framework/Internal/Commands/CommandDecoratorList.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using NUnit.Framework.Api; 3 | 4 | namespace NUnit.Framework.Internal.Commands 5 | { 6 | /// 7 | /// CommandDecoratorList maintains a list of ICommandDecorators 8 | /// and is able to sort them by level so that they are applied 9 | /// in the proper order. 10 | /// 11 | #if CLR_2_0 || CLR_4_0 12 | public class CommandDecoratorList : System.Collections.Generic.List 13 | #else 14 | public class CommandDecoratorList : System.Collections.ArrayList 15 | #endif 16 | { 17 | /// 18 | /// Order command decorators by the stage at which they apply. 19 | /// 20 | public void OrderByStage() 21 | { 22 | Sort(CommandDecoratorComparison); 23 | } 24 | 25 | #if CLR_2_0 || CLR_4_0 26 | private int CommandDecoratorComparison(ICommandDecorator x, ICommandDecorator y) 27 | { 28 | return x.Stage.CompareTo(y.Stage); 29 | } 30 | #else 31 | private CommandDecoratorComparer CommandDecoratorComparison = new CommandDecoratorComparer(); 32 | 33 | private class CommandDecoratorComparer : System.Collections.IComparer 34 | { 35 | public int Compare(object x, object y) 36 | { 37 | ICommandDecorator xDecorator = x as ICommandDecorator; 38 | ICommandDecorator yDecorator = y as ICommandDecorator; 39 | 40 | if (xDecorator == null || yDecorator == null) 41 | return 0; 42 | 43 | return xDecorator.Stage.CompareTo(yDecorator.Stage); 44 | } 45 | } 46 | #endif 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/framework/Internal/Commands/DelegatingTestCommand.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2010 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using NUnit.Framework.Api; 25 | 26 | namespace NUnit.Framework.Internal.Commands 27 | { 28 | /// 29 | /// TODO: Documentation needed for class 30 | /// 31 | public abstract class DelegatingTestCommand : TestCommand 32 | { 33 | /// TODO: Documentation needed for field 34 | protected TestCommand innerCommand; 35 | 36 | /// 37 | /// TODO: Documentation needed for constructor 38 | /// 39 | /// 40 | protected DelegatingTestCommand(TestCommand innerCommand) 41 | : base(innerCommand.Test) 42 | { 43 | this.innerCommand = innerCommand; 44 | } 45 | } 46 | } -------------------------------------------------------------------------------- /src/framework/Internal/Filters/SimpleCategoryExpression.cs: -------------------------------------------------------------------------------- 1 | namespace NUnit.Framework.Internal.Filters 2 | { 3 | /// 4 | /// SimpleCategoryFilter parses a basic string representing a 5 | /// single category or a list of categories separated by commas 6 | /// 7 | public class SimpleCategoryExpression 8 | { 9 | private string text; 10 | 11 | private TestFilter filter; 12 | 13 | /// 14 | /// Construct category filter from a text string 15 | /// 16 | /// A list of categories to parse 17 | public SimpleCategoryExpression(string text) 18 | { 19 | this.text = text; 20 | } 21 | 22 | /// 23 | /// Gets the TestFilter represented by the expression 24 | /// 25 | public TestFilter Filter 26 | { 27 | get 28 | { 29 | if (filter == null) 30 | { 31 | filter = GetCategories(); 32 | } 33 | return filter; 34 | } 35 | } 36 | 37 | private TestFilter GetCategories() 38 | { 39 | string[] categories = text.Split(','); 40 | return new CategoryFilter(categories); 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/framework/Internal/IApplyToContext.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2012 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Internal 25 | { 26 | /// 27 | /// The IApplyToContext interface is implemented by attributes 28 | /// that want to make changes to the execution context before 29 | /// a test is run. 30 | /// 31 | public interface IApplyToContext 32 | { 33 | /// 34 | /// Apply changes to the execution context 35 | /// 36 | /// The execution context 37 | void ApplyToContext(TestExecutionContext context); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/framework/Internal/IApplyToTest.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2010 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using NUnit.Framework.Api; 25 | 26 | namespace NUnit.Framework.Internal 27 | { 28 | /// 29 | /// The IApplyToTest interface is implemented by self-applying 30 | /// attributes that modify the state of a test in some way. 31 | /// 32 | public interface IApplyToTest 33 | { 34 | /// 35 | /// Modifies a test as defined for the specific attribute. 36 | /// 37 | /// The test to modify 38 | void ApplyToTest(Test test); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/framework/Internal/Results/TestCaseResult.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using NUnit.Framework.Api; 3 | 4 | namespace NUnit.Framework.Internal 5 | { 6 | /// 7 | /// Represents the result of running a single test case. 8 | /// 9 | public class TestCaseResult : TestResult 10 | { 11 | /// 12 | /// Construct a TestCaseResult based on a TestMethod 13 | /// 14 | /// A TestMethod to which the result applies. 15 | public TestCaseResult(TestMethod test) : base(test) { } 16 | 17 | /// 18 | /// Gets the number of test cases that failed 19 | /// when running the test and all its children. 20 | /// 21 | public override int FailCount 22 | { 23 | get { return ResultState.Status == TestStatus.Failed ? 1 : 0; } 24 | } 25 | 26 | /// 27 | /// Gets the number of test cases that passed 28 | /// when running the test and all its children. 29 | /// 30 | public override int PassCount 31 | { 32 | get { return ResultState.Status == TestStatus.Passed ? 1 : 0; } 33 | } 34 | 35 | /// 36 | /// Gets the number of test cases that were skipped 37 | /// when running the test and all its children. 38 | /// 39 | public override int SkipCount 40 | { 41 | get { return ResultState.Status == TestStatus.Skipped ? 1 : 0; } 42 | } 43 | 44 | /// 45 | /// Gets the number of test cases that were inconclusive 46 | /// when running the test and all its children. 47 | /// 48 | public override int InconclusiveCount 49 | { 50 | get { return ResultState.Status == TestStatus.Inconclusive ? 1 : 0; } 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/framework/Internal/StackFilter.cs: -------------------------------------------------------------------------------- 1 | // ***************************************************** 2 | // Copyright 2007, Charlie Poole 3 | // 4 | // Licensed under the Open Software License version 3.0 5 | // ***************************************************** 6 | 7 | using System; 8 | using System.IO; 9 | 10 | namespace NUnit.Framework.Internal 11 | { 12 | /// 13 | /// StackFilter class is used to remove internal NUnit 14 | /// entries from a stack trace so that the resulting 15 | /// trace provides better information about the test. 16 | /// 17 | public class StackFilter 18 | { 19 | /// 20 | /// Filters a raw stack trace and returns the result. 21 | /// 22 | /// The original stack trace 23 | /// A filtered stack trace 24 | public static string Filter(string rawTrace) 25 | { 26 | if (rawTrace == null) return null; 27 | 28 | StringReader sr = new StringReader(rawTrace); 29 | StringWriter sw = new StringWriter(); 30 | 31 | try 32 | { 33 | string line; 34 | while ((line = sr.ReadLine()) != null && line.IndexOf("NUnit.Framework.Assert") >= 0) 35 | /*Skip*/ 36 | ; 37 | 38 | while (line != null) 39 | { 40 | sw.WriteLine(line); 41 | line = sr.ReadLine(); 42 | } 43 | } 44 | catch (Exception) 45 | { 46 | return rawTrace; 47 | } 48 | 49 | return sw.ToString(); 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/framework/Internal/StringUtil.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace NUnit.Framework.Internal 4 | { 5 | /// 6 | /// Provides methods to support legacy string comparison methods. 7 | /// 8 | public class StringUtil 9 | { 10 | /// 11 | /// Compares two strings for equality, ignoring case if requested. 12 | /// 13 | /// The first string. 14 | /// The second string.. 15 | /// if set to true, the case of the letters in the strings is ignored. 16 | /// Zero if the strings are equivalent, a negative number if strA is sorted first, a positive number if 17 | /// strB is sorted first 18 | public static int Compare(string strA, string strB, bool ignoreCase) 19 | { 20 | #if SILVERLIGHT 21 | StringComparison comparison = ignoreCase ? StringComparison.InvariantCultureIgnoreCase : StringComparison.InvariantCulture; 22 | return string.Compare(strA, strB, comparison); 23 | #else 24 | return string.Compare(strA, strB, ignoreCase); 25 | #endif 26 | } 27 | 28 | /// 29 | /// Compares two strings for equality, ignoring case if requested. 30 | /// 31 | /// The first string. 32 | /// The second string.. 33 | /// if set to true, the case of the letters in the strings is ignored. 34 | /// True if the strings are equivalent, false if not. 35 | public static bool StringsEqual(string strA, string strB, bool ignoreCase) 36 | { 37 | return Compare(strA, strB, ignoreCase) == 0; 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/framework/Internal/WorkItems/WorkItemState.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2012 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Internal.WorkItems 25 | { 26 | /// 27 | /// The current state of a work item 28 | /// 29 | public enum WorkItemState 30 | { 31 | /// 32 | /// Ready to run or continue 33 | /// 34 | Ready, 35 | 36 | /// 37 | /// Waiting for a dependency to complete 38 | /// 39 | Waiting, 40 | 41 | /// 42 | /// Complete 43 | /// 44 | Complete 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/framework/Iz.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2007 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | 26 | namespace NUnit.Framework 27 | { 28 | /// 29 | /// The Iz class is a synonym for Is intended for use in VB, 30 | /// which regards Is as a keyword. 31 | /// 32 | public class Iz : Is 33 | { 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/framework/MessageMatch.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2009 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework 25 | { 26 | /// 27 | /// Enumeration indicating how the expected message parameter is to be used 28 | /// 29 | public enum MessageMatch 30 | { 31 | /// Expect an exact match 32 | Exact, 33 | /// Expect a message containing the parameter string 34 | Contains, 35 | /// Match the regular expression provided as a parameter 36 | Regex, 37 | /// Expect a message that starts with the parameter string 38 | StartsWith 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/framework/SpecialValue.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2009 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | 26 | namespace NUnit.Framework 27 | { 28 | /// 29 | /// The SpecialValue enum is used to represent TestCase arguments 30 | /// that cannot be used as arguments to an Attribute. 31 | /// 32 | public enum SpecialValue 33 | { 34 | /// 35 | /// Null represents a null value, which cannot be used as an 36 | /// argument to an attribute under .NET 1.x 37 | /// 38 | Null 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/framework/guiunit.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/framework/guiunit.snk -------------------------------------------------------------------------------- /src/framework/obj/Debug/net-4.5/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/framework/obj/Debug/net-4.5/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /src/framework/obj/Debug/net-4.5/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/framework/obj/Debug/net-4.5/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /src/framework/obj/Debug/net-4.5/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/framework/obj/Debug/net-4.5/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /src/framework/obj/Debug/sl-3.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/framework/obj/Debug/sl-3.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /src/framework/obj/Debug/sl-3.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/framework/obj/Debug/sl-3.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /src/framework/obj/Debug/sl-3.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/framework/obj/Debug/sl-3.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /src/framework/obj/Debug/sl-5.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/framework/obj/Debug/sl-5.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /src/framework/obj/Debug/sl-5.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/framework/obj/Debug/sl-5.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /src/framework/obj/Debug/sl-5.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/framework/obj/Debug/sl-5.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /src/framework/obj/release/sl-3.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/framework/obj/release/sl-3.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /src/framework/obj/release/sl-3.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/framework/obj/release/sl-3.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /src/framework/obj/release/sl-3.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/framework/obj/release/sl-3.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /src/framework/obj/release/sl-5.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/framework/obj/release/sl-5.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /src/framework/obj/release/sl-5.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/framework/obj/release/sl-5.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /src/framework/obj/release/sl-5.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/framework/obj/release/sl-5.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /src/mock-assembly/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("mock-assembly")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("mock-assembly")] 13 | [assembly: AssemblyCopyright("Copyright © 2012")] 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("e33f0417-0b18-4d8c-9142-6ac47cd6c29a")] 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 | #if !PocketPC && !WindowsCE && !NETCF 37 | [assembly: AssemblyFileVersion("1.0.0.0")] 38 | #endif 39 | -------------------------------------------------------------------------------- /src/mock-assembly/mock-assembly.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /src/mock-assembly/obj/Debug/net-4.5/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/mock-assembly/obj/Debug/net-4.5/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /src/mock-assembly/obj/Debug/net-4.5/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/mock-assembly/obj/Debug/net-4.5/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /src/mock-assembly/obj/Debug/net-4.5/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/mock-assembly/obj/Debug/net-4.5/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /src/mock-assembly/obj/Debug/sl-3.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/mock-assembly/obj/Debug/sl-3.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /src/mock-assembly/obj/Debug/sl-3.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/mock-assembly/obj/Debug/sl-3.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /src/mock-assembly/obj/Debug/sl-3.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/mock-assembly/obj/Debug/sl-3.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /src/mock-assembly/obj/Debug/sl-5.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/mock-assembly/obj/Debug/sl-5.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /src/mock-assembly/obj/Debug/sl-5.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/mock-assembly/obj/Debug/sl-5.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /src/mock-assembly/obj/Debug/sl-5.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/mock-assembly/obj/Debug/sl-5.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /src/mock-assembly/obj/release/sl-3.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/mock-assembly/obj/release/sl-3.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /src/mock-assembly/obj/release/sl-3.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/mock-assembly/obj/release/sl-3.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /src/mock-assembly/obj/release/sl-3.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/mock-assembly/obj/release/sl-3.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /src/mock-assembly/obj/release/sl-5.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/mock-assembly/obj/release/sl-5.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /src/mock-assembly/obj/release/sl-5.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/mock-assembly/obj/release/sl-5.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /src/mock-assembly/obj/release/sl-5.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/mock-assembly/obj/release/sl-5.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /src/testdata/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // ***************************************************** 2 | // Copyright 2007, Charlie Poole 3 | // 4 | // Licensed under the Open Software License version 3.0 5 | // ***************************************************** 6 | 7 | using System.Reflection; 8 | using System.Runtime.CompilerServices; 9 | using System.Runtime.InteropServices; 10 | 11 | // General Information about an assembly is controlled through the following 12 | // set of attributes. Change these attribute values to modify the information 13 | // associated with an assembly. 14 | [assembly: AssemblyTitle("NUnitLite Test Data")] 15 | [assembly: AssemblyDescription("Data for the tests of the NUnitLite testing framework")] 16 | [assembly: AssemblyConfiguration("")] 17 | [assembly: AssemblyCompany("")] 18 | [assembly: AssemblyProduct("NUnitLite")] 19 | [assembly: AssemblyCopyright("Copyright © 2007-2012, Charlie Poole")] 20 | [assembly: AssemblyTrademark("")] 21 | [assembly: AssemblyCulture("")] 22 | 23 | // Setting ComVisible to false makes the types in this assembly not visible 24 | // to COM components. If you need to access a type in this assembly from 25 | // COM, set the ComVisible attribute to true on that type. 26 | [assembly: ComVisible(false)] 27 | 28 | // Version information for an assembly consists of the following four values: 29 | // 30 | // Major Version 31 | // Minor Version 32 | // Build Number 33 | // Revision 34 | // 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | #if !PocketPC && !WindowsCE && !NETCF 37 | [assembly: AssemblyFileVersion("1.0.0.0")] 38 | #endif 39 | 40 | // Under Silverlight, it's only possible to reflect 41 | // over members that would be accessible normally. 42 | #if SILVERLIGHT 43 | [assembly: InternalsVisibleTo("nunitlite")] 44 | #endif -------------------------------------------------------------------------------- /src/testdata/AssertCountFixture.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2012 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using NUnit.Framework; 25 | 26 | namespace NUnit.TestData 27 | { 28 | [TestFixture] 29 | public class AssertCountFixture 30 | { 31 | public static readonly int ExpectedAssertCount = 5; 32 | 33 | [Test] 34 | public void BooleanAssert() 35 | { 36 | Assert.That(2 + 2 == 4); 37 | } 38 | [Test] 39 | public void ConstraintAssert() 40 | { 41 | Assert.That(2 + 2, Is.EqualTo(4)); 42 | } 43 | [Test] 44 | public void ThreeAsserts() 45 | { 46 | Assert.That(2 + 2 == 4); 47 | Assert.That(2 + 2, Is.EqualTo(4)); 48 | Assert.That(2 + 2, Is.EqualTo(5)); 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/testdata/AssertFailFixture.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2007 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | using NUnit.Framework; 26 | 27 | namespace NUnit.TestData.AssertFailFixture 28 | { 29 | [TestFixture] 30 | public class AssertFailFixture 31 | { 32 | [Test] 33 | public void CallAssertFail() 34 | { 35 | Assert.Fail(); 36 | } 37 | 38 | [Test] 39 | public void CallAssertFailWithMessage() 40 | { 41 | Assert.Fail("MESSAGE"); 42 | } 43 | 44 | [Test] 45 | public void CallAssertFailWithMessageAndArgs() 46 | { 47 | Assert.Fail("MESSAGE: {0}+{1}={2}", 2, 2, 4); 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/testdata/CultureAttributeData.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2007 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | using NUnit.Framework; 26 | 27 | namespace NUnit.TestData.CultureAttributeData 28 | { 29 | [TestFixture, Culture( "en,fr,de" )] 30 | public class FixtureWithCultureAttribute 31 | { 32 | [Test, Culture("en,de")] 33 | public void EnglishAndGermanTest() { } 34 | 35 | [Test, Culture("fr")] 36 | public void FrenchTest() { } 37 | 38 | [Test, Culture("fr-CA")] 39 | public void FrenchCanadaTest() { } 40 | } 41 | 42 | #if !NETCF 43 | [TestFixture, SetCulture("xx-XX")] 44 | public class FixtureWithInvalidSetCultureAttribute 45 | { 46 | [Test] 47 | public void SomeTest() { } 48 | } 49 | 50 | [TestFixture] 51 | public class FixtureWithInvalidSetCultureAttributeOnTest 52 | { 53 | [Test, SetCulture("xx-XX")] 54 | public void InvalidCultureSet() { } 55 | } 56 | #endif 57 | } -------------------------------------------------------------------------------- /src/testdata/DescriptionFixture.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2007 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | using NUnit.Framework; 26 | 27 | namespace NUnit.TestData.DescriptionFixture 28 | { 29 | [TestFixture(Description = "Fixture Description")] 30 | public class DescriptionFixture 31 | { 32 | [Test(Description = "Test Description")] 33 | public void Method() 34 | {} 35 | 36 | [Test] 37 | public void NoDescriptionMethod() 38 | {} 39 | 40 | [Test] 41 | [Description("Separate Description")] 42 | public void SeparateDescriptionMethod() 43 | { } 44 | 45 | [Test, Description("method description")] 46 | [TestCase(5, Description = "case description")] 47 | public void TestCaseWithDescription(int x) 48 | { } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/testdata/ParameterizedTestFixture.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2009 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | using NUnit.Framework; 26 | 27 | namespace NUnit.TestData 28 | { 29 | [TestFixture(1)] 30 | [TestFixture(2)] 31 | public class ParameterizedTestFixture 32 | { 33 | [Test] 34 | public void MethodWithoutParams() 35 | { 36 | } 37 | 38 | [TestCase(10,20)] 39 | public void MethodWithParams(int x, int y) 40 | { 41 | } 42 | } 43 | 44 | [TestFixture(Category = "XYZ")] 45 | public class TestFixtureWithSingleCategory 46 | { 47 | } 48 | 49 | [TestFixture(Category = "X,Y,Z")] 50 | public class TestFixtureWithMultipleCategories 51 | { 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/testdata/PropertyAttributeTests.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2007 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | using NUnit.Framework; 26 | 27 | namespace NUnit.TestData.PropertyAttributeTests 28 | { 29 | [TestFixture, Property("ClassUnderTest","SomeClass" )] 30 | public class FixtureWithProperties 31 | { 32 | [Test, Property("user","Charlie")] 33 | public void Test1() { } 34 | 35 | [Test, Property("X",10.0), Property("Y",17.0)] 36 | public void Test2() { } 37 | 38 | [Test, Priority(5)] 39 | public void Test3() { } 40 | } 41 | 42 | [AttributeUsage(AttributeTargets.Method, AllowMultiple=false)] 43 | public class PriorityAttribute : PropertyAttribute 44 | { 45 | public PriorityAttribute( int level ) : base( level ) { } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/testdata/TestContextData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using NUnit.Framework; 3 | 4 | namespace NUnit.TestData.TestContextData 5 | { 6 | [TestFixture] 7 | public class TestStateRecordingFixture 8 | { 9 | public string stateList; 10 | 11 | public bool testFailure; 12 | public bool testInconclusive; 13 | public bool setUpFailure; 14 | public bool setUpIgnore; 15 | 16 | [SetUp] 17 | public void SetUp() 18 | { 19 | stateList = TestContext.CurrentContext.Result.Outcome + "=>"; 20 | 21 | if (setUpFailure) 22 | Assert.Fail("Failure in SetUp"); 23 | if (setUpIgnore) 24 | Assert.Ignore("Ignored in SetUp"); 25 | } 26 | 27 | [Test] 28 | public void TheTest() 29 | { 30 | stateList += TestContext.CurrentContext.Result.Outcome; 31 | 32 | if (testFailure) 33 | Assert.Fail("Deliberate failure"); 34 | if (testInconclusive) 35 | Assert.Inconclusive("Inconclusive test"); 36 | } 37 | 38 | [TearDown] 39 | public void TearDown() 40 | { 41 | stateList += "=>" + TestContext.CurrentContext.Result.Outcome; 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/testdata/nunitlite.testdata.build: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /src/testdata/obj/Debug/net-4.5/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/testdata/obj/Debug/net-4.5/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /src/testdata/obj/Debug/net-4.5/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/testdata/obj/Debug/net-4.5/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /src/testdata/obj/Debug/net-4.5/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/testdata/obj/Debug/net-4.5/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /src/testdata/obj/Debug/sl-3.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/testdata/obj/Debug/sl-3.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /src/testdata/obj/Debug/sl-3.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/testdata/obj/Debug/sl-3.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /src/testdata/obj/Debug/sl-3.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/testdata/obj/Debug/sl-3.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /src/testdata/obj/Debug/sl-5.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/testdata/obj/Debug/sl-5.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /src/testdata/obj/Debug/sl-5.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/testdata/obj/Debug/sl-5.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /src/testdata/obj/Debug/sl-5.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/testdata/obj/Debug/sl-5.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /src/testdata/obj/release/sl-3.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/testdata/obj/release/sl-3.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /src/testdata/obj/release/sl-3.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/testdata/obj/release/sl-3.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /src/testdata/obj/release/sl-3.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/testdata/obj/release/sl-3.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /src/testdata/obj/release/sl-5.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/testdata/obj/release/sl-5.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /src/testdata/obj/release/sl-5.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/testdata/obj/release/sl-5.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /src/testdata/obj/release/sl-5.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/testdata/obj/release/sl-5.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /src/tests/App.g.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "D:\Dev\NUnit\nunitlite\silverlight\src\tests\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "7F705B1DDE1B06450160A1EECA2F6007" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // This code was generated by a tool. 5 | // Runtime Version:4.0.30319.17626 6 | // 7 | // Changes to this file may cause incorrect behavior and will be lost if 8 | // the code is regenerated. 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using System; 13 | using System.Windows; 14 | using System.Windows.Automation; 15 | using System.Windows.Automation.Peers; 16 | using System.Windows.Automation.Provider; 17 | using System.Windows.Controls; 18 | using System.Windows.Controls.Primitives; 19 | using System.Windows.Data; 20 | using System.Windows.Documents; 21 | using System.Windows.Ink; 22 | using System.Windows.Input; 23 | using System.Windows.Interop; 24 | using System.Windows.Markup; 25 | using System.Windows.Media; 26 | using System.Windows.Media.Animation; 27 | using System.Windows.Media.Imaging; 28 | using System.Windows.Resources; 29 | using System.Windows.Shapes; 30 | using System.Windows.Threading; 31 | 32 | 33 | namespace NUnitLite.Tests { 34 | 35 | 36 | public partial class App : System.Windows.Application { 37 | 38 | private bool _contentLoaded; 39 | 40 | /// 41 | /// InitializeComponent 42 | /// 43 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 44 | public void InitializeComponent() { 45 | if (_contentLoaded) { 46 | return; 47 | } 48 | _contentLoaded = true; 49 | System.Windows.Application.LoadComponent(this, new System.Uri("/nunitlite.tests;component/App.xaml", System.UriKind.Relative)); 50 | } 51 | } 52 | } 53 | 54 | -------------------------------------------------------------------------------- /src/tests/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | // ***************************************************** 2 | // Copyright 2007, Charlie Poole 3 | // 4 | // Licensed under the Open Software License version 3.0 5 | // ***************************************************** 6 | 7 | using System.Reflection; 8 | using System.Runtime.CompilerServices; 9 | using System.Runtime.InteropServices; 10 | 11 | // General Information about an assembly is controlled through the following 12 | // set of attributes. Change these attribute values to modify the information 13 | // associated with an assembly. 14 | [assembly: AssemblyTitle("NUnitLiteTests")] 15 | [assembly: AssemblyDescription("Tests of the NUnitLite testing framework")] 16 | [assembly: AssemblyConfiguration("")] 17 | [assembly: AssemblyCompany("")] 18 | [assembly: AssemblyProduct("NUnitLite")] 19 | [assembly: AssemblyCopyright("Copyright © 2007, Charlie Poole")] 20 | [assembly: AssemblyTrademark("")] 21 | [assembly: AssemblyCulture("")] 22 | 23 | // Setting ComVisible to false makes the types in this assembly not visible 24 | // to COM components. If you need to access a type in this assembly from 25 | // COM, set the ComVisible attribute to true on that type. 26 | [assembly: ComVisible(false)] 27 | 28 | // The following GUID is for the ID of the typelib if this project is exposed to COM 29 | [assembly: Guid("e7a2d0a1-69b5-40a6-bbfa-4c2e77335d8d")] 30 | 31 | // Version information for an assembly consists of the following four values: 32 | // 33 | // Major Version 34 | // Minor Version 35 | // Build Number 36 | // Revision 37 | // 38 | [assembly: AssemblyVersion("1.0.0.0")] 39 | #if !PocketPC && !WindowsCE && !NETCF 40 | [assembly: AssemblyFileVersion("1.0.0.0")] 41 | #endif 42 | 43 | // Under Silverlight, it's only possible to reflect 44 | // over members that would be accessible normally. 45 | #if SILVERLIGHT 46 | [assembly: InternalsVisibleTo("nunitlite")] 47 | #endif -------------------------------------------------------------------------------- /src/tests/Assertions/AssertInconclusiveTests.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2009 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | 26 | namespace NUnit.Framework.Assertions 27 | { 28 | [TestFixture] 29 | public class AssertInconclusiveTests 30 | { 31 | [Test, ExpectedException(typeof(InconclusiveException))] 32 | public void ThrowsInconclusiveException() 33 | { 34 | Assert.Inconclusive(); 35 | } 36 | 37 | [Test, ExpectedException(typeof(InconclusiveException), ExpectedMessage = "MESSAGE")] 38 | public void ThrowsInconclusiveExceptionWithMessage() 39 | { 40 | Assert.Inconclusive("MESSAGE"); 41 | } 42 | 43 | [Test, ExpectedException(typeof(InconclusiveException), ExpectedMessage = "MESSAGE: 2+2=4")] 44 | public void ThrowsInconclusiveExceptionWithMessageAndArgs() 45 | { 46 | Assert.Inconclusive("MESSAGE: {0}+{1}={2}", 2, 2, 4); 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/tests/Assertions/CollectionTests.cs: -------------------------------------------------------------------------------- 1 | // ***************************************************** 2 | // Copyright 2007, Charlie Poole 3 | // 4 | // Licensed under the Open Software License version 3.0 5 | // ***************************************************** 6 | 7 | using System; 8 | using System.Collections; 9 | using NUnit.Framework; 10 | using NUnit.Framework.Internal; 11 | using Env = NUnit.Env; 12 | using NUnit.TestUtilities; 13 | 14 | namespace NUnitLite.Tests 15 | { 16 | [TestFixture] 17 | class CollectionTests : IExpectException 18 | { 19 | [Test] 20 | public void CanMatchTwoCollections() 21 | { 22 | ICollection expected = new SimpleObjectCollection(1, 2, 3); 23 | ICollection actual = new SimpleObjectCollection(1, 2, 3); 24 | 25 | Assert.That(actual, Is.EqualTo(expected)); 26 | } 27 | 28 | [Test] 29 | public void CanMatchAnArrayWithACollection() 30 | { 31 | ICollection collection = new SimpleObjectCollection(1, 2, 3); 32 | int[] array = new int[] { 1, 2, 3 }; 33 | 34 | Assert.That(collection, Is.EqualTo(array)); 35 | Assert.That(array, Is.EqualTo(collection)); 36 | } 37 | 38 | [Test, ExpectedException(typeof(AssertionException))] 39 | public void FailureMatchingArrayAndCollection() 40 | { 41 | int[] expected = new int[] { 1, 2, 3 }; 42 | ICollection actual = new SimpleObjectCollection(1, 5, 3); 43 | 44 | Assert.That(actual, Is.EqualTo(expected)); 45 | } 46 | 47 | public void HandleException(Exception ex) 48 | { 49 | Assert.That(ex.Message, Is.EqualTo( 50 | " Expected is , actual is with 3 elements" + Env.NewLine + 51 | " Values differ at index [1]" + Env.NewLine + 52 | TextMessageWriter.Pfx_Expected + "2" + Env.NewLine + 53 | TextMessageWriter.Pfx_Actual + "5" + Env.NewLine)); 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/tests/Assertions/NotSameFixture.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2007 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | 26 | namespace NUnit.Framework.Assertions 27 | { 28 | [TestFixture] 29 | public class NotSameFixture : MessageChecker 30 | { 31 | private readonly string s1 = "S1"; 32 | private readonly string s2 = "S2"; 33 | 34 | [Test] 35 | public void NotSame() 36 | { 37 | Assert.AreNotSame(s1, s2); 38 | } 39 | 40 | [Test,ExpectedException(typeof(AssertionException))] 41 | public void NotSameFails() 42 | { 43 | expectedMessage = 44 | " Expected: not same as \"S1\"" + Env.NewLine + 45 | " But was: \"S1\"" + Env.NewLine; 46 | Assert.AreNotSame( s1, s1 ); 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/tests/Attributes/AttributeInheritanceTests.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2009 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | using NUnit.Framework.Internal; 26 | using NUnit.TestData.AttributeInheritanceData; 27 | using NUnit.TestUtilities; 28 | 29 | namespace NUnit.Framework.Tests 30 | { 31 | [TestFixture] 32 | public class AttributeInheritanceTests 33 | { 34 | [Test] 35 | public void InheritedFixtureAttributeIsRecognized() 36 | { 37 | Assert.That( TestBuilder.MakeFixture( typeof (When_collecting_test_fixtures) ) != null ); 38 | } 39 | 40 | [Test] 41 | public void InheritedTestAttributeIsRecognized() 42 | { 43 | Test fixture = TestBuilder.MakeFixture( typeof( When_collecting_test_fixtures ) ); 44 | Assert.AreEqual( 1, fixture.TestCaseCount ); 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/tests/Attributes/DatapointTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using NUnit.Framework.Api; 3 | using NUnit.Framework.Internal; 4 | using NUnit.TestData.DatapointFixture; 5 | using NUnit.TestUtilities; 6 | 7 | namespace NUnit.Framework.Attributes 8 | { 9 | public class DatapointTests 10 | { 11 | private void RunTestOnFixture(Type fixtureType) 12 | { 13 | TestResult result = TestBuilder.RunTestFixture(fixtureType); 14 | ResultSummary summary = new ResultSummary(result); 15 | Assert.That(summary.Passed, Is.EqualTo(2)); 16 | Assert.That(summary.Inconclusive, Is.EqualTo(3)); 17 | Assert.That(result.ResultState, Is.EqualTo(ResultState.Success)); 18 | } 19 | 20 | [Test] 21 | public void WorksOnField() 22 | { 23 | RunTestOnFixture(typeof(SquareRootTest_Field_Double)); 24 | } 25 | 26 | [Test] 27 | public void WorksOnArray() 28 | { 29 | RunTestOnFixture(typeof(SquareRootTest_Field_ArrayOfDouble)); 30 | } 31 | 32 | [Test] 33 | public void WorksOnPropertyReturningArray() 34 | { 35 | RunTestOnFixture(typeof(SquareRootTest_Property_ArrayOfDouble)); 36 | } 37 | 38 | [Test] 39 | public void WorksOnMethodReturningArray() 40 | { 41 | RunTestOnFixture(typeof(SquareRootTest_Method_ArrayOfDouble)); 42 | } 43 | 44 | #if CLR_2_0 || CLR_4_0 45 | [Test] 46 | public void WorksOnIEnumerableOfT() 47 | { 48 | RunTestOnFixture(typeof(SquareRootTest_Field_IEnumerableOfDouble)); 49 | } 50 | 51 | [Test] 52 | public void WorksOnPropertyReturningIEnumerableOfT() 53 | { 54 | RunTestOnFixture(typeof(SquareRootTest_Property_IEnumerableOfDouble)); 55 | } 56 | 57 | [Test] 58 | public void WorksOnMethodReturningIEnumerableOfT() 59 | { 60 | RunTestOnFixture(typeof(SquareRootTest_Method_IEnumerableOfDouble)); 61 | } 62 | 63 | [Test] 64 | public void WorksOnEnumeratorReturningIEnumerableOfT() 65 | { 66 | RunTestOnFixture(typeof(SquareRootTest_Iterator_IEnumerableOfDouble)); 67 | } 68 | #endif 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /src/tests/Constraints/AndConstraintTests.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2007 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints.Tests 25 | { 26 | [TestFixture] 27 | public class AndConstraintTests : ConstraintTestBase 28 | { 29 | [SetUp] 30 | public void SetUp() 31 | { 32 | theConstraint = new AndConstraint(new GreaterThanConstraint(40), new LessThanConstraint(50)); 33 | expectedDescription = "greater than 40 and less than 50"; 34 | stringRepresentation = " >"; 35 | } 36 | 37 | internal object[] SuccessData = new object[] { 42 }; 38 | 39 | internal object[] FailureData = new object[] { new object[] { 37, "37" }, new object[] { 53, "53" } }; 40 | 41 | [Test] 42 | public void CanCombineTestsWithAndOperator() 43 | { 44 | Assert.That(42, new GreaterThanConstraint(40) & new LessThanConstraint(50)); 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /src/tests/Constraints/AssignableFromConstraintTests.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2007 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints.Tests 25 | { 26 | [TestFixture] 27 | public class AssignableFromConstraintTests : ConstraintTestBase 28 | { 29 | [SetUp] 30 | public void SetUp() 31 | { 32 | theConstraint = new AssignableFromConstraint(typeof(D1)); 33 | expectedDescription = string.Format("assignable from <{0}>", typeof(D1)); 34 | stringRepresentation = string.Format("", typeof(D1)); 35 | } 36 | 37 | internal object[] SuccessData = new object[] { new D1(), new B() }; 38 | 39 | internal object[] FailureData = new object[] { 40 | new TestCaseData( new D2(), "" ) }; 41 | 42 | class B { } 43 | 44 | class D1 : B { } 45 | 46 | class D2 : D1 { } 47 | } 48 | } -------------------------------------------------------------------------------- /src/tests/Constraints/AssignableToConstraintTests.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2007 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints.Tests 25 | { 26 | [TestFixture] 27 | public class AssignableToConstraintTests : ConstraintTestBase 28 | { 29 | [SetUp] 30 | public void SetUp() 31 | { 32 | theConstraint = new AssignableToConstraint(typeof(D1)); 33 | expectedDescription = string.Format("assignable to <{0}>", typeof(D1)); 34 | stringRepresentation = string.Format("", typeof(D1)); 35 | } 36 | 37 | internal object[] SuccessData = new object[] { new D1(), new D2() }; 38 | 39 | internal object[] FailureData = new object[] { 40 | new TestCaseData( new B(), "" ) }; 41 | 42 | class B { } 43 | 44 | class D1 : B { } 45 | 46 | class D2 : D1 { } 47 | } 48 | } -------------------------------------------------------------------------------- /src/tests/Constraints/BinarySerializableTest.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2007 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | #if !NETCF && !SILVERLIGHT 25 | using System; 26 | using System.Collections; 27 | 28 | namespace NUnit.Framework.Constraints.Tests 29 | { 30 | [TestFixture] 31 | public class BinarySerializableTest : ConstraintTestBaseWithArgumentException 32 | { 33 | [SetUp] 34 | public void SetUp() 35 | { 36 | theConstraint = new BinarySerializableConstraint(); 37 | expectedDescription = "binary serializable"; 38 | stringRepresentation = ""; 39 | } 40 | 41 | object[] SuccessData = new object[] { 1, "a", new ArrayList(), new InternalWithSerializableAttributeClass() }; 42 | 43 | object[] FailureData = new object[] { new TestCaseData( new InternalClass(), "" ) }; 44 | 45 | object[] InvalidData = new object[] { null }; 46 | } 47 | } 48 | #endif -------------------------------------------------------------------------------- /src/tests/Constraints/CollectionSubsetConstraintTests.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2007 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints.Tests 25 | { 26 | [TestFixture] 27 | public class CollectionSubsetConstraintTests : ConstraintTestBase 28 | { 29 | [SetUp] 30 | public void SetUp() 31 | { 32 | theConstraint = new CollectionSubsetConstraint(new int[] { 1, 2, 3, 4, 5 }); 33 | stringRepresentation = ""; 34 | expectedDescription = "subset of < 1, 2, 3, 4, 5 >"; 35 | } 36 | 37 | internal object[] SuccessData = new object[] { new int[] { 1, 3, 5 }, new int[] { 1, 2, 3, 4, 5 } }; 38 | internal object[] FailureData = new object[] { 39 | new object[] { new int[] { 1, 3, 7 }, "< 1, 3, 7 >" }, 40 | new object[] { new int[] { 1, 2, 2, 2, 5 }, "< 1, 2, 2, 2, 5 >" } }; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/tests/Constraints/InstanceOfTypeConstraintTests.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2007 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints.Tests 25 | { 26 | [TestFixture] 27 | public class InstanceOfTypeConstraintTests : ConstraintTestBase 28 | { 29 | [SetUp] 30 | public void SetUp() 31 | { 32 | theConstraint = new InstanceOfTypeConstraint(typeof(D1)); 33 | expectedDescription = string.Format("instance of <{0}>", typeof(D1)); 34 | stringRepresentation = string.Format("", typeof(D1)); 35 | } 36 | 37 | internal object[] SuccessData = new object[] { new D1(), new D2() }; 38 | 39 | internal object[] FailureData = new object[] { 40 | new TestCaseData( new B(), "" ) 41 | }; 42 | 43 | class B { } 44 | 45 | class D1 : B { } 46 | 47 | class D2 : D1 { } 48 | } 49 | } -------------------------------------------------------------------------------- /src/tests/Constraints/OrConstraintTests.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2007 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints.Tests 25 | { 26 | [TestFixture] 27 | public class OrConstraintTests : ConstraintTestBase 28 | { 29 | [SetUp] 30 | public void SetUp() 31 | { 32 | theConstraint = new OrConstraint(new EqualConstraint(42), new EqualConstraint(99)); 33 | expectedDescription = "42 or 99"; 34 | stringRepresentation = " >"; 35 | } 36 | 37 | internal object[] SuccessData = new object[] { 99, 42 }; 38 | 39 | internal object[] FailureData = new object[] { new object[] { 37, "37" } }; 40 | 41 | [Test] 42 | public void CanCombineTestsWithOrOperator() 43 | { 44 | Assert.That(99, new EqualConstraint(42) | new EqualConstraint(99) ); 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /src/tests/Constraints/ReusableConstraintTests.cs: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // Copyright 2012, 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 5 | // **************************************************************** 6 | 7 | using System; 8 | 9 | namespace NUnit.Framework.Constraints 10 | { 11 | [TestFixture] 12 | public class ReusableConstraintTests 13 | { 14 | [Datapoints] 15 | internal static readonly ReusableConstraint[] constraints = new ReusableConstraint[] { 16 | Is.Not.Empty, 17 | Is.Not.Null, 18 | Has.Length.GreaterThan(3), 19 | Has.Property("Length").EqualTo(4).And.StartsWith("te") 20 | }; 21 | 22 | [Theory] 23 | public void CanReuseReusableConstraintMultipleTimes(ReusableConstraint c) 24 | { 25 | string s = "test"; 26 | 27 | Assume.That(s, c); 28 | 29 | Assert.That(s, c, "Should pass first time"); 30 | Assert.That(s, c, "Should pass second time"); 31 | Assert.That(s, c, "Should pass third time"); 32 | } 33 | 34 | [Test] 35 | public void CanCreateReusableConstraintByImplicitConversion() 36 | { 37 | ReusableConstraint c = Is.Not.Null; 38 | 39 | string s = "test"; 40 | Assert.That(s, c, "Should pass first time"); 41 | Assert.That(s, c, "Should pass second time"); 42 | Assert.That(s, c, "Should pass third time"); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/tests/Constraints/SameAsTest.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2007 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | namespace NUnit.Framework.Constraints.Tests 25 | { 26 | [TestFixture] 27 | public class SameAsTest : ConstraintTestBase 28 | { 29 | private static readonly object obj1 = new object(); 30 | private static readonly object obj2 = new object(); 31 | 32 | [SetUp] 33 | public void SetUp() 34 | { 35 | theConstraint = new SameAsConstraint(obj1); 36 | expectedDescription = "same as "; 37 | stringRepresentation = ""; 38 | } 39 | 40 | internal static object[] SuccessData = new object[] { obj1 }; 41 | 42 | internal static object[] FailureData = new object[] { 43 | new TestCaseData( obj2, "" ), 44 | new TestCaseData( 3, "3" ), 45 | new TestCaseData( "Hello", "\"Hello\"" ) }; 46 | } 47 | } -------------------------------------------------------------------------------- /src/tests/Constraints/TestDelegates.cs: -------------------------------------------------------------------------------- 1 | // **************************************************************** 2 | // Copyright 2008, 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 | using System; 7 | 8 | namespace NUnitLite.Tests 9 | { 10 | public class TestDelegates 11 | { 12 | public static void ThrowsArgumentException() 13 | { 14 | throw new ArgumentException("myMessage", "myParam"); 15 | } 16 | 17 | public static void ThrowsSystemException() 18 | { 19 | throw new Exception(); 20 | } 21 | 22 | public static void ThrowsNothing() 23 | { 24 | } 25 | 26 | public static void ThrowsDerivedException() 27 | { 28 | throw new DerivedException(); 29 | } 30 | 31 | public class DerivedException : Exception 32 | { 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/tests/Constraints/UniqueItemsConstraintTests.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2007 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using NUnit.Framework.Internal; 25 | 26 | namespace NUnit.Framework.Constraints.Tests 27 | { 28 | [TestFixture] 29 | public class UniqueItemsTests : ConstraintTestBase 30 | { 31 | [SetUp] 32 | public void SetUp() 33 | { 34 | theConstraint = new UniqueItemsConstraint(); 35 | stringRepresentation = ""; 36 | expectedDescription = "all items unique"; 37 | } 38 | 39 | internal object[] SuccessData = new object[] { new int[] { 1, 3, 17, -2, 34 }, new object[0] }; 40 | internal object[] FailureData = new object[] { new object[] { new int[] { 1, 3, 17, 3, 34 }, "< 1, 3, 17, 3, 34 >" } }; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/tests/Internal/DeduceTypeArgsFromArgs.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2009 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | #if (CLR_2_0 || CLR_4_0) && !NETCF 25 | using System; 26 | 27 | namespace NUnit.Framework.Internal 28 | { 29 | [Category("Generics")] 30 | [TestFixture(100.0, 42)] 31 | [TestFixture(42, 100.0)] 32 | public class DeduceTypeArgsFromArgs 33 | { 34 | T1 t1; 35 | T2 t2; 36 | 37 | public DeduceTypeArgsFromArgs(T1 t1, T2 t2) 38 | { 39 | this.t1 = t1; 40 | this.t2 = t2; 41 | } 42 | 43 | [TestCase(5, 7)] 44 | public void TestMyArgTypes(T1 t1, T2 t2) 45 | { 46 | Assert.That(t1, Is.TypeOf()); 47 | Assert.That(t2, Is.TypeOf()); 48 | } 49 | } 50 | } 51 | #endif 52 | -------------------------------------------------------------------------------- /src/tests/Internal/NUnitTestCaseBuilderTests.cs: -------------------------------------------------------------------------------- 1 | #if NET_4_5 2 | using System.Reflection; 3 | using NUnit.Framework.Api; 4 | using NUnit.Framework.Builders; 5 | using NUnit.TestData; 6 | using NUnit.TestUtilities; 7 | 8 | namespace NUnit.Framework.Internal 9 | { 10 | [TestFixture] 11 | public class NUnitTestCaseBuilderTests 12 | { 13 | private static readonly System.Type fixtureType = typeof(AsyncDummyFixture); 14 | 15 | [TestCase("AsyncVoid", RunState.Runnable)] 16 | [TestCase("AsyncTask", RunState.Runnable)] 17 | [TestCase("AsyncGenericTask", RunState.NotRunnable)] 18 | [TestCase("NonAsyncTask", RunState.NotRunnable)] 19 | [TestCase("NonAsyncGenericTask", RunState.NotRunnable)] 20 | public void AsyncTests(string methodName, RunState expectedState) 21 | { 22 | var test = TestBuilder.MakeTestCase(fixtureType, methodName); 23 | Assert.That(test.RunState, Is.EqualTo(expectedState)); 24 | } 25 | 26 | [TestCase("AsyncVoidTestCase", RunState.Runnable)] 27 | [TestCase("AsyncVoidTestCaseWithExpectedResult", RunState.NotRunnable)] 28 | [TestCase("AsyncTaskTestCase", RunState.Runnable)] 29 | [TestCase("AsyncTaskTestCaseWithExpectedResult", RunState.NotRunnable)] 30 | [TestCase("AsyncGenericTaskTestCase", RunState.NotRunnable)] 31 | [TestCase("AsyncGenericTaskTestCaseWithExpectedResult", RunState.Runnable)] 32 | [TestCase("AsyncGenericTaskTestCaseWithExpectedException", RunState.Runnable)] 33 | public void AsyncTestCases(string methodName, RunState expectedState) 34 | { 35 | var suite = TestBuilder.MakeTestCase(fixtureType, methodName); 36 | var testCase = (Test)suite.Tests[0]; 37 | Assert.That(testCase.RunState, Is.EqualTo(expectedState)); 38 | } 39 | } 40 | } 41 | #endif -------------------------------------------------------------------------------- /src/tests/Internal/TypeParameterUsedWithTestMethod.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2009 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | #if CLR_2_0 || CLR_4_0 25 | using System; 26 | 27 | namespace NUnit.Framework.Internal 28 | { 29 | [Category("Generics")] 30 | [TestFixture(typeof(double))] 31 | public class TypeParameterUsedWithTestMethod 32 | { 33 | [TestCase(5)] 34 | [TestCase(1.23)] 35 | public void TestMyArgType(T x) 36 | { 37 | Assert.That(x, Is.TypeOf(typeof(T))); 38 | } 39 | } 40 | } 41 | #endif 42 | -------------------------------------------------------------------------------- /src/tests/RecordingTestListener.cs: -------------------------------------------------------------------------------- 1 | // ***************************************************** 2 | // Copyright 2007, Charlie Poole 3 | // 4 | // Licensed under the Open Software License version 3.0 5 | // ***************************************************** 6 | 7 | using System; 8 | using NUnit.Framework; 9 | using NUnit.Framework.Api; 10 | 11 | namespace NUnitLite.Tests 12 | { 13 | public class RecordingTestListener : ITestListener 14 | { 15 | public string Events = string.Empty; 16 | 17 | public void TestStarted(ITest test) 18 | { 19 | Events += string.Format("<{0}:", test.Name); 20 | } 21 | 22 | public void TestFinished(ITestResult result) 23 | { 24 | Events += string.Format(":{0}>", result.ResultState); 25 | } 26 | 27 | public void TestOutput(TestOutput output) { } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/tests/Syntax/TestCompiler.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. 5 | // **************************************************************** 6 | 7 | using System; 8 | using System.CodeDom.Compiler; 9 | using System.IO; 10 | 11 | namespace NUnit.Framework.Syntax 12 | { 13 | class TestCompiler 14 | { 15 | Microsoft.CSharp.CSharpCodeProvider provider; 16 | #if CLR_1_1 17 | ICodeCompiler compiler; 18 | #endif 19 | CompilerParameters options; 20 | 21 | public TestCompiler() : this( null, null ) { } 22 | 23 | public TestCompiler( string[] assemblyNames ) : this( assemblyNames, null ) { } 24 | 25 | public TestCompiler( string[] assemblyNames, string outputName ) 26 | { 27 | this.provider = new Microsoft.CSharp.CSharpCodeProvider(); 28 | #if CLR_1_1 29 | this.compiler = provider.CreateCompiler(); 30 | #endif 31 | this.options = new CompilerParameters(); 32 | 33 | if ( assemblyNames != null && assemblyNames.Length > 0 ) 34 | options.ReferencedAssemblies.AddRange( assemblyNames ); 35 | if ( outputName != null ) 36 | options.OutputAssembly = outputName; 37 | 38 | options.IncludeDebugInformation = false; 39 | options.TempFiles = new TempFileCollection( Path.GetTempPath(), false ); 40 | options.GenerateInMemory = false; 41 | } 42 | 43 | public CompilerParameters Options 44 | { 45 | get { return options; } 46 | } 47 | 48 | public CompilerResults CompileCode( string code ) 49 | { 50 | #if CLR_2_0 || CLR_4_0 51 | return provider.CompileAssemblyFromSource( options, code ); 52 | #else 53 | return compiler.CompileAssemblyFromSource(options, code); 54 | #endif 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/tests/TestUtilities/Comparers/AlwaysEqualComparer.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2006 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | using System.Collections; 26 | 27 | namespace NUnit.TestUtilities 28 | { 29 | internal class AlwaysEqualComparer : IComparer 30 | { 31 | public bool Called = false; 32 | 33 | int IComparer.Compare(object x, object y) 34 | { 35 | Called = true; 36 | 37 | // This comparer ALWAYS returns zero (equal)! 38 | return 0; 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/tests/TestUtilities/Comparers/SimpleEqualityComparer.cs: -------------------------------------------------------------------------------- 1 | #if CLR_2_0 || CLR_4_0 2 | using System.Collections; 3 | using System.Collections.Generic; 4 | 5 | namespace NUnit.TestUtilities 6 | { 7 | public class SimpleEqualityComparer : IEqualityComparer 8 | { 9 | public bool Called; 10 | 11 | bool IEqualityComparer.Equals(object x, object y) 12 | { 13 | Called = true; 14 | #if SILVERLIGHT 15 | return Comparer.Default.Compare(x, y) == 0; 16 | #else 17 | return Comparer.Default.Compare(x, y) == 0; 18 | #endif 19 | } 20 | 21 | int IEqualityComparer.GetHashCode(object x) 22 | { 23 | return x.GetHashCode(); 24 | } 25 | } 26 | 27 | public class SimpleEqualityComparer : IEqualityComparer 28 | { 29 | public bool Called; 30 | 31 | bool IEqualityComparer.Equals(T x, T y) 32 | { 33 | Called = true; 34 | return Comparer.Default.Compare(x, y) == 0; 35 | } 36 | 37 | int IEqualityComparer.GetHashCode(T x) 38 | { 39 | return x.GetHashCode(); 40 | } 41 | } 42 | } 43 | #endif 44 | -------------------------------------------------------------------------------- /src/tests/TestUtilities/Comparers/SimpleObjectComparer.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | 3 | namespace NUnit.TestUtilities 4 | { 5 | public class SimpleObjectComparer : IComparer 6 | { 7 | public bool Called; 8 | 9 | public int Compare(object x, object y) 10 | { 11 | Called = true; 12 | #if SILVERLIGHT 13 | return System.Collections.Generic.Comparer.Default.Compare(x, y); 14 | #else 15 | return System.Collections.Comparer.Default.Compare(x, y); 16 | #endif 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/tests/TestUtilities/TestComparer.cs: -------------------------------------------------------------------------------- 1 | // *********************************************************************** 2 | // Copyright (c) 2006 Charlie Poole 3 | // 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | // *********************************************************************** 23 | 24 | using System; 25 | using System.Collections; 26 | 27 | namespace NUnit.TestUtilities 28 | { 29 | internal class TestComparer : IComparer 30 | { 31 | public bool Called = false; 32 | 33 | #region IComparer Members 34 | public int Compare(object x, object y) 35 | { 36 | Called = true; 37 | 38 | if (x == null && y == null) 39 | return 0; 40 | 41 | if (x == null || y == null) 42 | return -1; 43 | 44 | if (x.Equals(y)) 45 | return 0; 46 | 47 | return -1; 48 | } 49 | #endregion 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/tests/obj/Debug/net-4.5/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/tests/obj/Debug/net-4.5/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /src/tests/obj/Debug/net-4.5/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/tests/obj/Debug/net-4.5/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /src/tests/obj/Debug/net-4.5/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/tests/obj/Debug/net-4.5/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /src/tests/obj/Debug/sl-3.0/App.g.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "C:\Users\ialastairhunter\Documents\nunitlite\src\tests\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "2AB1B2E473A12409172A6740CD59F419" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // This code was generated by a tool. 5 | // Runtime Version:4.0.30319.17929 6 | // 7 | // Changes to this file may cause incorrect behavior and will be lost if 8 | // the code is regenerated. 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using System; 13 | using System.Windows; 14 | using System.Windows.Automation; 15 | using System.Windows.Automation.Peers; 16 | using System.Windows.Automation.Provider; 17 | using System.Windows.Controls; 18 | using System.Windows.Controls.Primitives; 19 | using System.Windows.Data; 20 | using System.Windows.Documents; 21 | using System.Windows.Ink; 22 | using System.Windows.Input; 23 | using System.Windows.Interop; 24 | using System.Windows.Markup; 25 | using System.Windows.Media; 26 | using System.Windows.Media.Animation; 27 | using System.Windows.Media.Imaging; 28 | using System.Windows.Resources; 29 | using System.Windows.Shapes; 30 | using System.Windows.Threading; 31 | 32 | 33 | namespace NUnitLite.Tests { 34 | 35 | 36 | public partial class App : System.Windows.Application { 37 | 38 | private bool _contentLoaded; 39 | 40 | /// 41 | /// InitializeComponent 42 | /// 43 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 44 | public void InitializeComponent() { 45 | if (_contentLoaded) { 46 | return; 47 | } 48 | _contentLoaded = true; 49 | System.Windows.Application.LoadComponent(this, new System.Uri("/nunitlite.tests;component/App.xaml", System.UriKind.Relative)); 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/tests/obj/Debug/sl-3.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/tests/obj/Debug/sl-3.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /src/tests/obj/Debug/sl-3.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/tests/obj/Debug/sl-3.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /src/tests/obj/Debug/sl-3.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/tests/obj/Debug/sl-3.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /src/tests/obj/Debug/sl-4.0/App.g.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "C:\Users\ialastairhunter\Documents\nunitlite\src\tests\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "2AB1B2E473A12409172A6740CD59F419" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // This code was generated by a tool. 5 | // Runtime Version:4.0.30319.17929 6 | // 7 | // Changes to this file may cause incorrect behavior and will be lost if 8 | // the code is regenerated. 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using System; 13 | using System.Windows; 14 | using System.Windows.Automation; 15 | using System.Windows.Automation.Peers; 16 | using System.Windows.Automation.Provider; 17 | using System.Windows.Controls; 18 | using System.Windows.Controls.Primitives; 19 | using System.Windows.Data; 20 | using System.Windows.Documents; 21 | using System.Windows.Ink; 22 | using System.Windows.Input; 23 | using System.Windows.Interop; 24 | using System.Windows.Markup; 25 | using System.Windows.Media; 26 | using System.Windows.Media.Animation; 27 | using System.Windows.Media.Imaging; 28 | using System.Windows.Resources; 29 | using System.Windows.Shapes; 30 | using System.Windows.Threading; 31 | 32 | 33 | namespace NUnitLite.Tests { 34 | 35 | 36 | public partial class App : System.Windows.Application { 37 | 38 | private bool _contentLoaded; 39 | 40 | /// 41 | /// InitializeComponent 42 | /// 43 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 44 | public void InitializeComponent() { 45 | if (_contentLoaded) { 46 | return; 47 | } 48 | _contentLoaded = true; 49 | System.Windows.Application.LoadComponent(this, new System.Uri("/nunitlite.tests;component/App.xaml", System.UriKind.Relative)); 50 | } 51 | } 52 | } 53 | 54 | -------------------------------------------------------------------------------- /src/tests/obj/Debug/sl-4.0/App.g.i.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "C:\Users\ialastairhunter\Documents\nunitlite\src\tests\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "2AB1B2E473A12409172A6740CD59F419" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // This code was generated by a tool. 5 | // Runtime Version:4.0.30319.17929 6 | // 7 | // Changes to this file may cause incorrect behavior and will be lost if 8 | // the code is regenerated. 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using System; 13 | using System.Windows; 14 | using System.Windows.Automation; 15 | using System.Windows.Automation.Peers; 16 | using System.Windows.Automation.Provider; 17 | using System.Windows.Controls; 18 | using System.Windows.Controls.Primitives; 19 | using System.Windows.Data; 20 | using System.Windows.Documents; 21 | using System.Windows.Ink; 22 | using System.Windows.Input; 23 | using System.Windows.Interop; 24 | using System.Windows.Markup; 25 | using System.Windows.Media; 26 | using System.Windows.Media.Animation; 27 | using System.Windows.Media.Imaging; 28 | using System.Windows.Resources; 29 | using System.Windows.Shapes; 30 | using System.Windows.Threading; 31 | 32 | 33 | namespace NUnitLite.Tests { 34 | 35 | 36 | public partial class App : System.Windows.Application { 37 | 38 | private bool _contentLoaded; 39 | 40 | /// 41 | /// InitializeComponent 42 | /// 43 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 44 | public void InitializeComponent() { 45 | if (_contentLoaded) { 46 | return; 47 | } 48 | _contentLoaded = true; 49 | System.Windows.Application.LoadComponent(this, new System.Uri("/nunitlite.tests;component/App.xaml", System.UriKind.Relative)); 50 | } 51 | } 52 | } 53 | 54 | -------------------------------------------------------------------------------- /src/tests/obj/Debug/sl-5.0/App.g.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "C:\Users\ialastairhunter\Documents\nunitlite\src\tests\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "2AB1B2E473A12409172A6740CD59F419" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // This code was generated by a tool. 5 | // Runtime Version:4.0.30319.17929 6 | // 7 | // Changes to this file may cause incorrect behavior and will be lost if 8 | // the code is regenerated. 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using System; 13 | using System.Windows; 14 | using System.Windows.Automation; 15 | using System.Windows.Automation.Peers; 16 | using System.Windows.Automation.Provider; 17 | using System.Windows.Controls; 18 | using System.Windows.Controls.Primitives; 19 | using System.Windows.Data; 20 | using System.Windows.Documents; 21 | using System.Windows.Ink; 22 | using System.Windows.Input; 23 | using System.Windows.Interop; 24 | using System.Windows.Markup; 25 | using System.Windows.Media; 26 | using System.Windows.Media.Animation; 27 | using System.Windows.Media.Imaging; 28 | using System.Windows.Resources; 29 | using System.Windows.Shapes; 30 | using System.Windows.Threading; 31 | 32 | 33 | namespace NUnitLite.Tests { 34 | 35 | 36 | public partial class App : System.Windows.Application { 37 | 38 | private bool _contentLoaded; 39 | 40 | /// 41 | /// InitializeComponent 42 | /// 43 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 44 | public void InitializeComponent() { 45 | if (_contentLoaded) { 46 | return; 47 | } 48 | _contentLoaded = true; 49 | System.Windows.Application.LoadComponent(this, new System.Uri("/nunitlite.tests;component/App.xaml", System.UriKind.Relative)); 50 | } 51 | } 52 | } 53 | 54 | -------------------------------------------------------------------------------- /src/tests/obj/Debug/sl-5.0/App.g.i.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "C:\Users\ialastairhunter\Documents\nunitlite\src\tests\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "2AB1B2E473A12409172A6740CD59F419" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // This code was generated by a tool. 5 | // Runtime Version:4.0.30319.17929 6 | // 7 | // Changes to this file may cause incorrect behavior and will be lost if 8 | // the code is regenerated. 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using System; 13 | using System.Windows; 14 | using System.Windows.Automation; 15 | using System.Windows.Automation.Peers; 16 | using System.Windows.Automation.Provider; 17 | using System.Windows.Controls; 18 | using System.Windows.Controls.Primitives; 19 | using System.Windows.Data; 20 | using System.Windows.Documents; 21 | using System.Windows.Ink; 22 | using System.Windows.Input; 23 | using System.Windows.Interop; 24 | using System.Windows.Markup; 25 | using System.Windows.Media; 26 | using System.Windows.Media.Animation; 27 | using System.Windows.Media.Imaging; 28 | using System.Windows.Resources; 29 | using System.Windows.Shapes; 30 | using System.Windows.Threading; 31 | 32 | 33 | namespace NUnitLite.Tests { 34 | 35 | 36 | public partial class App : System.Windows.Application { 37 | 38 | private bool _contentLoaded; 39 | 40 | /// 41 | /// InitializeComponent 42 | /// 43 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 44 | public void InitializeComponent() { 45 | if (_contentLoaded) { 46 | return; 47 | } 48 | _contentLoaded = true; 49 | System.Windows.Application.LoadComponent(this, new System.Uri("/nunitlite.tests;component/App.xaml", System.UriKind.Relative)); 50 | } 51 | } 52 | } 53 | 54 | -------------------------------------------------------------------------------- /src/tests/obj/Debug/sl-5.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/tests/obj/Debug/sl-5.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /src/tests/obj/Debug/sl-5.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/tests/obj/Debug/sl-5.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /src/tests/obj/Debug/sl-5.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/tests/obj/Debug/sl-5.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /src/tests/obj/release/sl-3.0/App.g.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "C:\Users\ialastairhunter\Documents\nunitlite\src\tests\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "C5EA8CC62E98F28D836FF410E75A77C1" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // This code was generated by a tool. 5 | // Runtime Version:2.0.50727.5420 6 | // 7 | // Changes to this file may cause incorrect behavior and will be lost if 8 | // the code is regenerated. 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using System; 13 | using System.Windows; 14 | using System.Windows.Automation; 15 | using System.Windows.Automation.Peers; 16 | using System.Windows.Automation.Provider; 17 | using System.Windows.Controls; 18 | using System.Windows.Controls.Primitives; 19 | using System.Windows.Data; 20 | using System.Windows.Documents; 21 | using System.Windows.Ink; 22 | using System.Windows.Input; 23 | using System.Windows.Interop; 24 | using System.Windows.Markup; 25 | using System.Windows.Media; 26 | using System.Windows.Media.Animation; 27 | using System.Windows.Media.Imaging; 28 | using System.Windows.Resources; 29 | using System.Windows.Shapes; 30 | using System.Windows.Threading; 31 | 32 | 33 | namespace NUnitLite.Tests { 34 | 35 | 36 | public partial class App : System.Windows.Application { 37 | 38 | private bool _contentLoaded; 39 | 40 | /// 41 | /// InitializeComponent 42 | /// 43 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 44 | public void InitializeComponent() { 45 | if (_contentLoaded) { 46 | return; 47 | } 48 | _contentLoaded = true; 49 | System.Windows.Application.LoadComponent(this, new System.Uri("/nunitlite.tests;component/App.xaml", System.UriKind.Relative)); 50 | } 51 | } 52 | } 53 | 54 | -------------------------------------------------------------------------------- /src/tests/obj/release/sl-3.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/tests/obj/release/sl-3.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /src/tests/obj/release/sl-3.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/tests/obj/release/sl-3.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /src/tests/obj/release/sl-3.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/tests/obj/release/sl-3.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /src/tests/obj/release/sl-4.0/App.g.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "C:\Users\ialastairhunter\Documents\nunitlite\src\tests\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "2AB1B2E473A12409172A6740CD59F419" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // This code was generated by a tool. 5 | // Runtime Version:4.0.30319.17929 6 | // 7 | // Changes to this file may cause incorrect behavior and will be lost if 8 | // the code is regenerated. 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using System; 13 | using System.Windows; 14 | using System.Windows.Automation; 15 | using System.Windows.Automation.Peers; 16 | using System.Windows.Automation.Provider; 17 | using System.Windows.Controls; 18 | using System.Windows.Controls.Primitives; 19 | using System.Windows.Data; 20 | using System.Windows.Documents; 21 | using System.Windows.Ink; 22 | using System.Windows.Input; 23 | using System.Windows.Interop; 24 | using System.Windows.Markup; 25 | using System.Windows.Media; 26 | using System.Windows.Media.Animation; 27 | using System.Windows.Media.Imaging; 28 | using System.Windows.Resources; 29 | using System.Windows.Shapes; 30 | using System.Windows.Threading; 31 | 32 | 33 | namespace NUnitLite.Tests { 34 | 35 | 36 | public partial class App : System.Windows.Application { 37 | 38 | private bool _contentLoaded; 39 | 40 | /// 41 | /// InitializeComponent 42 | /// 43 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 44 | public void InitializeComponent() { 45 | if (_contentLoaded) { 46 | return; 47 | } 48 | _contentLoaded = true; 49 | System.Windows.Application.LoadComponent(this, new System.Uri("/nunitlite.tests;component/App.xaml", System.UriKind.Relative)); 50 | } 51 | } 52 | } 53 | 54 | -------------------------------------------------------------------------------- /src/tests/obj/release/sl-5.0/App.g.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "C:\Users\ialastairhunter\Documents\nunitlite\src\tests\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "2AB1B2E473A12409172A6740CD59F419" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // This code was generated by a tool. 5 | // Runtime Version:4.0.30319.17929 6 | // 7 | // Changes to this file may cause incorrect behavior and will be lost if 8 | // the code is regenerated. 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using System; 13 | using System.Windows; 14 | using System.Windows.Automation; 15 | using System.Windows.Automation.Peers; 16 | using System.Windows.Automation.Provider; 17 | using System.Windows.Controls; 18 | using System.Windows.Controls.Primitives; 19 | using System.Windows.Data; 20 | using System.Windows.Documents; 21 | using System.Windows.Ink; 22 | using System.Windows.Input; 23 | using System.Windows.Interop; 24 | using System.Windows.Markup; 25 | using System.Windows.Media; 26 | using System.Windows.Media.Animation; 27 | using System.Windows.Media.Imaging; 28 | using System.Windows.Resources; 29 | using System.Windows.Shapes; 30 | using System.Windows.Threading; 31 | 32 | 33 | namespace NUnitLite.Tests { 34 | 35 | 36 | public partial class App : System.Windows.Application { 37 | 38 | private bool _contentLoaded; 39 | 40 | /// 41 | /// InitializeComponent 42 | /// 43 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 44 | public void InitializeComponent() { 45 | if (_contentLoaded) { 46 | return; 47 | } 48 | _contentLoaded = true; 49 | System.Windows.Application.LoadComponent(this, new System.Uri("/nunitlite.tests;component/App.xaml", System.UriKind.Relative)); 50 | } 51 | } 52 | } 53 | 54 | -------------------------------------------------------------------------------- /src/tests/obj/release/sl-5.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/tests/obj/release/sl-5.0/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs -------------------------------------------------------------------------------- /src/tests/obj/release/sl-5.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/tests/obj/release/sl-5.0/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs -------------------------------------------------------------------------------- /src/tests/obj/release/sl-5.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/src/tests/obj/release/sl-5.0/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs -------------------------------------------------------------------------------- /tools/nant/bin/NAnt.CompressionTasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/NAnt.CompressionTasks.dll -------------------------------------------------------------------------------- /tools/nant/bin/NAnt.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/NAnt.Core.dll -------------------------------------------------------------------------------- /tools/nant/bin/NAnt.DotNetTasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/NAnt.DotNetTasks.dll -------------------------------------------------------------------------------- /tools/nant/bin/NAnt.MSNetTasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/NAnt.MSNetTasks.dll -------------------------------------------------------------------------------- /tools/nant/bin/NAnt.NUnit.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/NAnt.NUnit.dll -------------------------------------------------------------------------------- /tools/nant/bin/NAnt.NUnit1Tasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/NAnt.NUnit1Tasks.dll -------------------------------------------------------------------------------- /tools/nant/bin/NAnt.NUnit2Tasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/NAnt.NUnit2Tasks.dll -------------------------------------------------------------------------------- /tools/nant/bin/NAnt.SourceControlTasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/NAnt.SourceControlTasks.dll -------------------------------------------------------------------------------- /tools/nant/bin/NAnt.VSNetTasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/NAnt.VSNetTasks.dll -------------------------------------------------------------------------------- /tools/nant/bin/NAnt.VisualCppTasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/NAnt.VisualCppTasks.dll -------------------------------------------------------------------------------- /tools/nant/bin/NAnt.Win32Tasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/NAnt.Win32Tasks.dll -------------------------------------------------------------------------------- /tools/nant/bin/NAnt.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/NAnt.exe -------------------------------------------------------------------------------- /tools/nant/bin/NDoc.Documenter.NAnt.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/NDoc.Documenter.NAnt.dll -------------------------------------------------------------------------------- /tools/nant/bin/extensions/common/2.0/NAnt.MSBuild.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/extensions/common/2.0/NAnt.MSBuild.dll -------------------------------------------------------------------------------- /tools/nant/bin/extensions/common/4.0/NAnt.MSBuild.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/extensions/common/4.0/NAnt.MSBuild.dll -------------------------------------------------------------------------------- /tools/nant/bin/lib/common/2.0/nunit-console-runner.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/lib/common/2.0/nunit-console-runner.dll -------------------------------------------------------------------------------- /tools/nant/bin/lib/common/2.0/nunit-console.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/lib/common/2.0/nunit-console.exe -------------------------------------------------------------------------------- /tools/nant/bin/lib/common/2.0/nunit-console.exe.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /tools/nant/bin/lib/common/2.0/nunit.core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/lib/common/2.0/nunit.core.dll -------------------------------------------------------------------------------- /tools/nant/bin/lib/common/2.0/nunit.core.interfaces.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/lib/common/2.0/nunit.core.interfaces.dll -------------------------------------------------------------------------------- /tools/nant/bin/lib/common/2.0/nunit.framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/lib/common/2.0/nunit.framework.dll -------------------------------------------------------------------------------- /tools/nant/bin/lib/common/2.0/nunit.util.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/lib/common/2.0/nunit.util.dll -------------------------------------------------------------------------------- /tools/nant/bin/lib/common/neutral/ICSharpCode.SharpCvsLib.Console.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/lib/common/neutral/ICSharpCode.SharpCvsLib.Console.dll -------------------------------------------------------------------------------- /tools/nant/bin/lib/common/neutral/ICSharpCode.SharpCvsLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/lib/common/neutral/ICSharpCode.SharpCvsLib.dll -------------------------------------------------------------------------------- /tools/nant/bin/lib/common/neutral/ICSharpCode.SharpZipLib.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/lib/common/neutral/ICSharpCode.SharpZipLib.dll -------------------------------------------------------------------------------- /tools/nant/bin/lib/common/neutral/NDoc.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/lib/common/neutral/NDoc.Core.dll -------------------------------------------------------------------------------- /tools/nant/bin/lib/common/neutral/NDoc.Documenter.Msdn.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/lib/common/neutral/NDoc.Documenter.Msdn.dll -------------------------------------------------------------------------------- /tools/nant/bin/lib/common/neutral/NDoc.ExtendedUI.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/lib/common/neutral/NDoc.ExtendedUI.dll -------------------------------------------------------------------------------- /tools/nant/bin/lib/common/neutral/NUnitCore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/lib/common/neutral/NUnitCore.dll -------------------------------------------------------------------------------- /tools/nant/bin/lib/common/neutral/netDumbster.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/lib/common/neutral/netDumbster.dll -------------------------------------------------------------------------------- /tools/nant/bin/log4net.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/log4net.dll -------------------------------------------------------------------------------- /tools/nant/bin/scvs.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/guiunit/9167376c05961733f7cf7fca66ff4c8dac871f1c/tools/nant/bin/scvs.exe --------------------------------------------------------------------------------