diff options
author | Mike Krüger <mkrueger@novell.com> | 2011-06-04 15:23:33 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@novell.com> | 2011-06-04 15:23:33 +0400 |
commit | 23f1d085450409ee4a2824a2200288d2d934f55e (patch) | |
tree | ac27100cd921b38df8f15e0c5ad05279a894bc57 /main/tests/UnitTests/MonoDevelop.Refactoring | |
parent | b7db7b618be6bb6921a68b3f64dc1d3209481aa8 (diff) |
Removed create/remove backing store refactorings - these operations
are now context actions.
Diffstat (limited to 'main/tests/UnitTests/MonoDevelop.Refactoring')
-rw-r--r-- | main/tests/UnitTests/MonoDevelop.Refactoring/CreateBackingStoreTests.cs | 198 | ||||
-rw-r--r-- | main/tests/UnitTests/MonoDevelop.Refactoring/RemoveBackingStoreTests.cs | 166 |
2 files changed, 182 insertions, 182 deletions
diff --git a/main/tests/UnitTests/MonoDevelop.Refactoring/CreateBackingStoreTests.cs b/main/tests/UnitTests/MonoDevelop.Refactoring/CreateBackingStoreTests.cs index 824a3917a2..2ebfe9029a 100644 --- a/main/tests/UnitTests/MonoDevelop.Refactoring/CreateBackingStoreTests.cs +++ b/main/tests/UnitTests/MonoDevelop.Refactoring/CreateBackingStoreTests.cs @@ -1,99 +1,99 @@ -// -// CreateBackingStoreTests.cs -// -// Author: -// Mike Krüger <mkrueger@novell.com> -// -// Copyright (c) 2009 Novell, Inc (http://www.novell.com) -// -// 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 NUnit.Framework; -using MonoDevelop.Refactoring; -using MonoDevelop.Refactoring.ConvertPropery; -using System.Collections.Generic; - -namespace MonoDevelop.Refactoring.Tests -{ - [TestFixture()] - public class CreateBackingStoreTests : UnitTests.TestBase - { - void TestBackingStore (string inputString, string outputString) - { - CreateBackingStore refactoring = new CreateBackingStore (); - RefactoringOptions options = ExtractMethodTests.CreateRefactoringOptions (inputString); - List<Change> changes = refactoring.PerformChanges (options, null); - string output = ExtractMethodTests.GetOutput (options, changes); - Assert.IsTrue (ExtractMethodTests.CompareSource (output, outputString), "Expected:" + Environment.NewLine + outputString + Environment.NewLine + "was:" + Environment.NewLine + output); - } - - [Test()] - public void CreateBackingStoreTest () - { - TestBackingStore (@"class TestClass -{ - public int $Index { - get; - private set; - } -} -", @"class TestClass -{ - int index; - public int Index { - get { - return index; - } - private set { - index = value; - } - } -} -"); - } - - [Test()] - public void CreateBackingStoreVarInUseTest () - { - TestBackingStore (@"class TestClass -{ - int index; - public int $Index { - get; - private set; - } -} -", @"class TestClass -{ - int index; - int index2; - public int Index { - get { - return index2; - } - private set { - index2 = value; - } - } -} -"); - } - } -} +//// +//// CreateBackingStoreTests.cs +//// +//// Author: +//// Mike Krüger <mkrueger@novell.com> +//// +//// Copyright (c) 2009 Novell, Inc (http://www.novell.com) +//// +//// 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 NUnit.Framework; +//using MonoDevelop.Refactoring; +//using MonoDevelop.Refactoring.ConvertPropery; +//using System.Collections.Generic; +// +//namespace MonoDevelop.Refactoring.Tests +//{ +// [TestFixture()] +// public class CreateBackingStoreTests : UnitTests.TestBase +// { +// void TestBackingStore (string inputString, string outputString) +// { +// CreateBackingStore refactoring = new CreateBackingStore (); +// RefactoringOptions options = ExtractMethodTests.CreateRefactoringOptions (inputString); +// List<Change> changes = refactoring.PerformChanges (options, null); +// string output = ExtractMethodTests.GetOutput (options, changes); +// Assert.IsTrue (ExtractMethodTests.CompareSource (output, outputString), "Expected:" + Environment.NewLine + outputString + Environment.NewLine + "was:" + Environment.NewLine + output); +// } +// +// [Test()] +// public void CreateBackingStoreTest () +// { +// TestBackingStore (@"class TestClass +//{ +// public int $Index { +// get; +// private set; +// } +//} +//", @"class TestClass +//{ +// int index; +// public int Index { +// get { +// return index; +// } +// private set { +// index = value; +// } +// } +//} +//"); +// } +// +// [Test()] +// public void CreateBackingStoreVarInUseTest () +// { +// TestBackingStore (@"class TestClass +//{ +// int index; +// public int $Index { +// get; +// private set; +// } +//} +//", @"class TestClass +//{ +// int index; +// int index2; +// public int Index { +// get { +// return index2; +// } +// private set { +// index2 = value; +// } +// } +//} +//"); +// } +// } +//} diff --git a/main/tests/UnitTests/MonoDevelop.Refactoring/RemoveBackingStoreTests.cs b/main/tests/UnitTests/MonoDevelop.Refactoring/RemoveBackingStoreTests.cs index 66b7d18108..02575c37b9 100644 --- a/main/tests/UnitTests/MonoDevelop.Refactoring/RemoveBackingStoreTests.cs +++ b/main/tests/UnitTests/MonoDevelop.Refactoring/RemoveBackingStoreTests.cs @@ -1,83 +1,83 @@ -// -// RemoveBackingStoreTests.cs -// -// Author: -// Mike Krüger <mkrueger@novell.com> -// -// Copyright (c) 2009 Novell, Inc (http://www.novell.com) -// -// 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 NUnit.Framework; -using MonoDevelop.Refactoring; -using MonoDevelop.Refactoring.ConvertPropery; -using System.Collections.Generic; - -namespace MonoDevelop.Refactoring.Tests -{ - [Ignore] - [TestFixture()] - public class RemoveBackingStoreTests : UnitTests.TestBase - { - void TestBackingStore (string inputString, string outputString) - { - RemoveBackingStore refactoring = new RemoveBackingStore (); - RefactoringOptions options = ExtractMethodTests.CreateRefactoringOptions (inputString); - List<Change> changes = refactoring.PerformChanges (options, null); - string output = ExtractMethodTests.GetOutput (options, changes); - Assert.IsTrue (ExtractMethodTests.CompareSource (output, outputString), "Expected:" + Environment.NewLine + outputString + Environment.NewLine + "was:" + Environment.NewLine + output); - } - - [Test()] - public void RemoveBackingStoreTest () - { - TestBackingStore (@"class TestClass -{ - int index; - public int $Index { - get { - return index; - } - private set { - index = value; - } - } - - void PrintIndex () - { - Console.WriteLine (index); - } -} -", @"class TestClass -{ - public int Index { - get; - private set; - } - void PrintIndex () - { - Console.WriteLine (Index); - } -} -"); - } - - } -} +//// +//// RemoveBackingStoreTests.cs +//// +//// Author: +//// Mike Krüger <mkrueger@novell.com> +//// +//// Copyright (c) 2009 Novell, Inc (http://www.novell.com) +//// +//// 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 NUnit.Framework; +//using MonoDevelop.Refactoring; +//using MonoDevelop.Refactoring.ConvertPropery; +//using System.Collections.Generic; +// +//namespace MonoDevelop.Refactoring.Tests +//{ +// [Ignore] +// [TestFixture()] +// public class RemoveBackingStoreTests : UnitTests.TestBase +// { +// void TestBackingStore (string inputString, string outputString) +// { +// RemoveBackingStore refactoring = new RemoveBackingStore (); +// RefactoringOptions options = ExtractMethodTests.CreateRefactoringOptions (inputString); +// List<Change> changes = refactoring.PerformChanges (options, null); +// string output = ExtractMethodTests.GetOutput (options, changes); +// Assert.IsTrue (ExtractMethodTests.CompareSource (output, outputString), "Expected:" + Environment.NewLine + outputString + Environment.NewLine + "was:" + Environment.NewLine + output); +// } +// +// [Test()] +// public void RemoveBackingStoreTest () +// { +// TestBackingStore (@"class TestClass +//{ +// int index; +// public int $Index { +// get { +// return index; +// } +// private set { +// index = value; +// } +// } +// +// void PrintIndex () +// { +// Console.WriteLine (index); +// } +//} +//", @"class TestClass +//{ +// public int Index { +// get; +// private set; +// } +// void PrintIndex () +// { +// Console.WriteLine (Index); +// } +//} +//"); +// } +// +// } +//} |