http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/doc/typeConstraints.html ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/doc/typeConstraints.html b/lib/NUnit.org/NUnit/2.5.9/doc/typeConstraints.html deleted file mode 100644 index 992808e..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/doc/typeConstraints.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - -NUnit - TypeConstraints - - - - - - - - - - - - - -
- -

Type Constraints (NUnit 2.4)

- -

Type constraints perform tests that are specific to Types. -The following type constraints are provided: - - - - - - -
Syntax HelperConstructorOperation
Is.TypeOf( Type )ExactTypeConstraint( Type )tests that an object is an exact Type
Is.InstanceOfType( Type )InstanceOfTypeConstraint( Type )tests that an object is an instance of a Type
Is.AssignableFrom( Type )AssignableFromConstraint( Type )tests that one type is assignable from another
- -

Examples of Use

- -
-Assert.That("Hello", Is.TypeOf(typeof(string)));
-Assert.That("Hello", Is.Not.TypeOf(typeof(int)));
-
-Assert.That("Hello", Is.InstanceOfType(typeof(string)));
-Assert.That(5, Is.Not.InstanceOfType(typeof(string)));
-
-Assert.That( "Hello", Is.AssignableFrom(typeof(string)));
-Assert.That( 5, Is.Not.AssignableFrom(typeof(string)));
-
-// Using inheritance
-Expect( 5, Not.InstanceOfType(typeof(string)));
-Expect( "Hello", AssignableFrom(typeOf(string)));
-
- - -
- - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/doc/upgrade.html ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/doc/upgrade.html b/lib/NUnit.org/NUnit/2.5.9/doc/upgrade.html deleted file mode 100644 index 0f44561..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/doc/upgrade.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - -NUnit - Upgrade - - - - - - - - - - - - - -
- -

From NUnit 2.x

- -

Beginning with version 2.2.1, old style test cases ("Test....") are no longer -recognized by default. We recommend that you convert such test cases to use the -TestAttribute. Alternatively, you may -specify a setting in the test config file to allow use of old style test cases by -default.

- -

Beginning with NUnit 2.2.2, NUnit is able to run tests Built with older -versions of NUnit 2.x without recompilation. Note that you must have an -available copy of the nunit.framework assembly from the older version -in order for your tests to load correctly. - -

From NUnit 1.x

- -

NUnit 2.5 no longer supports inheriting from TestCase when defining a test. - If you need to run such tests, you may continue to do so using the - a 2.4.x or earlier version of the nunit.framework assembly. Of course, you - will not be able to use new features introduced in 2.5 if you follow this - course. - -

For a complete conversion to 2.5, you should modify and recompile your tests - using the new version of NUnit. - -

Suite property

-

The NUnit 1.x Suite property will not be found by the new program. These must be - changed to the "Suite" attribute for the test runners to find them. - Another alternative is that these suites are no longer needed due to the - automatic capability that is built in to the new version.

- -

AssertionFailedError

-

If you have written code expecting the exception AssertionFailedError, this must - be changed to AssertionException.

- - -
- - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/doc/utilityAsserts.html ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/doc/utilityAsserts.html b/lib/NUnit.org/NUnit/2.5.9/doc/utilityAsserts.html deleted file mode 100644 index 3940db4..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/doc/utilityAsserts.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - -NUnit - UtilityAsserts - - - - - - - - - - - - - -
- -

Utility Methods

-

Four utility methods, Pass(), Fail(), Ignore() and Inconclusive() are provided - in order to allow more direct control of the test process:

-
-Assert.Pass();
-Assert.Pass( string message );
-Assert.Pass( string message, object[] parms );
-
-Assert.Fail();
-Assert.Fail( string message );
-Assert.Fail( string message, object[] parms );
-
-Assert.Ignore();
-Assert.Ignore( string message );
-Assert.Ignore( string message, object[] parms );
-
-Assert.Inconclusive();
-Assert.Inconclusive( string message );
-Assert.Inconclusive( string message, object[] parms );
-
-

The Assert.Pass method allows you to immediately end the test, recording - it as successful. Since it causes an exception to be thrown, it is more - efficient to simply allow the test to return. However, Assert.Pass allows - you to record a message in the test result and may also make the test - easier to read in some situations. Additionally, like the other methods - on this page, it can be invoked from a nested method call with the - result of immediately terminating test execution.

-

The Assert.Fail method provides you with the ability to generate a failure based - on tests that are not encapsulated by the other methods. It is also useful in - developing your own project-specific assertions.

-

Here's an example of its use to create a private assertion that tests whether a - string contains an expected value.

-
-
public void AssertStringContains( string expected, string actual )
-{
-    AssertStringContains( expected, actual, string.Empty );
-}
-
-public void AssertStringContains( string expected, string actual,
-    string message )
-{
-    if ( actual.IndexOf( expected ) < 0 )
-        Assert.Fail( message );
-}
-
-

The Assert.Ignore method provides you with the ability to dynamically cause a - test or suite to be ignored at runtime. It may be called in a test, setup or - fixture setup method. We recommend that you use this only in isolated cases. - The category facility is provided for more extensive inclusion or exclusion of - tests or you may elect to simply divide tests run on different occasions into - different assemblies.

-

The Assert.Inconclusive method indicates that the test could not be - completed with the data available. It should be used in situations where - another run with different data might run to completion, with either a - success or failure outcome. - -

- - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/doc/valueSource.html ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/doc/valueSource.html b/lib/NUnit.org/NUnit/2.5.9/doc/valueSource.html deleted file mode 100644 index e93c0f9..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/doc/valueSource.html +++ /dev/null @@ -1,157 +0,0 @@ - - - - -NUnit - ValueSource - - - - - - - - - - - - - -
- - - -

ValueSourceAttribute (NUnit 2.5)

- -

ValueSourceAttribute is used on individual parameters of a test method to -identify a named source for the argument values to be supplied. The attribute has -two public constructors. - -

-
-ValueSourceAttribute(Type sourceType, string sourceName);
-ValueSourceAttribute(string sourceName);
-
-
- -

If sourceType is specified, it represents the class that provides -the data. It must have a default constructor. - -

If sourceType is not specified, the class containing the test -method is used. NUnit will construct it using either the default constructor -or - if arguments are provided - the appropriate constructor for those -arguments. - -

The sourceName, represents the name of the source that will -provide the arguments. It should have the following characteristics: -

- -

Order of Execution

- -

In NUnit 2.5, individual test cases are sorted alphabetically and executed in - that order. With NUnit 2.5.1, the individual cases are not sorted, but are - executed in the order in which NUnit discovers them. This order does not - follow the lexical order of the attributes and will often vary between different - compilers or different versions of the CLR. - -

As a result, when ValueSourceAttribute appears multiple times on a - parameter or when other data-providing attributes are used in combination with - ValueSourceAttribute, the order of the arguments is undefined. - -

However, when a single ValueSourceAttribute is used by itself, - the order of the arguments follows exactly the order in which the data - is returned from the source. - -

Note on Object Construction

- -

NUnit locates the test cases at the time the tests are loaded, creates -instances of each class with non-static sources and builds a list of -tests to be executed. Each source object is only created once at this -time and is destroyed after all tests are loaded. - -

If the data source is in the test fixture itself, the object is created -using the appropriate constructor for the fixture parameters provided on -the TestFixtureAttribute, or -the default constructor if no parameters were specified. Since this object -is destroyed before the tests are run, no communication is possible between -these two phases - or between different runs - except through the parameters -themselves. - -

- - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/doc/values.html ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/doc/values.html b/lib/NUnit.org/NUnit/2.5.9/doc/values.html deleted file mode 100644 index 8bcc5d5..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/doc/values.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - -NUnit - Values - - - - - - - - - - - - - -
- -

ValuesAttribute (NUnit 2.5)

- -

The ValuesAttribute is used to specify a set of values to be provided - for an individual parameter of a parameterized test method. Since - NUnit combines the data provided for each parameter into a set of - test cases, data must be provided for all parameters if it is - provided for any of them. - -

By default, NUnit creates test cases from all possible combinations - of the datapoints provided on parameters - the combinatorial approach. - This default may be modified by use of specific attributes on the - test method itself. - -

Example

- -

The following test will be executed six times, as follows: -

-	MyTest(1, "A")
-	MyTest(1, "B")
-	MyTest(2, "A")
-	MyTest(2, "B")
-	MyTest(3, "A")
-	MyTest(3, "B")
-
-
-[Test]
-public void MyTest(
-    [Values(1,2,3)] int x,
-    [Values("A","B")] string s)
-{
-    ...
-}
-
- -

See also...

- - -
- - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/doc/vsSupport.html ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/doc/vsSupport.html b/lib/NUnit.org/NUnit/2.5.9/doc/vsSupport.html deleted file mode 100644 index 7ee28e3..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/doc/vsSupport.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - -NUnit - VsSupport - - - - - - - - - - - - - -
- -

Visual Studio Support

- -

Visual Studio support in this release is a sort of �poor man�s integration.� We have implemented -a number of features while avoiding any that would require using an Addin or otherwise -interacting with the Visual Studio extensibility model.

- -

Running From Within Visual Studio

- -

The most convenient way to do this is to set up a custom tool entry specifying the path to -NUnit as the command. For a VS2003 C# project, you can use $(TargetPath) for the arguments and -$(TargetDir) for the initial directory. - -

With Visual Studio VS2005 this becomes a bit harder, because that release changed the -meaning of the 'Target' macros so they now point to the intermediate 'obj' directories rather -than the final output in one of the 'bin' directories. Here are some alternatives that -work in both versions: - -

- -

If you would like to debug your tests, use the Visual Studio -Debug | Processes� menu item to attach to NUnit after starting it and set breakpoints in -your test code as desired before running the tests.

- -

Using Console Interface to Debug Applications

- -

When the nunit-console program is run in debug mode under Visual Studio, it detects that it is -running in this mode and sends output to the Visual Studio output window. Output is formatted so -that double clicking any error or failure entries opens the appropriate test file at the location -where the failure was detected.

- -

Opening Visual Studio Projects

- -

When Visual Studio support is enabled, the File Open dialog displays the following supported -Visual Studio project types: C#, VB.Net, J# and C++. The project file is read and the -configurations and output assembly locations are identified. Since the project files do not contain -information about the most recently opened configuration, the output assembly for the first -configuration found (usually Debug) is loaded in the GUI. The tree shows the project as the toplevel -node with the assembly shown as its descendant.

- -

Beginning with NUnit 2.2.2, you may also open a Visual Studio project by dragging it to the gui tree control.

- -

When tests are run for a Visual studio project, they run just as if the output assembly had been -loaded with one exception. The default location for the config file is the directory containing the -project file and it�s default name is the same as the project file with an extension of .config. -For example, the following command would load the tests in the nunit.tests assembly using the -configuration file nunit.tests.dll.config located in the same directory as the dll. -

        nunit.exe nunit.tests.dll
-On the other hand, the following command would load the tests using the configuration file -nunit.tests.config located in the same directory as the csproj file. -
        nunit.exe nunit.tests.csproj
-The same consideration applies to running tests using the console runner.

- -

Opening Visual Studio Solutions

- -

When Visual Studio support is enabled, solution files may be opened as well. All the output -assemblies from contained projects of the types supported will be loaded in the tree. In the case -where all contained projects are located in the subdirectories beneath the solution, it will be -possible to load and run tests using this method directly.

- -

Beginning with NUnit 2.2.2, you may also open a Visual Studio solution by dragging it to the gui tree control.

- -

When a solution contains projects located elsewhere in the file system, it may not be possible to -run the tests � although the solution will generally load without problem. In this case, the Project -Editor should be use to modify and save the NUnit test project so that there is all referenced -assemblies are located in or beneath the application base directory.

- -

Adding Visual Studio Projects to the Open Test Project

- -

When Visual Studio support is enabled, the Project menu contains an active entry to add a VS -project to the loaded project. The output assembly will be added for each of the configurations -specified in the VS project.

- -
- - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/fit-license.txt ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/fit-license.txt b/lib/NUnit.org/NUnit/2.5.9/fit-license.txt deleted file mode 100644 index d5bdfa2..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/fit-license.txt +++ /dev/null @@ -1,342 +0,0 @@ - - - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Library General -Public License instead of this License. http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/license.txt ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/license.txt b/lib/NUnit.org/NUnit/2.5.9/license.txt deleted file mode 100644 index 66a5ebf..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/license.txt +++ /dev/null @@ -1,15 +0,0 @@ -Copyright � 2002-2008 Charlie Poole -Copyright � 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov -Copyright � 2000-2002 Philip A. Craig - -This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. - -Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: - -1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment (see the following) in the product documentation is required. - -Portions Copyright � 2002-2008 Charlie Poole or Copyright � 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov or Copyright � 2000-2002 Philip A. Craig - -2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. - -3. This notice may not be removed or altered from any source distribution. http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/CoreExtensibility.sln ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/CoreExtensibility.sln b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/CoreExtensibility.sln deleted file mode 100644 index 6e5ae57..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/CoreExtensibility.sln +++ /dev/null @@ -1,53 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 8.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Minimal", "Minimal\Minimal.csproj", "{EF428E5B-B3E7-4C2F-B005-98DE7D6E7CDB}" - ProjectSection(ProjectDependencies) = postProject - EndProjectSection -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleFixtureExtension", "SampleFixtureExtension\SampleFixtureExtension.csproj", "{ED281A23-9579-4A70-B608-1B86DCDEB78C}" - ProjectSection(ProjectDependencies) = postProject - EndProjectSection -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleFixtureExtensionTests", "SampleFixtureExtension\Tests\SampleFixtureExtensionTests.csproj", "{0DE6C90F-BB74-4BC8-887A-2222DB56D2EB}" - ProjectSection(ProjectDependencies) = postProject - EndProjectSection -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleSuiteExtension", "SampleSuiteExtension\SampleSuiteExtension.csproj", "{0C4269EE-3266-45DD-9062-E356C067FBEF}" - ProjectSection(ProjectDependencies) = postProject - EndProjectSection -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleSuiteExtensionTests", "SampleSuiteExtension\Tests\SampleSuiteExtensionTests.csproj", "{9F609A0D-FF7E-4F0C-B2DF-417EBC557CFF}" - ProjectSection(ProjectDependencies) = postProject - EndProjectSection -EndProject -Global - GlobalSection(SolutionConfiguration) = preSolution - Debug = Debug - Release = Release - EndGlobalSection - GlobalSection(ProjectConfiguration) = postSolution - {EF428E5B-B3E7-4C2F-B005-98DE7D6E7CDB}.Debug.ActiveCfg = Debug|.NET - {EF428E5B-B3E7-4C2F-B005-98DE7D6E7CDB}.Debug.Build.0 = Debug|.NET - {EF428E5B-B3E7-4C2F-B005-98DE7D6E7CDB}.Release.ActiveCfg = Release|.NET - {EF428E5B-B3E7-4C2F-B005-98DE7D6E7CDB}.Release.Build.0 = Release|.NET - {ED281A23-9579-4A70-B608-1B86DCDEB78C}.Debug.ActiveCfg = Debug|.NET - {ED281A23-9579-4A70-B608-1B86DCDEB78C}.Debug.Build.0 = Debug|.NET - {ED281A23-9579-4A70-B608-1B86DCDEB78C}.Release.ActiveCfg = Release|.NET - {ED281A23-9579-4A70-B608-1B86DCDEB78C}.Release.Build.0 = Release|.NET - {0DE6C90F-BB74-4BC8-887A-2222DB56D2EB}.Debug.ActiveCfg = Debug|.NET - {0DE6C90F-BB74-4BC8-887A-2222DB56D2EB}.Debug.Build.0 = Debug|.NET - {0DE6C90F-BB74-4BC8-887A-2222DB56D2EB}.Release.ActiveCfg = Release|.NET - {0DE6C90F-BB74-4BC8-887A-2222DB56D2EB}.Release.Build.0 = Release|.NET - {0C4269EE-3266-45DD-9062-E356C067FBEF}.Debug.ActiveCfg = Debug|.NET - {0C4269EE-3266-45DD-9062-E356C067FBEF}.Debug.Build.0 = Debug|.NET - {0C4269EE-3266-45DD-9062-E356C067FBEF}.Release.ActiveCfg = Release|.NET - {0C4269EE-3266-45DD-9062-E356C067FBEF}.Release.Build.0 = Release|.NET - {9F609A0D-FF7E-4F0C-B2DF-417EBC557CFF}.Debug.ActiveCfg = Debug|.NET - {9F609A0D-FF7E-4F0C-B2DF-417EBC557CFF}.Debug.Build.0 = Debug|.NET - {9F609A0D-FF7E-4F0C-B2DF-417EBC557CFF}.Release.ActiveCfg = Release|.NET - {9F609A0D-FF7E-4F0C-B2DF-417EBC557CFF}.Release.Build.0 = Release|.NET - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - EndGlobalSection - GlobalSection(ExtensibilityAddIns) = postSolution - EndGlobalSection -EndGlobal http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/Minimal/Minimal.build ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/Minimal/Minimal.build b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/Minimal/Minimal.build deleted file mode 100644 index f92d521..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/Minimal/Minimal.build +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/Minimal/Minimal.cs ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/Minimal/Minimal.cs b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/Minimal/Minimal.cs deleted file mode 100644 index 17b4bdb..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/Minimal/Minimal.cs +++ /dev/null @@ -1,36 +0,0 @@ -// **************************************************************** -// Copyright 2007, Charlie Poole -// This is free software licensed under the NUnit license. You may -// obtain a copy of the license at http://nunit.org/?p=license&r=2.4 -// **************************************************************** - -using System; -using NUnit.Core.Extensibility; - -namespace NUnit.Samples.Extensibility -{ - /// - /// This is the smallest possible Addin, which does nothing - /// but is recognized by NUnit and listed in the Addins dialog. - /// - /// The Addin class is marked by the NUnitAddin attribute and - /// implements IAddin, as required. Optional property syntax - /// is used here to override the default name of the addin and - /// to provide a description. Both are displayed by NUnit in the - /// Addin Dialog. - /// - /// The addin doesn't actually install anything, but simply - /// returns false in its Install method. - /// - [NUnitAddin(Name="Minimal Addin", Description="This Addin doesn't do anything")] - public class Minimal : IAddin - { - #region IAddin Members - public bool Install(IExtensionHost host) - { - // TODO: Add Minimal.Install implementation - return true; - } - #endregion - } -} http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/Minimal/Minimal.csproj ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/Minimal/Minimal.csproj b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/Minimal/Minimal.csproj deleted file mode 100644 index f6677e1..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/Minimal/Minimal.csproj +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/Minimal/ReadMe.txt ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/Minimal/ReadMe.txt b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/Minimal/ReadMe.txt deleted file mode 100644 index 901df80..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/Minimal/ReadMe.txt +++ /dev/null @@ -1,27 +0,0 @@ -Minimal Addin Example - - -MinimalAddin Class - -This class represents the addin. It is marked by the NUnitAddinAttribute -and implements the required IAddin interface. When called by NUnit to -install itself, it simply returns false. - -Note on Building this Extension - -If you use the Visual Studio solution, the NUnit references in both -included projects must be changed so that they refer to the copy of -NUnit in which you want to install the extension. The post-build step -for the SampleSuiteExtension project must be changed to copy the -extension into the addins directory for your NUnit install. - -NOTE: - -The references to nunit.core and nunit.common in the -SampleSuiteExtension project have their Copy Local property set to -false, rather than the Visual Studio default of true. In developing -extensions, it is essential there be no extra copies of these assemblies -be created. Once the extension is complete, those who install it in -binary form will not need to deal with this issue. - - http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/AssemblyInfo.cs ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/AssemblyInfo.cs b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/AssemblyInfo.cs deleted file mode 100644 index 9f89a32..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/AssemblyInfo.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; - -// -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -// -[assembly: AssemblyTitle("")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("")] -[assembly: AssemblyCopyright("")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.0.*")] - -// -// In order to sign your assembly you must specify a key to use. Refer to the -// Microsoft .NET Framework documentation for more information on assembly signing. -// -// Use the attributes below to control which key is used for signing. -// -// Notes: -// (*) If no key is specified, the assembly is not signed. -// (*) KeyName refers to a key that has been installed in the Crypto Service -// Provider (CSP) on your machine. KeyFile refers to a file which contains -// a key. -// (*) If the KeyFile and the KeyName values are both specified, the -// following processing occurs: -// (1) If the KeyName can be found in the CSP, that key is used. -// (2) If the KeyName does not exist and the KeyFile does exist, the key -// in the KeyFile is installed into the CSP and used. -// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. -// When specifying the KeyFile, the location of the KeyFile should be -// relative to the project output directory which is -// %Project Directory%\obj\. For example, if your KeyFile is -// located in the project directory, you would specify the AssemblyKeyFile -// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] -// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework -// documentation for more information on this. -// -[assembly: AssemblyDelaySign(false)] -[assembly: AssemblyKeyFile("")] -[assembly: AssemblyKeyName("")] http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/ReadMe.txt ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/ReadMe.txt b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/ReadMe.txt deleted file mode 100644 index 11fb204..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/ReadMe.txt +++ /dev/null @@ -1,43 +0,0 @@ -SampleSuiteExtension Example - -This is a minimal example of a SuiteBuilder extension. It extends -NUnit.Core.TestSuite test suite and creates a fixture that runs every -test starting with "SampleTest..." It packages both the core extension -and the attribute used in the tests in the same assembly. - -SampleSuiteExtension Class - -This class derives from NUnit.Framework.TestSuite and represents the -extended suite within NUnit. Because it inherits from TestSuite, -rather than TestFixture, it has to construct its own fixture object and -find its own tests. Everything is done in the constructor for simplicity. - -SampleSuiteExtensionBuilder - -This class is the actual SuiteBuilder loaded by NUnit as an add-in. -It recognizes the SampleSuiteExtensionAttribute and invokes the -SampleSuiteExtension constructor to build the suite. - -SampleSuiteExtensionAttribute - -This is the special attribute used to mark tests to be constructed -using this add-in. It is the only class referenced from the user tests. - -Note on Building this Extension - -If you use the Visual Studio solution, the NUnit references in both -included projects must be changed so that they refer to the copy of -NUnit in which you want to install the extension. The post-build step -for the SampleSuiteExtension project must be changed to copy the -extension into the addins directory for your NUnit install. - -NOTE: - -The references to nunit.core and nunit.common in the -SampleSuiteExtension project have their Copy Local property set to -false, rather than the Visual Studio default of true. In developing -extensions, it is essential there be no extra copies of these assemblies -be created. Once the extension is complete, those who install it in -binary form will not need to deal with this issue. - - http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtension.build ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtension.build b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtension.build deleted file mode 100644 index 474d4aa..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtension.build +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtension.cs ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtension.cs b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtension.cs deleted file mode 100644 index 8359d2f..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtension.cs +++ /dev/null @@ -1,44 +0,0 @@ -// **************************************************************** -// Copyright 2007, Charlie Poole -// This is free software licensed under the NUnit license. You may -// obtain a copy of the license at http://nunit.org/?p=license&r=2.4 -// **************************************************************** - -using System; - -namespace NUnit.Core.Extensions -{ - /// - /// SampleFixtureExtension extends NUnitTestFixture and adds a custom setup - /// before running TestFixtureSetUp and after running TestFixtureTearDown. - /// Because it inherits from NUnitTestFixture, a lot of work is done for it. - /// - class SampleFixtureExtension : NUnitTestFixture - { - public SampleFixtureExtension( Type fixtureType ) - : base( fixtureType ) - { - // NOTE: Since we are inheriting from NUnitTestFixture we don't - // have to do anything if we don't want to. All the attributes - // that are normally used with an NUnitTestFixture will be - // recognized. - // - // Just to have something to do, we override DoOneTimeSetUp and - // DoOneTimeTearDown below to do some special processing before - // and after the normal TestFixtureSetUp and TestFixtureTearDown. - // In this example, we simply display a message. - } - - protected override void DoOneTimeSetUp(TestResult suiteResult) - { - Console.WriteLine( "Extended Fixture SetUp called" ); - base.DoOneTimeSetUp (suiteResult); - } - - protected override void DoOneTimeTearDown(TestResult suiteResult) - { - base.DoOneTimeTearDown (suiteResult); - Console.WriteLine( "Extended Fixture TearDown called" ); - } - } -} http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtension.csproj ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtension.csproj b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtension.csproj deleted file mode 100644 index 1fb245b..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtension.csproj +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtensionAttribute.cs ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtensionAttribute.cs b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtensionAttribute.cs deleted file mode 100644 index 2d9737c..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtensionAttribute.cs +++ /dev/null @@ -1,18 +0,0 @@ -// **************************************************************** -// Copyright 2007, Charlie Poole -// This is free software licensed under the NUnit license. You may -// obtain a copy of the license at http://nunit.org/?p=license&r=2.4 -// **************************************************************** - -using System; - -namespace NUnit.Core.Extensions -{ - /// - /// SampleFixtureExtensionAttribute is used to identify a SampleFixtureExtension class - /// - [AttributeUsage(AttributeTargets.Class, AllowMultiple=false)] - public sealed class SampleFixtureExtensionAttribute : Attribute - { - } -} http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtensionBuilder.cs ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtensionBuilder.cs b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtensionBuilder.cs deleted file mode 100644 index 3713a7e..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/SampleFixtureExtensionBuilder.cs +++ /dev/null @@ -1,58 +0,0 @@ -// **************************************************************** -// Copyright 2007, Charlie Poole -// This is free software licensed under the NUnit license. You may -// obtain a copy of the license at http://nunit.org/?p=license&r=2.4 -// **************************************************************** - -using System; -using NUnit.Core.Builders; -using NUnit.Core.Extensibility; - -namespace NUnit.Core.Extensions -{ - /// - /// MockFixtureExtensionBuilder knows how to build - /// a MockFixtureExtension. - /// - [NUnitAddin(Description="Wraps an NUnitTestFixture with an additional level of SetUp and TearDown")] - public class SampleFixtureExtensionBuilder : ISuiteBuilder, IAddin - { - #region NUnitTestFixtureBuilder Overrides - /// - /// Makes a SampleFixtureExtension instance - /// - /// The type to be used - /// A SampleFixtureExtension as a TestSuite -// protected override TestSuite MakeSuite(Type type) -// { -// return new SampleFixtureExtension( type ); -// } - - // The builder recognizes the types that it can use by the presense - // of SampleFixtureExtensionAttribute. Note that an attribute does not - // have to be used. You can use any arbitrary set of rules that can be - // implemented using reflection on the type. - public bool CanBuildFrom(Type type) - { - return Reflect.HasAttribute( type, "NUnit.Core.Extensions.SampleFixtureExtensionAttribute", false ); - } - - public Test BuildFrom(Type type) - { - return null; - } - #endregion - - #region IAddin Members - public bool Install(IExtensionHost host) - { - IExtensionPoint suiteBuilders = host.GetExtensionPoint( "SuiteBuilders" ); - if ( suiteBuilders == null ) - return false; - - suiteBuilders.Install( this ); - return true; - } - #endregion - } -} http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/Tests/AssemblyInfo.cs ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/Tests/AssemblyInfo.cs b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/Tests/AssemblyInfo.cs deleted file mode 100644 index 9f89a32..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/Tests/AssemblyInfo.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; - -// -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -// -[assembly: AssemblyTitle("")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("")] -[assembly: AssemblyCopyright("")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: - -[assembly: AssemblyVersion("1.0.*")] - -// -// In order to sign your assembly you must specify a key to use. Refer to the -// Microsoft .NET Framework documentation for more information on assembly signing. -// -// Use the attributes below to control which key is used for signing. -// -// Notes: -// (*) If no key is specified, the assembly is not signed. -// (*) KeyName refers to a key that has been installed in the Crypto Service -// Provider (CSP) on your machine. KeyFile refers to a file which contains -// a key. -// (*) If the KeyFile and the KeyName values are both specified, the -// following processing occurs: -// (1) If the KeyName can be found in the CSP, that key is used. -// (2) If the KeyName does not exist and the KeyFile does exist, the key -// in the KeyFile is installed into the CSP and used. -// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. -// When specifying the KeyFile, the location of the KeyFile should be -// relative to the project output directory which is -// %Project Directory%\obj\. For example, if your KeyFile is -// located in the project directory, you would specify the AssemblyKeyFile -// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] -// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework -// documentation for more information on this. -// -[assembly: AssemblyDelaySign(false)] -[assembly: AssemblyKeyFile("")] -[assembly: AssemblyKeyName("")] http://git-wip-us.apache.org/repos/asf/lucenenet/blob/1da1cb5b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/Tests/SampleFixtureExtensionTests.cs ---------------------------------------------------------------------- diff --git a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/Tests/SampleFixtureExtensionTests.cs b/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/Tests/SampleFixtureExtensionTests.cs deleted file mode 100644 index 671fca9..0000000 --- a/lib/NUnit.org/NUnit/2.5.9/samples/Extensibility/Core/SampleFixtureExtension/Tests/SampleFixtureExtensionTests.cs +++ /dev/null @@ -1,48 +0,0 @@ -// **************************************************************** -// Copyright 2007, Charlie Poole -// This is free software licensed under the NUnit license. You may -// obtain a copy of the license at http://nunit.org/?p=license&r=2.4 -// **************************************************************** - -using System; -using NUnit.Framework; -using NUnit.Core.Extensions; - -namespace NUnit.Extensions.Tests -{ - /// - /// Test class that demonstrates SampleFixtureExtension - /// - [SampleFixtureExtension] - public class SampleFixtureExtensionTests - { - [TestFixtureSetUp] - public void SetUpTests() - { - Console.WriteLine( "TestFixtureSetUp called" ); - } - - [TestFixtureTearDown] - public void FixtureTearDown() - { - Console.WriteLine( "TestFixtureTearDown called" ); - } - - [Test] - public void SomeTest() - { - Console.WriteLine( "Hello from some test" ); - } - - [Test] - public void AnotherTest() - { - Console.WriteLine( "Hello from another test" ); - } - - public void NotATest() - { - Console.WriteLine( "I shouldn't be called!" ); - } - } -}