From adaa2e63f59c2aff231b30b5e72ea2c3d809f517 Mon Sep 17 00:00:00 2001 From: Terje Sandstrom Date: Sun, 27 Dec 2015 15:42:02 +0100 Subject: [PATCH] Added NUnit standard headers to all files --- .../NUnit2FrameworkProvider.cs | 22 +++++++++++++ .../NUnit2SolutionManager.cs | 32 ++++++++++++------ .../NUnitFrameworkProvider.cs | 32 ++++++++++++------ CreateUnitTests.NUnit/NUnitSolutionManager.cs | 22 +++++++++++++ .../NUnitUnitTestClassManager.cs | 32 ++++++++++++------ .../NUnitUnitTestProjectManager.cs | 33 ++++++++++++------- IntelliTest.NUnit/NUnit2TestFramework.cs | 22 +++++++++++++ IntelliTest.NUnit/NUnitAssertMethodFilter.cs | 24 +++++++++++++- IntelliTest.NUnit/NUnitTestFramework.cs | 31 ++++++++++++----- .../NUnitTestFrameworkPackage.cs | 30 ++++++++++++----- .../NunitTestFrameworkMetadata.cs | 31 ++++++++++++----- notice.md | 1 + 12 files changed, 244 insertions(+), 68 deletions(-) diff --git a/CreateUnitTests.NUnit/NUnit2FrameworkProvider.cs b/CreateUnitTests.NUnit/NUnit2FrameworkProvider.cs index 5f73c7f..01a14ef 100644 --- a/CreateUnitTests.NUnit/NUnit2FrameworkProvider.cs +++ b/CreateUnitTests.NUnit/NUnit2FrameworkProvider.cs @@ -1,3 +1,25 @@ +// *********************************************************************** +// Copyright (c) 2015 Charlie Poole +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// *********************************************************************** using System; using System.ComponentModel.Composition; using Microsoft.VisualStudio.TestPlatform.TestGeneration.Data; diff --git a/CreateUnitTests.NUnit/NUnit2SolutionManager.cs b/CreateUnitTests.NUnit/NUnit2SolutionManager.cs index 611962b..dff964b 100644 --- a/CreateUnitTests.NUnit/NUnit2SolutionManager.cs +++ b/CreateUnitTests.NUnit/NUnit2SolutionManager.cs @@ -1,13 +1,25 @@ -//--------------------------------------------------------------------- -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY -// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT -// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR -// FITNESS FOR A PARTICULAR PURPOSE. -// -// The NUnitSolutionManager type. -//--------------------------------------------------------------------- +// *********************************************************************** +// Copyright (c) 2015 Charlie Poole +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// *********************************************************************** using System; using EnvDTE; diff --git a/CreateUnitTests.NUnit/NUnitFrameworkProvider.cs b/CreateUnitTests.NUnit/NUnitFrameworkProvider.cs index 8846c35..e3eea58 100644 --- a/CreateUnitTests.NUnit/NUnitFrameworkProvider.cs +++ b/CreateUnitTests.NUnit/NUnitFrameworkProvider.cs @@ -1,13 +1,25 @@ -//--------------------------------------------------------------------- -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY -// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT -// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR -// FITNESS FOR A PARTICULAR PURPOSE. -// -// The NUnitFrameworkProvider type. -//--------------------------------------------------------------------- +// *********************************************************************** +// Copyright (c) 2015 Charlie Poole +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// *********************************************************************** using System; using System.ComponentModel.Composition; diff --git a/CreateUnitTests.NUnit/NUnitSolutionManager.cs b/CreateUnitTests.NUnit/NUnitSolutionManager.cs index aa437d0..ca93edc 100644 --- a/CreateUnitTests.NUnit/NUnitSolutionManager.cs +++ b/CreateUnitTests.NUnit/NUnitSolutionManager.cs @@ -1,3 +1,25 @@ +// *********************************************************************** +// Copyright (c) 2015 Charlie Poole +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// *********************************************************************** using System; using EnvDTE; using EnvDTE80; diff --git a/CreateUnitTests.NUnit/NUnitUnitTestClassManager.cs b/CreateUnitTests.NUnit/NUnitUnitTestClassManager.cs index a6ff81c..c4a2cf0 100644 --- a/CreateUnitTests.NUnit/NUnitUnitTestClassManager.cs +++ b/CreateUnitTests.NUnit/NUnitUnitTestClassManager.cs @@ -1,13 +1,25 @@ -//--------------------------------------------------------------------- -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY -// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT -// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR -// FITNESS FOR A PARTICULAR PURPOSE. -// -// The NUnitUnitTestClassManager type. -//--------------------------------------------------------------------- +// *********************************************************************** +// Copyright (c) 2015 Charlie Poole +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// *********************************************************************** using Microsoft.VisualStudio.TestPlatform.TestGeneration.Data; using Microsoft.VisualStudio.TestPlatform.TestGeneration.Model; diff --git a/CreateUnitTests.NUnit/NUnitUnitTestProjectManager.cs b/CreateUnitTests.NUnit/NUnitUnitTestProjectManager.cs index 5712793..c841d43 100644 --- a/CreateUnitTests.NUnit/NUnitUnitTestProjectManager.cs +++ b/CreateUnitTests.NUnit/NUnitUnitTestProjectManager.cs @@ -1,14 +1,25 @@ -//--------------------------------------------------------------------- -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY -// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT -// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR -// FITNESS FOR A PARTICULAR PURPOSE. -// -// The NUnitUnitTestProjectManager type. -//--------------------------------------------------------------------- - +// *********************************************************************** +// Copyright (c) 2015 Charlie Poole +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// *********************************************************************** using System; using EnvDTE; using Microsoft.VisualStudio.TestPlatform.TestGeneration.Model; diff --git a/IntelliTest.NUnit/NUnit2TestFramework.cs b/IntelliTest.NUnit/NUnit2TestFramework.cs index eb28b34..cbe5be1 100644 --- a/IntelliTest.NUnit/NUnit2TestFramework.cs +++ b/IntelliTest.NUnit/NUnit2TestFramework.cs @@ -1,3 +1,25 @@ +// *********************************************************************** +// Copyright (c) 2015 Charlie Poole +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// *********************************************************************** using System; using System.Collections.Generic; using System.IO; diff --git a/IntelliTest.NUnit/NUnitAssertMethodFilter.cs b/IntelliTest.NUnit/NUnitAssertMethodFilter.cs index 1d954ec..8652de5 100644 --- a/IntelliTest.NUnit/NUnitAssertMethodFilter.cs +++ b/IntelliTest.NUnit/NUnitAssertMethodFilter.cs @@ -1,4 +1,26 @@ -using Microsoft.ExtendedReflection.Asserts; +// *********************************************************************** +// Copyright (c) 2015 Charlie Poole +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// *********************************************************************** +using Microsoft.ExtendedReflection.Asserts; using Microsoft.ExtendedReflection.Metadata; using Microsoft.ExtendedReflection.Utilities.Safe.Diagnostics; diff --git a/IntelliTest.NUnit/NUnitTestFramework.cs b/IntelliTest.NUnit/NUnitTestFramework.cs index eec71bc..403afb4 100644 --- a/IntelliTest.NUnit/NUnitTestFramework.cs +++ b/IntelliTest.NUnit/NUnitTestFramework.cs @@ -1,12 +1,25 @@ -// -------------------------------------------------------------------------------------------------------------------- -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// -// NUnit test framework -// -// -------------------------------------------------------------------------------------------------------------------- - +// *********************************************************************** +// Copyright (c) 2015 Charlie Poole +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// *********************************************************************** namespace TestGeneration.Extensions.IntelliTest.NUnit { using System; diff --git a/IntelliTest.NUnit/NUnitTestFrameworkPackage.cs b/IntelliTest.NUnit/NUnitTestFrameworkPackage.cs index e5417dd..0ea1828 100644 --- a/IntelliTest.NUnit/NUnitTestFrameworkPackage.cs +++ b/IntelliTest.NUnit/NUnitTestFrameworkPackage.cs @@ -1,11 +1,25 @@ -// -------------------------------------------------------------------------------------------------------------------- -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// -// Package declaration for NUnit test framework. -// -// -------------------------------------------------------------------------------------------------------------------- +// *********************************************************************** +// Copyright (c) 2015 Charlie Poole +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// *********************************************************************** using Microsoft.Pex.Framework.Packages; diff --git a/IntelliTest.NUnit/NunitTestFrameworkMetadata.cs b/IntelliTest.NUnit/NunitTestFrameworkMetadata.cs index 49f9357..99caf47 100644 --- a/IntelliTest.NUnit/NunitTestFrameworkMetadata.cs +++ b/IntelliTest.NUnit/NunitTestFrameworkMetadata.cs @@ -1,12 +1,25 @@ -// -------------------------------------------------------------------------------------------------------------------- -// -// Copyright (c) Microsoft Corporation. All rights reserved. -// -// -// Metadata for the NUnit framework. -// -// -------------------------------------------------------------------------------------------------------------------- - +// *********************************************************************** +// Copyright (c) 2015 Charlie Poole +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// *********************************************************************** namespace TestGeneration.Extensions.IntelliTest.NUnit { using Microsoft.ExtendedReflection.Metadata.Names; diff --git a/notice.md b/notice.md index b35ac8e..089d682 100644 --- a/notice.md +++ b/notice.md @@ -1 +1,2 @@ +The test generator is based on code provided by Microsoft Corporation under the MIT License Original code, as seen in [this commit](https://github.com/nunit/nunit-vs-testgenerator/releases/tag/OriginalCodeFromMicrosoft), contributed by Microsoft 2015