Merge lp:~anuraj.p/nunitv2/GUIFindTest into lp:nunitv2
- GUIFindTest
- Merge into trunk
Status: | Needs review |
---|---|
Proposed branch: | lp:~anuraj.p/nunitv2/GUIFindTest |
Merge into: | lp:nunitv2 |
Diff against target: |
2593 lines (+1345/-1217) 3 files modified
src/GuiComponents/UiKit/TestTree.cs (+941/-815) src/GuiComponents/UiKit/nunit.uikit.build (+1/-0) src/GuiComponents/UiKit/nunit.uikit.dll.csproj (+403/-402) |
To merge this branch: | bzr merge lp:~anuraj.p/nunitv2/GUIFindTest |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Simone Busoli | Needs Fixing | ||
Review via email: mp+132950@code.launchpad.net |
Commit message
Description of the change
Anuraj P (anuraj.p) wrote : | # |
I modified the build file. I was not using build.bat file. Sorry I missed that. I am not sure why the application is crashing while opening the project, because I didn't changed anything in those code. Anyway I will look into it.
Charlie Poole (charlie.poole) wrote : | # |
Since you requested a merge, I assume you were able to build at some
point - right?
Charlie
On Mon, Nov 5, 2012 at 6:08 PM, Anuraj P <email address hidden> wrote:
> I modified the build file. I was not using build.bat file. Sorry I missed that. I am not sure why the application is crashing while opening the project, because I didn't changed anything in those code. Anyway I will look into it.
> --
> https:/
> You are subscribed to branch lp:nunitv2.
Anuraj P (anuraj.p) wrote : | # |
As I am using Visual Studio to build, it was working without any issue. No problem I modified the build file, and it is committed also.
> Since you requested a merge, I assume you were able to build at some
> point - right?
>
> Charlie
>
> On Mon, Nov 5, 2012 at 6:08 PM, Anuraj P <email address hidden> wrote:
> > I modified the build file. I was not using build.bat file. Sorry I missed
> that. I am not sure why the application is crashing while opening the project,
> because I didn't changed anything in those code. Anyway I will look into it.
> > --
> > https:/
> > You are subscribed to branch lp:nunitv2.
Simone Busoli (simone.busoli) wrote : | # |
Hi Anuraj,
the GUI doesn't crash at startup but when I try to run a test. The repro is
simple, can you try what happens when you build it by:
- running *build.bat*
- executing builds\
- loading the project file located in builds\
- clicking the Run button
? At that point, where the GUI should run all the tests contained in the
project, I get a NRE.
Simone
On Tue, Nov 6, 2012 at 6:06 AM, Anuraj P <email address hidden> wrote:
> As I am using Visual Studio to build, it was working without any issue. No
> problem I modified the build file, and it is committed also.
>
> > Since you requested a merge, I assume you were able to build at some
> > point - right?
> >
> > Charlie
> >
> > On Mon, Nov 5, 2012 at 6:08 PM, Anuraj P <email address hidden> wrote:
> > > I modified the build file. I was not using build.bat file. Sorry I
> missed
> > that. I am not sure why the application is crashing while opening the
> project,
> > because I didn't changed anything in those code. Anyway I will look into
> it.
> > > --
> > > https:/
> > > You are subscribed to branch lp:nunitv2.
> --
> https:/
> You are reviewing the proposed merge of lp:~anuraj.p/nunitv2/GUIFindTest
> into lp:nunitv2.
>
Preview Diff
1 | === added file 'src/GuiComponents/UiKit/Images/search.png' | |||
2 | 0 | Binary files src/GuiComponents/UiKit/Images/search.png 1970-01-01 00:00:00 +0000 and src/GuiComponents/UiKit/Images/search.png 2012-11-06 02:11:19 +0000 differ | 0 | Binary files src/GuiComponents/UiKit/Images/search.png 1970-01-01 00:00:00 +0000 and src/GuiComponents/UiKit/Images/search.png 2012-11-06 02:11:19 +0000 differ |
3 | === modified file 'src/GuiComponents/UiKit/TestTree.cs' | |||
4 | --- src/GuiComponents/UiKit/TestTree.cs 2012-07-21 20:00:21 +0000 | |||
5 | +++ src/GuiComponents/UiKit/TestTree.cs 2012-11-06 02:11:19 +0000 | |||
6 | @@ -1,133 +1,132 @@ | |||
137 | 1 | // **************************************************************** | 1 | // **************************************************************** |
138 | 2 | // This is free software licensed under the NUnit license. You | 2 | // This is free software licensed under the NUnit license. You |
139 | 3 | // may obtain a copy of the license as well as information regarding | 3 | // may obtain a copy of the license as well as information regarding |
140 | 4 | // copyright ownership at http://nunit.org. | 4 | // copyright ownership at http://nunit.org. |
141 | 5 | // **************************************************************** | 5 | // **************************************************************** |
142 | 6 | 6 | ||
143 | 7 | using System; | 7 | using System; |
144 | 8 | using System.Collections; | 8 | using System.Collections; |
145 | 9 | using System.Collections.Generic; | 9 | using System.Collections.Generic; |
146 | 10 | using System.ComponentModel; | 10 | using System.ComponentModel; |
147 | 11 | using System.Drawing; | 11 | using System.Drawing; |
148 | 12 | using System.Data; | 12 | using System.Data; |
149 | 13 | using System.Windows.Forms; | 13 | using System.Windows.Forms; |
150 | 14 | using NUnit.Core; | 14 | using NUnit.Core; |
151 | 15 | using NUnit.Util; | 15 | using NUnit.Util; |
152 | 16 | 16 | ||
153 | 17 | namespace NUnit.UiKit | 17 | namespace NUnit.UiKit |
154 | 18 | { | 18 | { |
155 | 19 | public delegate void SelectedTestsChangedEventHandler(object sender, SelectedTestsChangedEventArgs e); | 19 | public delegate void SelectedTestsChangedEventHandler(object sender, SelectedTestsChangedEventArgs e); |
156 | 20 | /// <summary> | 20 | /// <summary> |
157 | 21 | /// Summary description for TestTree. | 21 | /// Summary description for TestTree. |
158 | 22 | /// </summary> | 22 | /// </summary> |
159 | 23 | public class TestTree : System.Windows.Forms.UserControl | 23 | public class TestTree : System.Windows.Forms.UserControl |
160 | 24 | { | 24 | { |
161 | 25 | #region Instance Variables | 25 | #region Instance Variables |
162 | 26 | 26 | ||
163 | 27 | // Contains all available categories, whether | 27 | // Contains all available categories, whether |
164 | 28 | // selected or not. Unselected members of this | 28 | // selected or not. Unselected members of this |
165 | 29 | // list are displayed in selectedList | 29 | // list are displayed in selectedList |
166 | 30 | private IList availableCategories = new List<string>(); | 30 | private IList availableCategories = new List<string>(); |
167 | 31 | 31 | ||
168 | 32 | // Our test loader | 32 | // Our test loader |
169 | 33 | private TestLoader loader; | 33 | private TestLoader loader; |
170 | 34 | 34 | ||
171 | 35 | private System.Windows.Forms.TabControl tabs; | 35 | private System.Windows.Forms.TabControl tabs; |
172 | 36 | private System.Windows.Forms.TabPage testPage; | 36 | private System.Windows.Forms.TabPage testPage; |
173 | 37 | private System.Windows.Forms.TabPage categoryPage; | 37 | private System.Windows.Forms.TabPage categoryPage; |
174 | 38 | private System.Windows.Forms.Panel testPanel; | 38 | private System.Windows.Forms.Panel testPanel; |
175 | 39 | private System.Windows.Forms.Panel categoryPanel; | 39 | private System.Windows.Forms.Panel categoryPanel; |
176 | 40 | private System.Windows.Forms.Panel treePanel; | 40 | private System.Windows.Forms.Panel buttonPanel; |
177 | 41 | private System.Windows.Forms.Panel buttonPanel; | 41 | private System.Windows.Forms.GroupBox groupBox1; |
178 | 42 | private NUnit.UiKit.TestSuiteTreeView tests; | 42 | private System.Windows.Forms.ListBox availableList; |
179 | 43 | private System.Windows.Forms.GroupBox groupBox1; | 43 | private System.Windows.Forms.GroupBox selectedCategories; |
180 | 44 | private System.Windows.Forms.ListBox availableList; | 44 | private System.Windows.Forms.ListBox selectedList; |
181 | 45 | private System.Windows.Forms.GroupBox selectedCategories; | 45 | private System.Windows.Forms.Panel categoryButtonPanel; |
182 | 46 | private System.Windows.Forms.ListBox selectedList; | 46 | private System.Windows.Forms.Button addCategory; |
183 | 47 | private System.Windows.Forms.Panel categoryButtonPanel; | 47 | private System.Windows.Forms.Button removeCategory; |
184 | 48 | private System.Windows.Forms.Button addCategory; | 48 | private System.Windows.Forms.Button clearAllButton; |
185 | 49 | private System.Windows.Forms.Button removeCategory; | 49 | private System.Windows.Forms.Button checkFailedButton; |
186 | 50 | private System.Windows.Forms.Button clearAllButton; | 50 | private System.Windows.Forms.MenuItem treeMenu; |
187 | 51 | private System.Windows.Forms.Button checkFailedButton; | 51 | private System.Windows.Forms.MenuItem checkBoxesMenuItem; |
188 | 52 | private System.Windows.Forms.MenuItem treeMenu; | 52 | private System.Windows.Forms.MenuItem treeMenuSeparatorItem1; |
189 | 53 | private System.Windows.Forms.MenuItem checkBoxesMenuItem; | 53 | private System.Windows.Forms.MenuItem expandMenuItem; |
190 | 54 | private System.Windows.Forms.MenuItem treeMenuSeparatorItem1; | 54 | private System.Windows.Forms.MenuItem collapseMenuItem; |
191 | 55 | private System.Windows.Forms.MenuItem expandMenuItem; | 55 | private System.Windows.Forms.MenuItem treeMenuSeparatorItem2; |
192 | 56 | private System.Windows.Forms.MenuItem collapseMenuItem; | 56 | private System.Windows.Forms.MenuItem expandAllMenuItem; |
193 | 57 | private System.Windows.Forms.MenuItem treeMenuSeparatorItem2; | 57 | private System.Windows.Forms.MenuItem collapseAllMenuItem; |
194 | 58 | private System.Windows.Forms.MenuItem expandAllMenuItem; | 58 | private System.Windows.Forms.MenuItem hideTestsMenuItem; |
195 | 59 | private System.Windows.Forms.MenuItem collapseAllMenuItem; | 59 | private System.Windows.Forms.MenuItem treeMenuSeparatorItem3; |
196 | 60 | private System.Windows.Forms.MenuItem hideTestsMenuItem; | 60 | private System.Windows.Forms.MenuItem propertiesMenuItem; |
197 | 61 | private System.Windows.Forms.MenuItem treeMenuSeparatorItem3; | 61 | private System.Windows.Forms.CheckBox excludeCheckbox; |
198 | 62 | private System.Windows.Forms.MenuItem propertiesMenuItem; | 62 | |
199 | 63 | private System.Windows.Forms.CheckBox excludeCheckbox; | 63 | #endregion |
200 | 64 | 64 | private Panel treePanel; | |
201 | 65 | /// <summary> | 65 | private TestSuiteTreeView tests; |
202 | 66 | /// Required designer variable. | 66 | private Panel FindTestsPanel; |
203 | 67 | /// </summary> | 67 | private PictureBox SearchImageButton; |
204 | 68 | private System.ComponentModel.Container components = null; | 68 | private TextBox TestNameTextBox; |
205 | 69 | 69 | private IContainer components; | |
206 | 70 | #endregion | 70 | |
207 | 71 | 71 | #region Properties | |
208 | 72 | #region Properties | 72 | |
209 | 73 | 73 | public MenuItem TreeMenu | |
210 | 74 | public MenuItem TreeMenu | 74 | { |
211 | 75 | { | 75 | get { return treeMenu; } |
212 | 76 | get { return treeMenu; } | 76 | } |
213 | 77 | } | 77 | |
214 | 78 | 78 | public string[] SelectedCategories | |
215 | 79 | public string[] SelectedCategories | 79 | { |
216 | 80 | { | 80 | get |
217 | 81 | get | 81 | { |
218 | 82 | { | 82 | int n = this.selectedList.Items.Count; |
219 | 83 | int n = this.selectedList.Items.Count; | 83 | string[] categories = new string[n]; |
220 | 84 | string[] categories = new string[n]; | 84 | for (int i = 0; i < n; i++) |
221 | 85 | for( int i = 0; i < n; i++ ) | 85 | categories[i] = this.selectedList.Items[i].ToString(); |
222 | 86 | categories[i] = this.selectedList.Items[i].ToString(); | 86 | return categories; |
223 | 87 | return categories; | 87 | } |
224 | 88 | } | 88 | } |
225 | 89 | } | 89 | |
226 | 90 | 90 | [Browsable(false)] | |
227 | 91 | [Browsable(false)] | 91 | public bool ShowCheckBoxes |
228 | 92 | public bool ShowCheckBoxes | 92 | { |
229 | 93 | { | 93 | get { return tests.CheckBoxes; } |
230 | 94 | get { return tests.CheckBoxes; } | 94 | set |
231 | 95 | set | 95 | { |
232 | 96 | { | 96 | tests.CheckBoxes = value; |
233 | 97 | tests.CheckBoxes = value; | 97 | buttonPanel.Visible = value; |
234 | 98 | buttonPanel.Visible = value; | 98 | clearAllButton.Visible = value; |
235 | 99 | clearAllButton.Visible = value; | 99 | checkFailedButton.Visible = value; |
236 | 100 | checkFailedButton.Visible = value; | 100 | checkBoxesMenuItem.Checked = value; |
237 | 101 | checkBoxesMenuItem.Checked = value; | 101 | } |
238 | 102 | } | 102 | } |
239 | 103 | } | 103 | #endregion |
240 | 104 | #endregion | 104 | |
241 | 105 | 105 | #region Construction and Initialization | |
242 | 106 | #region Construction and Initialization | 106 | |
243 | 107 | 107 | public TestTree() | |
244 | 108 | public TestTree() | 108 | { |
245 | 109 | { | 109 | // This call is required by the Windows.Forms Form Designer. |
246 | 110 | // This call is required by the Windows.Forms Form Designer. | 110 | InitializeComponent(); |
247 | 111 | InitializeComponent(); | 111 | treeMenu = new MenuItem(); |
248 | 112 | treeMenu = new MenuItem(); | 112 | this.checkBoxesMenuItem = new System.Windows.Forms.MenuItem(); |
249 | 113 | this.checkBoxesMenuItem = new System.Windows.Forms.MenuItem(); | 113 | this.treeMenuSeparatorItem1 = new System.Windows.Forms.MenuItem(); |
250 | 114 | this.treeMenuSeparatorItem1 = new System.Windows.Forms.MenuItem(); | 114 | this.expandMenuItem = new System.Windows.Forms.MenuItem(); |
251 | 115 | this.expandMenuItem = new System.Windows.Forms.MenuItem(); | 115 | this.collapseMenuItem = new System.Windows.Forms.MenuItem(); |
252 | 116 | this.collapseMenuItem = new System.Windows.Forms.MenuItem(); | 116 | this.treeMenuSeparatorItem2 = new System.Windows.Forms.MenuItem(); |
253 | 117 | this.treeMenuSeparatorItem2 = new System.Windows.Forms.MenuItem(); | 117 | this.expandAllMenuItem = new System.Windows.Forms.MenuItem(); |
254 | 118 | this.expandAllMenuItem = new System.Windows.Forms.MenuItem(); | 118 | this.collapseAllMenuItem = new System.Windows.Forms.MenuItem(); |
255 | 119 | this.collapseAllMenuItem = new System.Windows.Forms.MenuItem(); | 119 | this.hideTestsMenuItem = new System.Windows.Forms.MenuItem(); |
256 | 120 | this.hideTestsMenuItem = new System.Windows.Forms.MenuItem(); | 120 | this.treeMenuSeparatorItem3 = new System.Windows.Forms.MenuItem(); |
257 | 121 | this.treeMenuSeparatorItem3 = new System.Windows.Forms.MenuItem(); | 121 | this.propertiesMenuItem = new System.Windows.Forms.MenuItem(); |
258 | 122 | this.propertiesMenuItem = new System.Windows.Forms.MenuItem(); | 122 | |
259 | 123 | 123 | // | |
260 | 124 | // | 124 | // treeMenu |
261 | 125 | // treeMenu | 125 | // |
262 | 126 | // | 126 | this.treeMenu.MergeType = MenuMerge.Add; |
263 | 127 | this.treeMenu.MergeType = MenuMerge.Add; | 127 | this.treeMenu.MergeOrder = 1; |
264 | 128 | this.treeMenu.MergeOrder = 1; | 128 | this.treeMenu.MenuItems.AddRange( |
265 | 129 | this.treeMenu.MenuItems.AddRange( | 129 | new System.Windows.Forms.MenuItem[] |
136 | 130 | new System.Windows.Forms.MenuItem[] | ||
266 | 131 | { | 130 | { |
267 | 132 | this.checkBoxesMenuItem, | 131 | this.checkBoxesMenuItem, |
268 | 133 | this.treeMenuSeparatorItem1, | 132 | this.treeMenuSeparatorItem1, |
269 | @@ -139,688 +138,815 @@ | |||
270 | 139 | this.hideTestsMenuItem, | 138 | this.hideTestsMenuItem, |
271 | 140 | this.treeMenuSeparatorItem3, | 139 | this.treeMenuSeparatorItem3, |
272 | 141 | this.propertiesMenuItem | 140 | this.propertiesMenuItem |
958 | 142 | } ); | 141 | }); |
959 | 143 | this.treeMenu.Text = "&Tree"; | 142 | this.treeMenu.Text = "&Tree"; |
960 | 144 | this.treeMenu.Visible = false; | 143 | this.treeMenu.Visible = false; |
961 | 145 | this.treeMenu.Popup += new System.EventHandler(this.treeMenu_Popup); | 144 | this.treeMenu.Popup += new System.EventHandler(this.treeMenu_Popup); |
962 | 146 | // | 145 | // |
963 | 147 | // checkBoxesMenuItem | 146 | // checkBoxesMenuItem |
964 | 148 | // | 147 | // |
965 | 149 | this.checkBoxesMenuItem.Index = 0; | 148 | this.checkBoxesMenuItem.Index = 0; |
966 | 150 | this.checkBoxesMenuItem.Text = "Show Check&Boxes"; | 149 | this.checkBoxesMenuItem.Text = "Show Check&Boxes"; |
967 | 151 | this.checkBoxesMenuItem.Click += new System.EventHandler(this.checkBoxesMenuItem_Click); | 150 | this.checkBoxesMenuItem.Click += new System.EventHandler(this.checkBoxesMenuItem_Click); |
968 | 152 | // | 151 | // |
969 | 153 | // treeMenuSeparatorItem1 | 152 | // treeMenuSeparatorItem1 |
970 | 154 | // | 153 | // |
971 | 155 | this.treeMenuSeparatorItem1.Index = 1; | 154 | this.treeMenuSeparatorItem1.Index = 1; |
972 | 156 | this.treeMenuSeparatorItem1.Text = "-"; | 155 | this.treeMenuSeparatorItem1.Text = "-"; |
973 | 157 | // | 156 | // |
974 | 158 | // expandMenuItem | 157 | // expandMenuItem |
975 | 159 | // | 158 | // |
976 | 160 | this.expandMenuItem.Index = 2; | 159 | this.expandMenuItem.Index = 2; |
977 | 161 | this.expandMenuItem.Text = "&Expand"; | 160 | this.expandMenuItem.Text = "&Expand"; |
978 | 162 | this.expandMenuItem.Click += new System.EventHandler(this.expandMenuItem_Click); | 161 | this.expandMenuItem.Click += new System.EventHandler(this.expandMenuItem_Click); |
979 | 163 | // | 162 | // |
980 | 164 | // collapseMenuItem | 163 | // collapseMenuItem |
981 | 165 | // | 164 | // |
982 | 166 | this.collapseMenuItem.Index = 3; | 165 | this.collapseMenuItem.Index = 3; |
983 | 167 | this.collapseMenuItem.Text = "&Collapse"; | 166 | this.collapseMenuItem.Text = "&Collapse"; |
984 | 168 | this.collapseMenuItem.Click += new System.EventHandler(this.collapseMenuItem_Click); | 167 | this.collapseMenuItem.Click += new System.EventHandler(this.collapseMenuItem_Click); |
985 | 169 | // | 168 | // |
986 | 170 | // treeMenuSeparatorItem2 | 169 | // treeMenuSeparatorItem2 |
987 | 171 | // | 170 | // |
988 | 172 | this.treeMenuSeparatorItem2.Index = 4; | 171 | this.treeMenuSeparatorItem2.Index = 4; |
989 | 173 | this.treeMenuSeparatorItem2.Text = "-"; | 172 | this.treeMenuSeparatorItem2.Text = "-"; |
990 | 174 | // | 173 | // |
991 | 175 | // expandAllMenuItem | 174 | // expandAllMenuItem |
992 | 176 | // | 175 | // |
993 | 177 | this.expandAllMenuItem.Index = 5; | 176 | this.expandAllMenuItem.Index = 5; |
994 | 178 | this.expandAllMenuItem.Text = "Expand All"; | 177 | this.expandAllMenuItem.Text = "Expand All"; |
995 | 179 | this.expandAllMenuItem.Click += new System.EventHandler(this.expandAllMenuItem_Click); | 178 | this.expandAllMenuItem.Click += new System.EventHandler(this.expandAllMenuItem_Click); |
996 | 180 | // | 179 | // |
997 | 181 | // collapseAllMenuItem | 180 | // collapseAllMenuItem |
998 | 182 | // | 181 | // |
999 | 183 | this.collapseAllMenuItem.Index = 6; | 182 | this.collapseAllMenuItem.Index = 6; |
1000 | 184 | this.collapseAllMenuItem.Text = "Collapse All"; | 183 | this.collapseAllMenuItem.Text = "Collapse All"; |
1001 | 185 | this.collapseAllMenuItem.Click += new System.EventHandler(this.collapseAllMenuItem_Click); | 184 | this.collapseAllMenuItem.Click += new System.EventHandler(this.collapseAllMenuItem_Click); |
1002 | 186 | // | 185 | // |
1003 | 187 | // hideTestsMenuItem | 186 | // hideTestsMenuItem |
1004 | 188 | // | 187 | // |
1005 | 189 | this.hideTestsMenuItem.Index = 7; | 188 | this.hideTestsMenuItem.Index = 7; |
1006 | 190 | this.hideTestsMenuItem.Text = "Hide Tests"; | 189 | this.hideTestsMenuItem.Text = "Hide Tests"; |
1007 | 191 | this.hideTestsMenuItem.Click += new System.EventHandler(this.hideTestsMenuItem_Click); | 190 | this.hideTestsMenuItem.Click += new System.EventHandler(this.hideTestsMenuItem_Click); |
1008 | 192 | // | 191 | // |
1009 | 193 | // treeMenuSeparatorItem3 | 192 | // treeMenuSeparatorItem3 |
1010 | 194 | // | 193 | // |
1011 | 195 | this.treeMenuSeparatorItem3.Index = 8; | 194 | this.treeMenuSeparatorItem3.Index = 8; |
1012 | 196 | this.treeMenuSeparatorItem3.Text = "-"; | 195 | this.treeMenuSeparatorItem3.Text = "-"; |
1013 | 197 | // | 196 | // |
1014 | 198 | // propertiesMenuItem | 197 | // propertiesMenuItem |
1015 | 199 | // | 198 | // |
1016 | 200 | this.propertiesMenuItem.Index = 9; | 199 | this.propertiesMenuItem.Index = 9; |
1017 | 201 | this.propertiesMenuItem.Text = "&Properties"; | 200 | this.propertiesMenuItem.Text = "&Properties"; |
1018 | 202 | this.propertiesMenuItem.Click += new System.EventHandler(this.propertiesMenuItem_Click); | 201 | this.propertiesMenuItem.Click += new System.EventHandler(this.propertiesMenuItem_Click); |
1019 | 203 | 202 | ||
1020 | 204 | 203 | ||
1021 | 205 | tests.SelectedTestChanged += new SelectedTestChangedHandler(tests_SelectedTestChanged); | 204 | tests.SelectedTestChanged += new SelectedTestChangedHandler(tests_SelectedTestChanged); |
1022 | 206 | tests.CheckedTestChanged += new CheckedTestChangedHandler(tests_CheckedTestChanged); | 205 | tests.CheckedTestChanged += new CheckedTestChangedHandler(tests_CheckedTestChanged); |
1023 | 207 | 206 | ||
1024 | 208 | this.excludeCheckbox.Enabled = false; | 207 | this.excludeCheckbox.Enabled = false; |
1025 | 209 | } | 208 | |
1026 | 210 | 209 | SearchImageButton.Image = new Bitmap(typeof(TestTree), "Images.search.png"); | |
1027 | 211 | protected override void OnLoad(EventArgs e) | 210 | } |
1028 | 212 | { | 211 | |
1029 | 213 | if ( !this.DesignMode ) | 212 | protected override void OnLoad(EventArgs e) |
1030 | 214 | { | 213 | { |
1031 | 215 | this.ShowCheckBoxes = | 214 | if (!this.DesignMode) |
1032 | 216 | Services.UserSettings.GetSetting( "Options.ShowCheckBoxes", false ); | 215 | { |
1033 | 217 | Initialize( Services.TestLoader ); | 216 | this.ShowCheckBoxes = |
1034 | 218 | Services.UserSettings.Changed += new SettingsEventHandler(UserSettings_Changed); | 217 | Services.UserSettings.GetSetting("Options.ShowCheckBoxes", false); |
1035 | 219 | } | 218 | Initialize(Services.TestLoader); |
1036 | 220 | 219 | Services.UserSettings.Changed += new SettingsEventHandler(UserSettings_Changed); | |
1037 | 221 | base.OnLoad (e); | 220 | } |
1038 | 222 | } | 221 | |
1039 | 223 | 222 | base.OnLoad(e); | |
1040 | 224 | public void Initialize(TestLoader loader) | 223 | } |
1041 | 225 | { | 224 | |
1042 | 226 | this.tests.Initialize(loader, loader.Events); | 225 | public void Initialize(TestLoader loader) |
1043 | 227 | this.loader = loader; | 226 | { |
1044 | 228 | loader.Events.TestLoaded += new NUnit.Util.TestEventHandler(events_TestLoaded); | 227 | this.tests.Initialize(loader, loader.Events); |
1045 | 229 | loader.Events.TestReloaded += new NUnit.Util.TestEventHandler(events_TestReloaded); | 228 | this.loader = loader; |
1046 | 230 | loader.Events.TestUnloaded += new NUnit.Util.TestEventHandler(events_TestUnloaded); | 229 | loader.Events.TestLoaded += new NUnit.Util.TestEventHandler(events_TestLoaded); |
1047 | 231 | } | 230 | loader.Events.TestReloaded += new NUnit.Util.TestEventHandler(events_TestReloaded); |
1048 | 232 | 231 | loader.Events.TestUnloaded += new NUnit.Util.TestEventHandler(events_TestUnloaded); | |
1049 | 233 | public void SelectCategories( string[] categories, bool exclude ) | 232 | } |
1050 | 234 | { | 233 | |
1051 | 235 | foreach( string category in categories ) | 234 | public void SelectCategories(string[] categories, bool exclude) |
1052 | 236 | { | 235 | { |
1053 | 237 | if ( availableCategories.Contains( category ) ) | 236 | foreach (string category in categories) |
1054 | 238 | { | 237 | { |
1055 | 239 | if (!selectedList.Items.Contains(category)) | 238 | if (availableCategories.Contains(category)) |
1056 | 240 | { | 239 | { |
1057 | 241 | selectedList.Items.Add(category); | 240 | if (!selectedList.Items.Contains(category)) |
1058 | 242 | } | 241 | { |
1059 | 243 | availableList.Items.Remove( category ); | 242 | selectedList.Items.Add(category); |
1060 | 244 | 243 | } | |
1061 | 245 | this.excludeCheckbox.Checked = exclude; | 244 | availableList.Items.Remove(category); |
1062 | 246 | } | 245 | |
1063 | 247 | } | 246 | this.excludeCheckbox.Checked = exclude; |
1064 | 248 | 247 | } | |
1065 | 249 | UpdateCategoryFilter(); | 248 | } |
1066 | 250 | if (this.SelectedCategories.Length > 0) | 249 | |
1067 | 251 | this.excludeCheckbox.Enabled = true; | 250 | UpdateCategoryFilter(); |
1068 | 252 | } | 251 | if (this.SelectedCategories.Length > 0) |
1069 | 253 | 252 | this.excludeCheckbox.Enabled = true; | |
1070 | 254 | /// <summary> | 253 | } |
1071 | 255 | /// Clean up any resources being used. | 254 | |
1072 | 256 | /// </summary> | 255 | /// <summary> |
1073 | 257 | protected override void Dispose( bool disposing ) | 256 | /// Clean up any resources being used. |
1074 | 258 | { | 257 | /// </summary> |
1075 | 259 | if( disposing ) | 258 | protected override void Dispose(bool disposing) |
1076 | 260 | { | 259 | { |
1077 | 261 | if(components != null) | 260 | if (disposing) |
1078 | 262 | { | 261 | { |
1079 | 263 | components.Dispose(); | 262 | if (components != null) |
1080 | 264 | } | 263 | { |
1081 | 265 | } | 264 | components.Dispose(); |
1082 | 266 | base.Dispose( disposing ); | 265 | } |
1083 | 267 | } | 266 | } |
1084 | 268 | 267 | base.Dispose(disposing); | |
1085 | 269 | #endregion | 268 | } |
1086 | 270 | 269 | ||
1087 | 271 | #region View Menu Handlers | 270 | #endregion |
1088 | 272 | 271 | ||
1089 | 273 | private void treeMenu_Popup(object sender, System.EventArgs e) | 272 | #region View Menu Handlers |
1090 | 274 | { | 273 | |
1091 | 275 | TreeNode selectedNode = tests.SelectedNode; | 274 | private void treeMenu_Popup(object sender, System.EventArgs e) |
1092 | 276 | if ( selectedNode != null && selectedNode.Nodes.Count > 0 ) | 275 | { |
1093 | 277 | { | 276 | TreeNode selectedNode = tests.SelectedNode; |
1094 | 278 | bool isExpanded = selectedNode.IsExpanded; | 277 | if (selectedNode != null && selectedNode.Nodes.Count > 0) |
1095 | 279 | collapseMenuItem.Enabled = isExpanded; | 278 | { |
1096 | 280 | expandMenuItem.Enabled = !isExpanded; | 279 | bool isExpanded = selectedNode.IsExpanded; |
1097 | 281 | } | 280 | collapseMenuItem.Enabled = isExpanded; |
1098 | 282 | else | 281 | expandMenuItem.Enabled = !isExpanded; |
1099 | 283 | { | 282 | } |
1100 | 284 | collapseMenuItem.Enabled = expandMenuItem.Enabled = false; | 283 | else |
1101 | 285 | } | 284 | { |
1102 | 286 | } | 285 | collapseMenuItem.Enabled = expandMenuItem.Enabled = false; |
1103 | 287 | 286 | } | |
1104 | 288 | private void collapseMenuItem_Click(object sender, System.EventArgs e) | 287 | } |
1105 | 289 | { | 288 | |
1106 | 290 | tests.SelectedNode.Collapse(); | 289 | private void collapseMenuItem_Click(object sender, System.EventArgs e) |
1107 | 291 | } | 290 | { |
1108 | 292 | 291 | tests.SelectedNode.Collapse(); | |
1109 | 293 | private void expandMenuItem_Click(object sender, System.EventArgs e) | 292 | } |
1110 | 294 | { | 293 | |
1111 | 295 | tests.SelectedNode.Expand(); | 294 | private void expandMenuItem_Click(object sender, System.EventArgs e) |
1112 | 296 | } | 295 | { |
1113 | 297 | 296 | tests.SelectedNode.Expand(); | |
1114 | 298 | private void collapseAllMenuItem_Click(object sender, System.EventArgs e) | 297 | } |
1115 | 299 | { | 298 | |
1116 | 300 | tests.BeginUpdate(); | 299 | private void collapseAllMenuItem_Click(object sender, System.EventArgs e) |
1117 | 301 | tests.CollapseAll(); | 300 | { |
1118 | 302 | tests.EndUpdate(); | 301 | tests.BeginUpdate(); |
1119 | 303 | 302 | tests.CollapseAll(); | |
1120 | 304 | // Compensate for a bug in the underlying control | 303 | tests.EndUpdate(); |
1121 | 305 | if ( tests.Nodes.Count > 0 ) | 304 | |
1122 | 306 | tests.SelectedNode = tests.Nodes[0]; | 305 | // Compensate for a bug in the underlying control |
1123 | 307 | } | 306 | if (tests.Nodes.Count > 0) |
1124 | 308 | 307 | tests.SelectedNode = tests.Nodes[0]; | |
1125 | 309 | private void hideTestsMenuItem_Click(object sender, System.EventArgs e) | 308 | } |
1126 | 310 | { | 309 | |
1127 | 311 | tests.HideTests(); | 310 | private void hideTestsMenuItem_Click(object sender, System.EventArgs e) |
1128 | 312 | } | 311 | { |
1129 | 313 | 312 | tests.HideTests(); | |
1130 | 314 | private void expandAllMenuItem_Click(object sender, System.EventArgs e) | 313 | } |
1131 | 315 | { | 314 | |
1132 | 316 | tests.BeginUpdate(); | 315 | private void expandAllMenuItem_Click(object sender, System.EventArgs e) |
1133 | 317 | tests.ExpandAll(); | 316 | { |
1134 | 318 | tests.EndUpdate(); | 317 | tests.BeginUpdate(); |
1135 | 319 | } | 318 | tests.ExpandAll(); |
1136 | 320 | 319 | tests.EndUpdate(); | |
1137 | 321 | private void propertiesMenuItem_Click(object sender, System.EventArgs e) | 320 | } |
1138 | 322 | { | 321 | |
1139 | 323 | if ( tests.SelectedTest != null ) | 322 | private void propertiesMenuItem_Click(object sender, System.EventArgs e) |
1140 | 324 | tests.ShowPropertiesDialog( tests.SelectedTest ); | 323 | { |
1141 | 325 | } | 324 | if (tests.SelectedTest != null) |
1142 | 326 | 325 | tests.ShowPropertiesDialog(tests.SelectedTest); | |
1143 | 327 | #endregion | 326 | } |
1144 | 328 | 327 | ||
1145 | 329 | #region Component Designer generated code | 328 | #endregion |
1146 | 330 | /// <summary> | 329 | |
1147 | 331 | /// Required method for Designer support - do not modify | 330 | #region Component Designer generated code |
1148 | 332 | /// the contents of this method with the code editor. | 331 | /// <summary> |
1149 | 333 | /// </summary> | 332 | /// Required method for Designer support - do not modify |
1150 | 334 | private void InitializeComponent() | 333 | /// the contents of this method with the code editor. |
1151 | 335 | { | 334 | /// </summary> |
1152 | 336 | this.tabs = new System.Windows.Forms.TabControl(); | 335 | private void InitializeComponent() |
1153 | 337 | this.testPage = new System.Windows.Forms.TabPage(); | 336 | { |
1154 | 338 | this.testPanel = new System.Windows.Forms.Panel(); | 337 | this.components = new System.ComponentModel.Container(); |
1155 | 339 | this.treePanel = new System.Windows.Forms.Panel(); | 338 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TestTree)); |
1156 | 340 | this.tests = new NUnit.UiKit.TestSuiteTreeView(); | 339 | this.tabs = new System.Windows.Forms.TabControl(); |
1157 | 341 | this.buttonPanel = new System.Windows.Forms.Panel(); | 340 | this.testPage = new System.Windows.Forms.TabPage(); |
1158 | 342 | this.checkFailedButton = new System.Windows.Forms.Button(); | 341 | this.testPanel = new System.Windows.Forms.Panel(); |
1159 | 343 | this.clearAllButton = new System.Windows.Forms.Button(); | 342 | this.treePanel = new System.Windows.Forms.Panel(); |
1160 | 344 | this.categoryPage = new System.Windows.Forms.TabPage(); | 343 | this.FindTestsPanel = new System.Windows.Forms.Panel(); |
1161 | 345 | this.categoryPanel = new System.Windows.Forms.Panel(); | 344 | this.SearchImageButton = new System.Windows.Forms.PictureBox(); |
1162 | 346 | this.categoryButtonPanel = new System.Windows.Forms.Panel(); | 345 | this.TestNameTextBox = new System.Windows.Forms.TextBox(); |
1163 | 347 | this.removeCategory = new System.Windows.Forms.Button(); | 346 | this.buttonPanel = new System.Windows.Forms.Panel(); |
1164 | 348 | this.addCategory = new System.Windows.Forms.Button(); | 347 | this.checkFailedButton = new System.Windows.Forms.Button(); |
1165 | 349 | this.selectedCategories = new System.Windows.Forms.GroupBox(); | 348 | this.clearAllButton = new System.Windows.Forms.Button(); |
1166 | 350 | this.selectedList = new System.Windows.Forms.ListBox(); | 349 | this.categoryPage = new System.Windows.Forms.TabPage(); |
1167 | 351 | this.excludeCheckbox = new System.Windows.Forms.CheckBox(); | 350 | this.categoryPanel = new System.Windows.Forms.Panel(); |
1168 | 352 | this.groupBox1 = new System.Windows.Forms.GroupBox(); | 351 | this.categoryButtonPanel = new System.Windows.Forms.Panel(); |
1169 | 353 | this.availableList = new System.Windows.Forms.ListBox(); | 352 | this.removeCategory = new System.Windows.Forms.Button(); |
1170 | 354 | this.tabs.SuspendLayout(); | 353 | this.addCategory = new System.Windows.Forms.Button(); |
1171 | 355 | this.testPage.SuspendLayout(); | 354 | this.selectedCategories = new System.Windows.Forms.GroupBox(); |
1172 | 356 | this.testPanel.SuspendLayout(); | 355 | this.selectedList = new System.Windows.Forms.ListBox(); |
1173 | 357 | this.treePanel.SuspendLayout(); | 356 | this.excludeCheckbox = new System.Windows.Forms.CheckBox(); |
1174 | 358 | this.buttonPanel.SuspendLayout(); | 357 | this.groupBox1 = new System.Windows.Forms.GroupBox(); |
1175 | 359 | this.categoryPage.SuspendLayout(); | 358 | this.availableList = new System.Windows.Forms.ListBox(); |
1176 | 360 | this.categoryPanel.SuspendLayout(); | 359 | this.tests = new NUnit.UiKit.TestSuiteTreeView(); |
1177 | 361 | this.categoryButtonPanel.SuspendLayout(); | 360 | this.tabs.SuspendLayout(); |
1178 | 362 | this.selectedCategories.SuspendLayout(); | 361 | this.testPage.SuspendLayout(); |
1179 | 363 | this.groupBox1.SuspendLayout(); | 362 | this.testPanel.SuspendLayout(); |
1180 | 364 | this.SuspendLayout(); | 363 | this.treePanel.SuspendLayout(); |
1181 | 365 | // | 364 | this.FindTestsPanel.SuspendLayout(); |
1182 | 366 | // tabs | 365 | ((System.ComponentModel.ISupportInitialize)(this.SearchImageButton)).BeginInit(); |
1183 | 367 | // | 366 | this.buttonPanel.SuspendLayout(); |
1184 | 368 | this.tabs.Alignment = System.Windows.Forms.TabAlignment.Left; | 367 | this.categoryPage.SuspendLayout(); |
1185 | 369 | this.tabs.Controls.Add(this.testPage); | 368 | this.categoryPanel.SuspendLayout(); |
1186 | 370 | this.tabs.Controls.Add(this.categoryPage); | 369 | this.categoryButtonPanel.SuspendLayout(); |
1187 | 371 | this.tabs.Dock = System.Windows.Forms.DockStyle.Fill; | 370 | this.selectedCategories.SuspendLayout(); |
1188 | 372 | this.tabs.Location = new System.Drawing.Point(0, 0); | 371 | this.groupBox1.SuspendLayout(); |
1189 | 373 | this.tabs.Multiline = true; | 372 | this.SuspendLayout(); |
1190 | 374 | this.tabs.Name = "tabs"; | 373 | // |
1191 | 375 | this.tabs.SelectedIndex = 0; | 374 | // tabs |
1192 | 376 | this.tabs.Size = new System.Drawing.Size(248, 496); | 375 | // |
1193 | 377 | this.tabs.TabIndex = 0; | 376 | this.tabs.Alignment = System.Windows.Forms.TabAlignment.Left; |
1194 | 378 | // | 377 | this.tabs.Controls.Add(this.testPage); |
1195 | 379 | // testPage | 378 | this.tabs.Controls.Add(this.categoryPage); |
1196 | 380 | // | 379 | this.tabs.Dock = System.Windows.Forms.DockStyle.Fill; |
1197 | 381 | this.testPage.Controls.Add(this.testPanel); | 380 | this.tabs.Location = new System.Drawing.Point(0, 0); |
1198 | 382 | this.testPage.Location = new System.Drawing.Point(25, 4); | 381 | this.tabs.Multiline = true; |
1199 | 383 | this.testPage.Name = "testPage"; | 382 | this.tabs.Name = "tabs"; |
1200 | 384 | this.testPage.Size = new System.Drawing.Size(219, 488); | 383 | this.tabs.SelectedIndex = 0; |
1201 | 385 | this.testPage.TabIndex = 0; | 384 | this.tabs.Size = new System.Drawing.Size(248, 496); |
1202 | 386 | this.testPage.Text = "Tests"; | 385 | this.tabs.TabIndex = 0; |
1203 | 387 | // | 386 | // |
1204 | 388 | // testPanel | 387 | // testPage |
1205 | 389 | // | 388 | // |
1206 | 390 | this.testPanel.Controls.Add(this.treePanel); | 389 | this.testPage.Controls.Add(this.testPanel); |
1207 | 391 | this.testPanel.Controls.Add(this.buttonPanel); | 390 | this.testPage.Location = new System.Drawing.Point(23, 4); |
1208 | 392 | this.testPanel.Dock = System.Windows.Forms.DockStyle.Fill; | 391 | this.testPage.Name = "testPage"; |
1209 | 393 | this.testPanel.Location = new System.Drawing.Point(0, 0); | 392 | this.testPage.Size = new System.Drawing.Size(221, 488); |
1210 | 394 | this.testPanel.Name = "testPanel"; | 393 | this.testPage.TabIndex = 0; |
1211 | 395 | this.testPanel.Size = new System.Drawing.Size(219, 488); | 394 | this.testPage.Text = "Tests"; |
1212 | 396 | this.testPanel.TabIndex = 0; | 395 | // |
1213 | 397 | // | 396 | // testPanel |
1214 | 398 | // treePanel | 397 | // |
1215 | 399 | // | 398 | this.testPanel.Controls.Add(this.treePanel); |
1216 | 400 | this.treePanel.Controls.Add(this.tests); | 399 | this.testPanel.Controls.Add(this.FindTestsPanel); |
1217 | 401 | this.treePanel.Dock = System.Windows.Forms.DockStyle.Fill; | 400 | this.testPanel.Controls.Add(this.buttonPanel); |
1218 | 402 | this.treePanel.Location = new System.Drawing.Point(0, 0); | 401 | this.testPanel.Dock = System.Windows.Forms.DockStyle.Fill; |
1219 | 403 | this.treePanel.Name = "treePanel"; | 402 | this.testPanel.Location = new System.Drawing.Point(0, 0); |
1220 | 404 | this.treePanel.Size = new System.Drawing.Size(219, 448); | 403 | this.testPanel.Name = "testPanel"; |
1221 | 405 | this.treePanel.TabIndex = 0; | 404 | this.testPanel.Size = new System.Drawing.Size(221, 488); |
1222 | 406 | // | 405 | this.testPanel.TabIndex = 0; |
1223 | 407 | // tests | 406 | // |
1224 | 408 | // | 407 | // treePanel |
1225 | 409 | this.tests.AllowDrop = true; | 408 | // |
1226 | 410 | this.tests.Dock = System.Windows.Forms.DockStyle.Fill; | 409 | this.treePanel.Controls.Add(this.tests); |
1227 | 411 | this.tests.HideSelection = false; | 410 | this.treePanel.Dock = System.Windows.Forms.DockStyle.Fill; |
1228 | 412 | this.tests.Location = new System.Drawing.Point(0, 0); | 411 | this.treePanel.Location = new System.Drawing.Point(0, 27); |
1229 | 413 | this.tests.Name = "tests"; | 412 | this.treePanel.Name = "treePanel"; |
1230 | 414 | this.tests.Size = new System.Drawing.Size(219, 448); | 413 | this.treePanel.Size = new System.Drawing.Size(221, 421); |
1231 | 415 | this.tests.TabIndex = 0; | 414 | this.treePanel.TabIndex = 3; |
1232 | 416 | this.tests.CheckBoxesChanged += new System.EventHandler(this.tests_CheckBoxesChanged); | 415 | // |
1233 | 417 | // | 416 | // FindTestsPanel |
1234 | 418 | // buttonPanel | 417 | // |
1235 | 419 | // | 418 | this.FindTestsPanel.Controls.Add(this.SearchImageButton); |
1236 | 420 | this.buttonPanel.Controls.Add(this.checkFailedButton); | 419 | this.FindTestsPanel.Controls.Add(this.TestNameTextBox); |
1237 | 421 | this.buttonPanel.Controls.Add(this.clearAllButton); | 420 | this.FindTestsPanel.Dock = System.Windows.Forms.DockStyle.Top; |
1238 | 422 | this.buttonPanel.Dock = System.Windows.Forms.DockStyle.Bottom; | 421 | this.FindTestsPanel.Location = new System.Drawing.Point(0, 0); |
1239 | 423 | this.buttonPanel.Location = new System.Drawing.Point(0, 448); | 422 | this.FindTestsPanel.Name = "FindTestsPanel"; |
1240 | 424 | this.buttonPanel.Name = "buttonPanel"; | 423 | this.FindTestsPanel.Size = new System.Drawing.Size(221, 27); |
1241 | 425 | this.buttonPanel.Size = new System.Drawing.Size(219, 40); | 424 | this.FindTestsPanel.TabIndex = 2; |
1242 | 426 | this.buttonPanel.TabIndex = 1; | 425 | // |
1243 | 427 | // | 426 | // SearchImageButton |
1244 | 428 | // checkFailedButton | 427 | // |
1245 | 429 | // | 428 | this.SearchImageButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
1246 | 430 | this.checkFailedButton.Anchor = System.Windows.Forms.AnchorStyles.Top; | 429 | | System.Windows.Forms.AnchorStyles.Right))); |
1247 | 431 | this.checkFailedButton.Location = new System.Drawing.Point(117, 8); | 430 | this.SearchImageButton.Location = new System.Drawing.Point(196, 3); |
1248 | 432 | this.checkFailedButton.Name = "checkFailedButton"; | 431 | this.SearchImageButton.Name = "SearchImageButton"; |
1249 | 433 | this.checkFailedButton.Size = new System.Drawing.Size(96, 23); | 432 | this.SearchImageButton.Size = new System.Drawing.Size(22, 20); |
1250 | 434 | this.checkFailedButton.TabIndex = 1; | 433 | this.SearchImageButton.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; |
1251 | 435 | this.checkFailedButton.Text = "Check Failed"; | 434 | this.SearchImageButton.TabIndex = 1; |
1252 | 436 | this.checkFailedButton.Click += new System.EventHandler(this.checkFailedButton_Click); | 435 | this.SearchImageButton.TabStop = false; |
1253 | 437 | // | 436 | this.SearchImageButton.Click += new System.EventHandler(this.SearchImageButton_Click); |
1254 | 438 | // clearAllButton | 437 | // |
1255 | 439 | // | 438 | // TestNameTextBox |
1256 | 440 | this.clearAllButton.Anchor = System.Windows.Forms.AnchorStyles.Top; | 439 | // |
1257 | 441 | this.clearAllButton.Location = new System.Drawing.Point(13, 8); | 440 | this.TestNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
1258 | 442 | this.clearAllButton.Name = "clearAllButton"; | 441 | | System.Windows.Forms.AnchorStyles.Left) |
1259 | 443 | this.clearAllButton.Size = new System.Drawing.Size(96, 23); | 442 | | System.Windows.Forms.AnchorStyles.Right))); |
1260 | 444 | this.clearAllButton.TabIndex = 0; | 443 | this.TestNameTextBox.Location = new System.Drawing.Point(0, 3); |
1261 | 445 | this.clearAllButton.Text = "Clear All"; | 444 | this.TestNameTextBox.Name = "TestNameTextBox"; |
1262 | 446 | this.clearAllButton.Click += new System.EventHandler(this.clearAllButton_Click); | 445 | this.TestNameTextBox.Size = new System.Drawing.Size(192, 20); |
1263 | 447 | // | 446 | this.TestNameTextBox.TabIndex = 0; |
1264 | 448 | // categoryPage | 447 | this.TestNameTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TestNameTextBox_KeyDown); |
1265 | 449 | // | 448 | // |
1266 | 450 | this.categoryPage.Controls.Add(this.categoryPanel); | 449 | // buttonPanel |
1267 | 451 | this.categoryPage.Location = new System.Drawing.Point(25, 4); | 450 | // |
1268 | 452 | this.categoryPage.Name = "categoryPage"; | 451 | this.buttonPanel.Controls.Add(this.checkFailedButton); |
1269 | 453 | this.categoryPage.Size = new System.Drawing.Size(219, 488); | 452 | this.buttonPanel.Controls.Add(this.clearAllButton); |
1270 | 454 | this.categoryPage.TabIndex = 1; | 453 | this.buttonPanel.Dock = System.Windows.Forms.DockStyle.Bottom; |
1271 | 455 | this.categoryPage.Text = "Categories"; | 454 | this.buttonPanel.Location = new System.Drawing.Point(0, 448); |
1272 | 456 | // | 455 | this.buttonPanel.Name = "buttonPanel"; |
1273 | 457 | // categoryPanel | 456 | this.buttonPanel.Size = new System.Drawing.Size(221, 40); |
1274 | 458 | // | 457 | this.buttonPanel.TabIndex = 1; |
1275 | 459 | this.categoryPanel.Controls.Add(this.categoryButtonPanel); | 458 | // |
1276 | 460 | this.categoryPanel.Controls.Add(this.selectedCategories); | 459 | // checkFailedButton |
1277 | 461 | this.categoryPanel.Controls.Add(this.groupBox1); | 460 | // |
1278 | 462 | this.categoryPanel.Dock = System.Windows.Forms.DockStyle.Fill; | 461 | this.checkFailedButton.Anchor = System.Windows.Forms.AnchorStyles.Top; |
1279 | 463 | this.categoryPanel.Location = new System.Drawing.Point(0, 0); | 462 | this.checkFailedButton.Location = new System.Drawing.Point(118, 8); |
1280 | 464 | this.categoryPanel.Name = "categoryPanel"; | 463 | this.checkFailedButton.Name = "checkFailedButton"; |
1281 | 465 | this.categoryPanel.Size = new System.Drawing.Size(219, 488); | 464 | this.checkFailedButton.Size = new System.Drawing.Size(96, 23); |
1282 | 466 | this.categoryPanel.TabIndex = 0; | 465 | this.checkFailedButton.TabIndex = 1; |
1283 | 467 | // | 466 | this.checkFailedButton.Text = "Check Failed"; |
1284 | 468 | // categoryButtonPanel | 467 | this.checkFailedButton.Click += new System.EventHandler(this.checkFailedButton_Click); |
1285 | 469 | // | 468 | // |
1286 | 470 | this.categoryButtonPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | 469 | // clearAllButton |
1287 | 471 | | System.Windows.Forms.AnchorStyles.Right))); | 470 | // |
1288 | 472 | this.categoryButtonPanel.Controls.Add(this.removeCategory); | 471 | this.clearAllButton.Anchor = System.Windows.Forms.AnchorStyles.Top; |
1289 | 473 | this.categoryButtonPanel.Controls.Add(this.addCategory); | 472 | this.clearAllButton.Location = new System.Drawing.Point(14, 8); |
1290 | 474 | this.categoryButtonPanel.Location = new System.Drawing.Point(8, 280); | 473 | this.clearAllButton.Name = "clearAllButton"; |
1291 | 475 | this.categoryButtonPanel.Name = "categoryButtonPanel"; | 474 | this.clearAllButton.Size = new System.Drawing.Size(96, 23); |
1292 | 476 | this.categoryButtonPanel.Size = new System.Drawing.Size(203, 40); | 475 | this.clearAllButton.TabIndex = 0; |
1293 | 477 | this.categoryButtonPanel.TabIndex = 1; | 476 | this.clearAllButton.Text = "Clear All"; |
1294 | 478 | // | 477 | this.clearAllButton.Click += new System.EventHandler(this.clearAllButton_Click); |
1295 | 479 | // removeCategory | 478 | // |
1296 | 480 | // | 479 | // categoryPage |
1297 | 481 | this.removeCategory.Anchor = System.Windows.Forms.AnchorStyles.Top; | 480 | // |
1298 | 482 | this.removeCategory.Location = new System.Drawing.Point(109, 8); | 481 | this.categoryPage.Controls.Add(this.categoryPanel); |
1299 | 483 | this.removeCategory.Name = "removeCategory"; | 482 | this.categoryPage.Location = new System.Drawing.Point(23, 4); |
1300 | 484 | this.removeCategory.TabIndex = 1; | 483 | this.categoryPage.Name = "categoryPage"; |
1301 | 485 | this.removeCategory.Text = "Remove"; | 484 | this.categoryPage.Size = new System.Drawing.Size(221, 488); |
1302 | 486 | this.removeCategory.Click += new System.EventHandler(this.removeCategory_Click); | 485 | this.categoryPage.TabIndex = 1; |
1303 | 487 | // | 486 | this.categoryPage.Text = "Categories"; |
1304 | 488 | // addCategory | 487 | // |
1305 | 489 | // | 488 | // categoryPanel |
1306 | 490 | this.addCategory.Anchor = System.Windows.Forms.AnchorStyles.Top; | 489 | // |
1307 | 491 | this.addCategory.Location = new System.Drawing.Point(21, 8); | 490 | this.categoryPanel.Controls.Add(this.categoryButtonPanel); |
1308 | 492 | this.addCategory.Name = "addCategory"; | 491 | this.categoryPanel.Controls.Add(this.selectedCategories); |
1309 | 493 | this.addCategory.TabIndex = 0; | 492 | this.categoryPanel.Controls.Add(this.groupBox1); |
1310 | 494 | this.addCategory.Text = "Add"; | 493 | this.categoryPanel.Dock = System.Windows.Forms.DockStyle.Fill; |
1311 | 495 | this.addCategory.Click += new System.EventHandler(this.addCategory_Click); | 494 | this.categoryPanel.Location = new System.Drawing.Point(0, 0); |
1312 | 496 | // | 495 | this.categoryPanel.Name = "categoryPanel"; |
1313 | 497 | // selectedCategories | 496 | this.categoryPanel.Size = new System.Drawing.Size(221, 488); |
1314 | 498 | // | 497 | this.categoryPanel.TabIndex = 0; |
1315 | 499 | this.selectedCategories.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | 498 | // |
1316 | 500 | | System.Windows.Forms.AnchorStyles.Right))); | 499 | // categoryButtonPanel |
1317 | 501 | this.selectedCategories.Controls.Add(this.selectedList); | 500 | // |
1318 | 502 | this.selectedCategories.Controls.Add(this.excludeCheckbox); | 501 | this.categoryButtonPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) |
1319 | 503 | this.selectedCategories.Location = new System.Drawing.Point(8, 328); | 502 | | System.Windows.Forms.AnchorStyles.Right))); |
1320 | 504 | this.selectedCategories.Name = "selectedCategories"; | 503 | this.categoryButtonPanel.Controls.Add(this.removeCategory); |
1321 | 505 | this.selectedCategories.Size = new System.Drawing.Size(203, 144); | 504 | this.categoryButtonPanel.Controls.Add(this.addCategory); |
1322 | 506 | this.selectedCategories.TabIndex = 2; | 505 | this.categoryButtonPanel.Location = new System.Drawing.Point(8, 280); |
1323 | 507 | this.selectedCategories.TabStop = false; | 506 | this.categoryButtonPanel.Name = "categoryButtonPanel"; |
1324 | 508 | this.selectedCategories.Text = "Selected Categories"; | 507 | this.categoryButtonPanel.Size = new System.Drawing.Size(205, 40); |
1325 | 509 | // | 508 | this.categoryButtonPanel.TabIndex = 1; |
1326 | 510 | // selectedList | 509 | // |
1327 | 511 | // | 510 | // removeCategory |
1328 | 512 | this.selectedList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | 511 | // |
1329 | 513 | | System.Windows.Forms.AnchorStyles.Left) | 512 | this.removeCategory.Anchor = System.Windows.Forms.AnchorStyles.Top; |
1330 | 514 | | System.Windows.Forms.AnchorStyles.Right))); | 513 | this.removeCategory.Location = new System.Drawing.Point(110, 8); |
1331 | 515 | this.selectedList.ItemHeight = 16; | 514 | this.removeCategory.Name = "removeCategory"; |
1332 | 516 | this.selectedList.Location = new System.Drawing.Point(8, 16); | 515 | this.removeCategory.Size = new System.Drawing.Size(75, 23); |
1333 | 517 | this.selectedList.Name = "selectedList"; | 516 | this.removeCategory.TabIndex = 1; |
1334 | 518 | this.selectedList.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended; | 517 | this.removeCategory.Text = "Remove"; |
1335 | 519 | this.selectedList.Size = new System.Drawing.Size(187, 84); | 518 | this.removeCategory.Click += new System.EventHandler(this.removeCategory_Click); |
1336 | 520 | this.selectedList.TabIndex = 0; | 519 | // |
1337 | 521 | this.selectedList.DoubleClick += new System.EventHandler(this.removeCategory_Click); | 520 | // addCategory |
1338 | 522 | // | 521 | // |
1339 | 523 | // excludeCheckbox | 522 | this.addCategory.Anchor = System.Windows.Forms.AnchorStyles.Top; |
1340 | 524 | // | 523 | this.addCategory.Location = new System.Drawing.Point(22, 8); |
1341 | 525 | this.excludeCheckbox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | 524 | this.addCategory.Name = "addCategory"; |
1342 | 526 | | System.Windows.Forms.AnchorStyles.Right))); | 525 | this.addCategory.Size = new System.Drawing.Size(75, 23); |
1343 | 527 | this.excludeCheckbox.Location = new System.Drawing.Point(8, 120); | 526 | this.addCategory.TabIndex = 0; |
1344 | 528 | this.excludeCheckbox.Name = "excludeCheckbox"; | 527 | this.addCategory.Text = "Add"; |
1345 | 529 | this.excludeCheckbox.Size = new System.Drawing.Size(179, 16); | 528 | this.addCategory.Click += new System.EventHandler(this.addCategory_Click); |
1346 | 530 | this.excludeCheckbox.TabIndex = 1; | 529 | // |
1347 | 531 | this.excludeCheckbox.Text = "Exclude these categories"; | 530 | // selectedCategories |
1348 | 532 | this.excludeCheckbox.CheckedChanged += new System.EventHandler(this.excludeCheckbox_CheckedChanged); | 531 | // |
1349 | 533 | // | 532 | this.selectedCategories.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) |
1350 | 534 | // groupBox1 | 533 | | System.Windows.Forms.AnchorStyles.Right))); |
1351 | 535 | // | 534 | this.selectedCategories.Controls.Add(this.selectedList); |
1352 | 536 | this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | 535 | this.selectedCategories.Controls.Add(this.excludeCheckbox); |
1353 | 537 | | System.Windows.Forms.AnchorStyles.Left) | 536 | this.selectedCategories.Location = new System.Drawing.Point(8, 328); |
1354 | 538 | | System.Windows.Forms.AnchorStyles.Right))); | 537 | this.selectedCategories.Name = "selectedCategories"; |
1355 | 539 | this.groupBox1.Controls.Add(this.availableList); | 538 | this.selectedCategories.Size = new System.Drawing.Size(205, 144); |
1356 | 540 | this.groupBox1.Location = new System.Drawing.Point(8, 0); | 539 | this.selectedCategories.TabIndex = 2; |
1357 | 541 | this.groupBox1.Name = "groupBox1"; | 540 | this.selectedCategories.TabStop = false; |
1358 | 542 | this.groupBox1.Size = new System.Drawing.Size(203, 272); | 541 | this.selectedCategories.Text = "Selected Categories"; |
1359 | 543 | this.groupBox1.TabIndex = 0; | 542 | // |
1360 | 544 | this.groupBox1.TabStop = false; | 543 | // selectedList |
1361 | 545 | this.groupBox1.Text = "Available Categories"; | 544 | // |
1362 | 546 | // | 545 | this.selectedList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
1363 | 547 | // availableList | 546 | | System.Windows.Forms.AnchorStyles.Left) |
1364 | 548 | // | 547 | | System.Windows.Forms.AnchorStyles.Right))); |
1365 | 549 | this.availableList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | 548 | this.selectedList.Location = new System.Drawing.Point(8, 16); |
1366 | 550 | | System.Windows.Forms.AnchorStyles.Left) | 549 | this.selectedList.Name = "selectedList"; |
1367 | 551 | | System.Windows.Forms.AnchorStyles.Right))); | 550 | this.selectedList.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended; |
1368 | 552 | this.availableList.ItemHeight = 16; | 551 | this.selectedList.Size = new System.Drawing.Size(189, 82); |
1369 | 553 | this.availableList.Location = new System.Drawing.Point(8, 24); | 552 | this.selectedList.TabIndex = 0; |
1370 | 554 | this.availableList.Name = "availableList"; | 553 | this.selectedList.DoubleClick += new System.EventHandler(this.removeCategory_Click); |
1371 | 555 | this.availableList.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended; | 554 | // |
1372 | 556 | this.availableList.Size = new System.Drawing.Size(187, 244); | 555 | // excludeCheckbox |
1373 | 557 | this.availableList.TabIndex = 0; | 556 | // |
1374 | 558 | this.availableList.DoubleClick += new System.EventHandler(this.addCategory_Click); | 557 | this.excludeCheckbox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) |
1375 | 559 | // | 558 | | System.Windows.Forms.AnchorStyles.Right))); |
1376 | 560 | // TestTree | 559 | this.excludeCheckbox.Location = new System.Drawing.Point(8, 120); |
1377 | 561 | // | 560 | this.excludeCheckbox.Name = "excludeCheckbox"; |
1378 | 562 | this.Controls.Add(this.tabs); | 561 | this.excludeCheckbox.Size = new System.Drawing.Size(181, 16); |
1379 | 563 | this.Name = "TestTree"; | 562 | this.excludeCheckbox.TabIndex = 1; |
1380 | 564 | this.Size = new System.Drawing.Size(248, 496); | 563 | this.excludeCheckbox.Text = "Exclude these categories"; |
1381 | 565 | this.tabs.ResumeLayout(false); | 564 | this.excludeCheckbox.CheckedChanged += new System.EventHandler(this.excludeCheckbox_CheckedChanged); |
1382 | 566 | this.testPage.ResumeLayout(false); | 565 | // |
1383 | 567 | this.testPanel.ResumeLayout(false); | 566 | // groupBox1 |
1384 | 568 | this.treePanel.ResumeLayout(false); | 567 | // |
1385 | 569 | this.buttonPanel.ResumeLayout(false); | 568 | this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
1386 | 570 | this.categoryPage.ResumeLayout(false); | 569 | | System.Windows.Forms.AnchorStyles.Left) |
1387 | 571 | this.categoryPanel.ResumeLayout(false); | 570 | | System.Windows.Forms.AnchorStyles.Right))); |
1388 | 572 | this.categoryButtonPanel.ResumeLayout(false); | 571 | this.groupBox1.Controls.Add(this.availableList); |
1389 | 573 | this.selectedCategories.ResumeLayout(false); | 572 | this.groupBox1.Location = new System.Drawing.Point(8, 0); |
1390 | 574 | this.groupBox1.ResumeLayout(false); | 573 | this.groupBox1.Name = "groupBox1"; |
1391 | 575 | this.ResumeLayout(false); | 574 | this.groupBox1.Size = new System.Drawing.Size(205, 272); |
1392 | 576 | 575 | this.groupBox1.TabIndex = 0; | |
1393 | 577 | } | 576 | this.groupBox1.TabStop = false; |
1394 | 578 | #endregion | 577 | this.groupBox1.Text = "Available Categories"; |
1395 | 579 | 578 | // | |
1396 | 580 | #region SelectedTestsChanged Event | 579 | // availableList |
1397 | 581 | 580 | // | |
1398 | 582 | public event SelectedTestsChangedEventHandler SelectedTestsChanged; | 581 | this.availableList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) |
1399 | 583 | 582 | | System.Windows.Forms.AnchorStyles.Left) | |
1400 | 584 | #endregion | 583 | | System.Windows.Forms.AnchorStyles.Right))); |
1401 | 585 | 584 | this.availableList.Location = new System.Drawing.Point(8, 24); | |
1402 | 586 | 585 | this.availableList.Name = "availableList"; | |
1403 | 587 | public void RunAllTests() | 586 | this.availableList.SelectionMode = System.Windows.Forms.SelectionMode.MultiExtended; |
1404 | 588 | { | 587 | this.availableList.Size = new System.Drawing.Size(189, 238); |
1405 | 589 | RunAllTests(true); | 588 | this.availableList.TabIndex = 0; |
1406 | 590 | } | 589 | this.availableList.DoubleClick += new System.EventHandler(this.addCategory_Click); |
1407 | 591 | 590 | // | |
1408 | 592 | public void RunAllTests(bool ignoreTests) | 591 | // tests |
1409 | 593 | { | 592 | // |
1410 | 594 | tests.RunAllTests(ignoreTests); | 593 | this.tests.AllowDrop = true; |
1411 | 595 | } | 594 | this.tests.CategoryFilter = ((NUnit.Core.TestFilter)(resources.GetObject("tests.CategoryFilter"))); |
1412 | 596 | 595 | this.tests.Dock = System.Windows.Forms.DockStyle.Fill; | |
1413 | 597 | public void RunSelectedTests() | 596 | this.tests.HideSelection = false; |
1414 | 598 | { | 597 | this.tests.ImageIndex = 0; |
1415 | 599 | tests.RunSelectedTests(); | 598 | this.tests.Location = new System.Drawing.Point(0, 0); |
1416 | 600 | } | 599 | this.tests.Name = "tests"; |
1417 | 601 | 600 | this.tests.SelectedImageIndex = 0; | |
1418 | 602 | public void RunFailedTests() | 601 | this.tests.Size = new System.Drawing.Size(221, 421); |
1419 | 603 | { | 602 | this.tests.TabIndex = 0; |
1420 | 604 | tests.RunFailedTests(); | 603 | this.tests.CheckBoxesChanged += new System.EventHandler(this.tests_CheckBoxesChanged); |
1421 | 605 | } | 604 | // |
1422 | 606 | 605 | // TestTree | |
1423 | 607 | private void addCategory_Click(object sender, System.EventArgs e) | 606 | // |
1424 | 608 | { | 607 | this.Controls.Add(this.tabs); |
1425 | 609 | if (availableList.SelectedItems.Count > 0) | 608 | this.Name = "TestTree"; |
1426 | 610 | { | 609 | this.Size = new System.Drawing.Size(248, 496); |
1427 | 611 | // Create a separate list to avoid exception | 610 | this.tabs.ResumeLayout(false); |
1428 | 612 | // when using the list box directly. | 611 | this.testPage.ResumeLayout(false); |
1429 | 613 | List<string> categories = new List<string>(); | 612 | this.testPanel.ResumeLayout(false); |
1430 | 614 | foreach ( string category in availableList.SelectedItems ) | 613 | this.treePanel.ResumeLayout(false); |
1431 | 615 | categories.Add(category); | 614 | this.FindTestsPanel.ResumeLayout(false); |
1432 | 616 | 615 | this.FindTestsPanel.PerformLayout(); | |
1433 | 617 | foreach ( string category in categories) | 616 | ((System.ComponentModel.ISupportInitialize)(this.SearchImageButton)).EndInit(); |
1434 | 618 | { | 617 | this.buttonPanel.ResumeLayout(false); |
1435 | 619 | selectedList.Items.Add(category); | 618 | this.categoryPage.ResumeLayout(false); |
1436 | 620 | availableList.Items.Remove(category); | 619 | this.categoryPanel.ResumeLayout(false); |
1437 | 621 | } | 620 | this.categoryButtonPanel.ResumeLayout(false); |
1438 | 622 | 621 | this.selectedCategories.ResumeLayout(false); | |
1439 | 623 | UpdateCategoryFilter(); | 622 | this.groupBox1.ResumeLayout(false); |
1440 | 624 | if (this.SelectedCategories.Length > 0) | 623 | this.ResumeLayout(false); |
1441 | 625 | this.excludeCheckbox.Enabled = true; | 624 | |
1442 | 626 | } | 625 | } |
1443 | 627 | } | 626 | #endregion |
1444 | 628 | 627 | ||
1445 | 629 | private void removeCategory_Click(object sender, System.EventArgs e) | 628 | #region SelectedTestsChanged Event |
1446 | 630 | { | 629 | |
1447 | 631 | if (selectedList.SelectedItems.Count > 0) | 630 | public event SelectedTestsChangedEventHandler SelectedTestsChanged; |
1448 | 632 | { | 631 | |
1449 | 633 | // Create a separate list to avoid exception | 632 | #endregion |
1450 | 634 | // when using the list box directly. | 633 | |
1451 | 635 | List<string> categories = new List<string>(); | 634 | |
1452 | 636 | foreach (string category in selectedList.SelectedItems) | 635 | public void RunAllTests() |
1453 | 637 | categories.Add(category); | 636 | { |
1454 | 638 | 637 | RunAllTests(true); | |
1455 | 639 | foreach ( string category in categories ) | 638 | } |
1456 | 640 | { | 639 | |
1457 | 641 | selectedList.Items.Remove(category); | 640 | public void RunAllTests(bool ignoreTests) |
1458 | 642 | availableList.Items.Add(category); | 641 | { |
1459 | 643 | } | 642 | tests.RunAllTests(ignoreTests); |
1460 | 644 | 643 | } | |
1461 | 645 | UpdateCategoryFilter(); | 644 | |
1462 | 646 | if (this.SelectedCategories.Length == 0) | 645 | public void RunSelectedTests() |
1463 | 647 | { | 646 | { |
1464 | 648 | this.excludeCheckbox.Checked = false; | 647 | tests.RunSelectedTests(); |
1465 | 649 | this.excludeCheckbox.Enabled = false; | 648 | } |
1466 | 650 | } | 649 | |
1467 | 651 | } | 650 | public void RunFailedTests() |
1468 | 652 | } | 651 | { |
1469 | 653 | 652 | tests.RunFailedTests(); | |
1470 | 654 | private void clearAllButton_Click(object sender, System.EventArgs e) | 653 | } |
1471 | 655 | { | 654 | |
1472 | 656 | tests.ClearCheckedNodes(); | 655 | private void addCategory_Click(object sender, System.EventArgs e) |
1473 | 657 | } | 656 | { |
1474 | 658 | 657 | if (availableList.SelectedItems.Count > 0) | |
1475 | 659 | private void checkFailedButton_Click(object sender, System.EventArgs e) | 658 | { |
1476 | 660 | { | 659 | // Create a separate list to avoid exception |
1477 | 661 | tests.CheckFailedNodes(); | 660 | // when using the list box directly. |
1478 | 662 | } | 661 | List<string> categories = new List<string>(); |
1479 | 663 | 662 | foreach (string category in availableList.SelectedItems) | |
1480 | 664 | private void tests_SelectedTestChanged(ITest test) | 663 | categories.Add(category); |
1481 | 665 | { | 664 | |
1482 | 666 | if (SelectedTestsChanged != null) | 665 | foreach (string category in categories) |
1483 | 667 | { | 666 | { |
1484 | 668 | SelectedTestsChangedEventArgs args = new SelectedTestsChangedEventArgs(test.TestName.Name, test.TestCount); | 667 | selectedList.Items.Add(category); |
1485 | 669 | SelectedTestsChanged(tests, args); | 668 | availableList.Items.Remove(category); |
1486 | 670 | } | 669 | } |
1487 | 671 | } | 670 | |
1488 | 672 | 671 | UpdateCategoryFilter(); | |
1489 | 673 | private void events_TestLoaded(object sender, NUnit.Util.TestEventArgs args) | 672 | if (this.SelectedCategories.Length > 0) |
1490 | 674 | { | 673 | this.excludeCheckbox.Enabled = true; |
1491 | 675 | treeMenu.Visible = true; | 674 | } |
1492 | 676 | 675 | } | |
1493 | 677 | availableCategories = this.loader.GetCategories(); | 676 | |
1494 | 678 | availableList.Items.Clear(); | 677 | private void removeCategory_Click(object sender, System.EventArgs e) |
1495 | 679 | selectedList.Items.Clear(); | 678 | { |
1496 | 680 | 679 | if (selectedList.SelectedItems.Count > 0) | |
1497 | 681 | availableList.SuspendLayout(); | 680 | { |
1498 | 682 | foreach (string category in availableCategories) | 681 | // Create a separate list to avoid exception |
1499 | 683 | availableList.Items.Add(category); | 682 | // when using the list box directly. |
1500 | 684 | 683 | List<string> categories = new List<string>(); | |
1501 | 685 | // tree may have restored visual state | 684 | foreach (string category in selectedList.SelectedItems) |
1502 | 686 | if( !tests.CategoryFilter.IsEmpty ) | 685 | categories.Add(category); |
1503 | 687 | { | 686 | |
1504 | 688 | ITestFilter filter = tests.CategoryFilter; | 687 | foreach (string category in categories) |
1505 | 689 | if ( filter is NUnit.Core.Filters.NotFilter ) | 688 | { |
1506 | 690 | { | 689 | selectedList.Items.Remove(category); |
1507 | 691 | filter = ((NUnit.Core.Filters.NotFilter)filter).BaseFilter; | 690 | availableList.Items.Add(category); |
1508 | 692 | this.excludeCheckbox.Checked = true; | 691 | } |
1509 | 693 | } | 692 | |
1510 | 694 | 693 | UpdateCategoryFilter(); | |
1511 | 695 | foreach( string cat in ((NUnit.Core.Filters.CategoryFilter)filter).Categories ) | 694 | if (this.SelectedCategories.Length == 0) |
1512 | 696 | if ( this.availableCategories.Contains( cat ) ) | 695 | { |
1513 | 697 | { | 696 | this.excludeCheckbox.Checked = false; |
1514 | 698 | this.availableList.Items.Remove( cat ); | 697 | this.excludeCheckbox.Enabled = false; |
1515 | 699 | this.selectedList.Items.Add( cat ); | 698 | } |
1516 | 700 | this.excludeCheckbox.Enabled = true; | 699 | } |
1517 | 701 | } | 700 | } |
1518 | 702 | 701 | ||
1519 | 703 | UpdateCategoryFilter(); | 702 | private void clearAllButton_Click(object sender, System.EventArgs e) |
1520 | 704 | } | 703 | { |
1521 | 705 | 704 | tests.ClearCheckedNodes(); | |
1522 | 706 | availableList.ResumeLayout(); | 705 | } |
1523 | 707 | } | 706 | |
1524 | 708 | 707 | private void checkFailedButton_Click(object sender, System.EventArgs e) | |
1525 | 709 | private void events_TestReloaded(object sender, NUnit.Util.TestEventArgs args) | 708 | { |
1526 | 710 | { | 709 | tests.CheckFailedNodes(); |
1527 | 711 | // Get new list of available categories | 710 | } |
1528 | 712 | availableCategories = this.loader.GetCategories(); | 711 | |
1529 | 713 | 712 | private void tests_SelectedTestChanged(ITest test) | |
1530 | 714 | // Remove any selected items that are no longer available | 713 | { |
1531 | 715 | int index = selectedList.Items.Count; | 714 | if (SelectedTestsChanged != null) |
1532 | 716 | selectedList.SuspendLayout(); | 715 | { |
1533 | 717 | while( --index >= 0 ) | 716 | SelectedTestsChangedEventArgs args = new SelectedTestsChangedEventArgs(test.TestName.Name, test.TestCount); |
1534 | 718 | { | 717 | SelectedTestsChanged(tests, args); |
1535 | 719 | string category = selectedList.Items[index].ToString(); | 718 | } |
1536 | 720 | if ( !availableCategories.Contains( category ) ) | 719 | } |
1537 | 721 | selectedList.Items.RemoveAt( index ); | 720 | |
1538 | 722 | } | 721 | private void events_TestLoaded(object sender, NUnit.Util.TestEventArgs args) |
1539 | 723 | selectedList.ResumeLayout(); | 722 | { |
1540 | 724 | 723 | treeMenu.Visible = true; | |
1541 | 725 | // Clear check box if there are no more selected items. | 724 | |
1542 | 726 | if (selectedList.Items.Count == 0) | 725 | availableCategories = this.loader.GetCategories(); |
1543 | 727 | excludeCheckbox.Checked = excludeCheckbox.Enabled = false; | 726 | availableList.Items.Clear(); |
1544 | 728 | 727 | selectedList.Items.Clear(); | |
1545 | 729 | // Put any unselected available items on availableList | 728 | |
1546 | 730 | availableList.Items.Clear(); | 729 | availableList.SuspendLayout(); |
1547 | 731 | availableList.SuspendLayout(); | 730 | foreach (string category in availableCategories) |
1548 | 732 | foreach( string category in availableCategories ) | 731 | availableList.Items.Add(category); |
1549 | 733 | if( selectedList.FindStringExact( category ) < 0 ) | 732 | |
1550 | 734 | availableList.Items.Add( category ); | 733 | // tree may have restored visual state |
1551 | 735 | availableList.ResumeLayout(); | 734 | if (!tests.CategoryFilter.IsEmpty) |
1552 | 736 | 735 | { | |
1553 | 737 | // Tell the tree what is selected | 736 | ITestFilter filter = tests.CategoryFilter; |
1554 | 738 | UpdateCategoryFilter(); | 737 | if (filter is NUnit.Core.Filters.NotFilter) |
1555 | 739 | } | 738 | { |
1556 | 740 | 739 | filter = ((NUnit.Core.Filters.NotFilter)filter).BaseFilter; | |
1557 | 741 | private void excludeCheckbox_CheckedChanged(object sender, System.EventArgs e) | 740 | this.excludeCheckbox.Checked = true; |
1558 | 742 | { | 741 | } |
1559 | 743 | UpdateCategoryFilter(); | 742 | |
1560 | 744 | } | 743 | foreach (string cat in ((NUnit.Core.Filters.CategoryFilter)filter).Categories) |
1561 | 745 | 744 | if (this.availableCategories.Contains(cat)) | |
1562 | 746 | private void events_TestUnloaded(object sender, NUnit.Util.TestEventArgs args) | 745 | { |
1563 | 747 | { | 746 | this.availableList.Items.Remove(cat); |
1564 | 748 | availableCategories.Clear(); | 747 | this.selectedList.Items.Add(cat); |
1565 | 749 | availableList.Items.Clear(); | 748 | this.excludeCheckbox.Enabled = true; |
1566 | 750 | selectedList.Items.Clear(); | 749 | } |
1567 | 751 | excludeCheckbox.Checked = false; | 750 | |
1568 | 752 | excludeCheckbox.Enabled = false; | 751 | UpdateCategoryFilter(); |
1569 | 753 | treeMenu.Visible = false; | 752 | } |
1570 | 754 | } | 753 | |
1571 | 755 | 754 | availableList.ResumeLayout(); | |
1572 | 756 | private void tests_CheckedTestChanged(ITest[] tests) | 755 | } |
1573 | 757 | { | 756 | |
1574 | 758 | if (SelectedTestsChanged != null) | 757 | private void events_TestReloaded(object sender, NUnit.Util.TestEventArgs args) |
1575 | 759 | { | 758 | { |
1576 | 760 | SelectedTestsChangedEventArgs args = new SelectedTestsChangedEventArgs("", tests.Length); | 759 | // Get new list of available categories |
1577 | 761 | SelectedTestsChanged(tests, args); | 760 | availableCategories = this.loader.GetCategories(); |
1578 | 762 | } | 761 | |
1579 | 763 | 762 | // Remove any selected items that are no longer available | |
1580 | 764 | if (tests.Length > 0) | 763 | int index = selectedList.Items.Count; |
1581 | 765 | { | 764 | selectedList.SuspendLayout(); |
1582 | 766 | } | 765 | while (--index >= 0) |
1583 | 767 | } | 766 | { |
1584 | 768 | 767 | string category = selectedList.Items[index].ToString(); | |
1585 | 769 | private void checkBoxesMenuItem_Click(object sender, System.EventArgs e) | 768 | if (!availableCategories.Contains(category)) |
1586 | 770 | { | 769 | selectedList.Items.RemoveAt(index); |
1587 | 771 | Services.UserSettings.SaveSetting( "Options.ShowCheckBoxes", | 770 | } |
1588 | 772 | ShowCheckBoxes = !checkBoxesMenuItem.Checked ); | 771 | selectedList.ResumeLayout(); |
1589 | 773 | 772 | ||
1590 | 774 | // Temporary till we can save tree state and restore | 773 | // Clear check box if there are no more selected items. |
1591 | 775 | //this.SetInitialExpansion(); | 774 | if (selectedList.Items.Count == 0) |
1592 | 776 | } | 775 | excludeCheckbox.Checked = excludeCheckbox.Enabled = false; |
1593 | 777 | 776 | ||
1594 | 778 | private void UpdateCategoryFilter() | 777 | // Put any unselected available items on availableList |
1595 | 779 | { | 778 | availableList.Items.Clear(); |
1596 | 780 | TestFilter catFilter; | 779 | availableList.SuspendLayout(); |
1597 | 781 | 780 | foreach (string category in availableCategories) | |
1598 | 782 | if ( SelectedCategories == null || SelectedCategories.Length == 0 ) | 781 | if (selectedList.FindStringExact(category) < 0) |
1599 | 783 | catFilter = TestFilter.Empty; | 782 | availableList.Items.Add(category); |
1600 | 784 | else | 783 | availableList.ResumeLayout(); |
1601 | 785 | catFilter = new NUnit.Core.Filters.CategoryFilter( SelectedCategories ); | 784 | |
1602 | 786 | 785 | // Tell the tree what is selected | |
1603 | 787 | if ( excludeCheckbox.Checked ) | 786 | UpdateCategoryFilter(); |
1604 | 788 | catFilter = new NUnit.Core.Filters.NotFilter( catFilter, true ); | 787 | } |
1605 | 789 | 788 | ||
1606 | 790 | tests.CategoryFilter = catFilter; | 789 | private void excludeCheckbox_CheckedChanged(object sender, System.EventArgs e) |
1607 | 791 | } | 790 | { |
1608 | 792 | 791 | UpdateCategoryFilter(); | |
1609 | 793 | private void tests_CheckBoxesChanged(object sender, System.EventArgs e) | 792 | } |
1610 | 794 | { | 793 | |
1611 | 795 | ShowCheckBoxes = tests.CheckBoxes; | 794 | private void events_TestUnloaded(object sender, NUnit.Util.TestEventArgs args) |
1612 | 796 | } | 795 | { |
1613 | 797 | 796 | availableCategories.Clear(); | |
1614 | 798 | private void UserSettings_Changed(object sender, SettingsEventArgs args) | 797 | availableList.Items.Clear(); |
1615 | 799 | { | 798 | selectedList.Items.Clear(); |
1616 | 800 | if ( args.SettingName == "Options.ShowCheckBoxes" ) | 799 | excludeCheckbox.Checked = false; |
1617 | 801 | this.ShowCheckBoxes = Services.UserSettings.GetSetting( args.SettingName, false ); | 800 | excludeCheckbox.Enabled = false; |
1618 | 802 | } | 801 | treeMenu.Visible = false; |
1619 | 803 | } | 802 | } |
1620 | 804 | 803 | ||
1621 | 805 | public class SelectedTestsChangedEventArgs : EventArgs | 804 | private void tests_CheckedTestChanged(ITest[] tests) |
1622 | 806 | { | 805 | { |
1623 | 807 | private string testName; | 806 | if (SelectedTestsChanged != null) |
1624 | 808 | private int count; | 807 | { |
1625 | 809 | 808 | SelectedTestsChangedEventArgs args = new SelectedTestsChangedEventArgs("", tests.Length); | |
1626 | 810 | public SelectedTestsChangedEventArgs(string testName, int count) | 809 | SelectedTestsChanged(tests, args); |
1627 | 811 | { | 810 | } |
1628 | 812 | this.testName = testName; | 811 | |
1629 | 813 | this.count = count; | 812 | if (tests.Length > 0) |
1630 | 814 | } | 813 | { |
1631 | 815 | 814 | } | |
1632 | 816 | public string TestName | 815 | } |
1633 | 817 | { | 816 | |
1634 | 818 | get { return testName; } | 817 | private void checkBoxesMenuItem_Click(object sender, System.EventArgs e) |
1635 | 819 | } | 818 | { |
1636 | 820 | 819 | Services.UserSettings.SaveSetting("Options.ShowCheckBoxes", | |
1637 | 821 | public int TestCount | 820 | ShowCheckBoxes = !checkBoxesMenuItem.Checked); |
1638 | 822 | { | 821 | |
1639 | 823 | get { return count; } | 822 | // Temporary till we can save tree state and restore |
1640 | 824 | } | 823 | //this.SetInitialExpansion(); |
1641 | 825 | } | 824 | } |
1642 | 826 | } | 825 | |
1643 | 826 | private void UpdateCategoryFilter() | ||
1644 | 827 | { | ||
1645 | 828 | TestFilter catFilter; | ||
1646 | 829 | |||
1647 | 830 | if (SelectedCategories == null || SelectedCategories.Length == 0) | ||
1648 | 831 | catFilter = TestFilter.Empty; | ||
1649 | 832 | else | ||
1650 | 833 | catFilter = new NUnit.Core.Filters.CategoryFilter(SelectedCategories); | ||
1651 | 834 | |||
1652 | 835 | if (excludeCheckbox.Checked) | ||
1653 | 836 | catFilter = new NUnit.Core.Filters.NotFilter(catFilter, true); | ||
1654 | 837 | |||
1655 | 838 | tests.CategoryFilter = catFilter; | ||
1656 | 839 | } | ||
1657 | 840 | |||
1658 | 841 | private void tests_CheckBoxesChanged(object sender, System.EventArgs e) | ||
1659 | 842 | { | ||
1660 | 843 | ShowCheckBoxes = tests.CheckBoxes; | ||
1661 | 844 | } | ||
1662 | 845 | |||
1663 | 846 | private void UserSettings_Changed(object sender, SettingsEventArgs args) | ||
1664 | 847 | { | ||
1665 | 848 | if (args.SettingName == "Options.ShowCheckBoxes") | ||
1666 | 849 | this.ShowCheckBoxes = Services.UserSettings.GetSetting(args.SettingName, false); | ||
1667 | 850 | } | ||
1668 | 851 | |||
1669 | 852 | private Queue<TreeNode> _testCache = new Queue<TreeNode>(); | ||
1670 | 853 | |||
1671 | 854 | private void TestNameTextBox_KeyDown(object sender, KeyEventArgs e) | ||
1672 | 855 | { | ||
1673 | 856 | if (e.KeyCode == Keys.Enter) | ||
1674 | 857 | { | ||
1675 | 858 | e.SuppressKeyPress = true; | ||
1676 | 859 | if (IsFindEnabled()) | ||
1677 | 860 | { | ||
1678 | 861 | FindAndHighlightTest(); | ||
1679 | 862 | } | ||
1680 | 863 | |||
1681 | 864 | return; | ||
1682 | 865 | } | ||
1683 | 866 | |||
1684 | 867 | if (_testCache.Count >= 1) | ||
1685 | 868 | { | ||
1686 | 869 | _testCache.Clear(); | ||
1687 | 870 | } | ||
1688 | 871 | } | ||
1689 | 872 | |||
1690 | 873 | private void SearchImageButton_Click(object sender, EventArgs e) | ||
1691 | 874 | { | ||
1692 | 875 | if (IsFindEnabled()) | ||
1693 | 876 | { | ||
1694 | 877 | FindAndHighlightTest(); | ||
1695 | 878 | } | ||
1696 | 879 | } | ||
1697 | 880 | |||
1698 | 881 | private bool IsFindEnabled() | ||
1699 | 882 | { | ||
1700 | 883 | return !string.IsNullOrEmpty(TestNameTextBox.Text); | ||
1701 | 884 | } | ||
1702 | 885 | |||
1703 | 886 | private void FindAndHighlightTest() | ||
1704 | 887 | { | ||
1705 | 888 | if (_testCache.Count <= 0) | ||
1706 | 889 | { | ||
1707 | 890 | FindTests(); | ||
1708 | 891 | } | ||
1709 | 892 | |||
1710 | 893 | if (_testCache.Count >= 1) | ||
1711 | 894 | { | ||
1712 | 895 | TreeNode selectedNode = _testCache.Dequeue(); | ||
1713 | 896 | tests.SelectedNode = selectedNode; | ||
1714 | 897 | _testCache.Enqueue(selectedNode); | ||
1715 | 898 | } | ||
1716 | 899 | else | ||
1717 | 900 | { | ||
1718 | 901 | MessageDisplay messageDisplay = new MessageDisplay(); | ||
1719 | 902 | messageDisplay.Info("No tests found with name " + TestNameTextBox.Text); | ||
1720 | 903 | } | ||
1721 | 904 | } | ||
1722 | 905 | |||
1723 | 906 | private void FindTests() | ||
1724 | 907 | { | ||
1725 | 908 | TreeNodeCollection nodes = this.tests.Nodes; | ||
1726 | 909 | foreach (TreeNode treenode in nodes) | ||
1727 | 910 | { | ||
1728 | 911 | FindTestsRecursive(treenode); | ||
1729 | 912 | } | ||
1730 | 913 | } | ||
1731 | 914 | |||
1732 | 915 | private void FindTestsRecursive(TreeNode treeNode) | ||
1733 | 916 | { | ||
1734 | 917 | foreach (TreeNode treenode in treeNode.Nodes) | ||
1735 | 918 | { | ||
1736 | 919 | if (TestNameTextBox.Text.Equals(treenode.Text, StringComparison.CurrentCultureIgnoreCase)) | ||
1737 | 920 | { | ||
1738 | 921 | _testCache.Enqueue(treenode); | ||
1739 | 922 | } | ||
1740 | 923 | |||
1741 | 924 | FindTestsRecursive(treenode); | ||
1742 | 925 | } | ||
1743 | 926 | } | ||
1744 | 927 | |||
1745 | 928 | |||
1746 | 929 | } | ||
1747 | 930 | |||
1748 | 931 | public class SelectedTestsChangedEventArgs : EventArgs | ||
1749 | 932 | { | ||
1750 | 933 | private string testName; | ||
1751 | 934 | private int count; | ||
1752 | 935 | |||
1753 | 936 | public SelectedTestsChangedEventArgs(string testName, int count) | ||
1754 | 937 | { | ||
1755 | 938 | this.testName = testName; | ||
1756 | 939 | this.count = count; | ||
1757 | 940 | } | ||
1758 | 941 | |||
1759 | 942 | public string TestName | ||
1760 | 943 | { | ||
1761 | 944 | get { return testName; } | ||
1762 | 945 | } | ||
1763 | 946 | |||
1764 | 947 | public int TestCount | ||
1765 | 948 | { | ||
1766 | 949 | get { return count; } | ||
1767 | 950 | } | ||
1768 | 951 | } | ||
1769 | 952 | } | ||
1770 | 827 | 953 | ||
1771 | === modified file 'src/GuiComponents/UiKit/nunit.uikit.build' | |||
1772 | --- src/GuiComponents/UiKit/nunit.uikit.build 2012-01-15 00:07:19 +0000 | |||
1773 | +++ src/GuiComponents/UiKit/nunit.uikit.build 2012-11-06 02:11:19 +0000 | |||
1774 | @@ -79,6 +79,7 @@ | |||
1775 | 79 | <include name="Images/Ellipsis.gif"/> | 79 | <include name="Images/Ellipsis.gif"/> |
1776 | 80 | <include name="Images/pinned.gif"/> | 80 | <include name="Images/pinned.gif"/> |
1777 | 81 | <include name="Images/unpinned.gif"/> | 81 | <include name="Images/unpinned.gif"/> |
1778 | 82 | <include name="Images/search.png" /> | ||
1779 | 82 | </patternset> | 83 | </patternset> |
1780 | 83 | 84 | ||
1781 | 84 | <patternset id="content-files"> | 85 | <patternset id="content-files"> |
1782 | 85 | 86 | ||
1783 | === modified file 'src/GuiComponents/UiKit/nunit.uikit.dll.csproj' | |||
1784 | --- src/GuiComponents/UiKit/nunit.uikit.dll.csproj 2012-08-08 03:34:12 +0000 | |||
1785 | +++ src/GuiComponents/UiKit/nunit.uikit.dll.csproj 2012-11-06 02:11:19 +0000 | |||
1786 | @@ -1,403 +1,404 @@ | |||
2189 | 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
2190 | 2 | <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | 2 | <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> |
2191 | 3 | <PropertyGroup> | 3 | <PropertyGroup> |
2192 | 4 | <ProjectType>Local</ProjectType> | 4 | <ProjectType>Local</ProjectType> |
2193 | 5 | <ProductVersion>9.0.30729</ProductVersion> | 5 | <ProductVersion>9.0.30729</ProductVersion> |
2194 | 6 | <SchemaVersion>2.0</SchemaVersion> | 6 | <SchemaVersion>2.0</SchemaVersion> |
2195 | 7 | <ProjectGuid>{27531BBF-183D-4C3A-935B-D840B9F1A3A4}</ProjectGuid> | 7 | <ProjectGuid>{27531BBF-183D-4C3A-935B-D840B9F1A3A4}</ProjectGuid> |
2196 | 8 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | 8 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
2197 | 9 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | 9 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
2198 | 10 | <AssemblyKeyContainerName> | 10 | <AssemblyKeyContainerName> |
2199 | 11 | </AssemblyKeyContainerName> | 11 | </AssemblyKeyContainerName> |
2200 | 12 | <AssemblyName>nunit.uikit</AssemblyName> | 12 | <AssemblyName>nunit.uikit</AssemblyName> |
2201 | 13 | <DefaultClientScript>JScript</DefaultClientScript> | 13 | <DefaultClientScript>JScript</DefaultClientScript> |
2202 | 14 | <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout> | 14 | <DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout> |
2203 | 15 | <DefaultTargetSchema>IE50</DefaultTargetSchema> | 15 | <DefaultTargetSchema>IE50</DefaultTargetSchema> |
2204 | 16 | <DelaySign>false</DelaySign> | 16 | <DelaySign>false</DelaySign> |
2205 | 17 | <OutputType>Library</OutputType> | 17 | <OutputType>Library</OutputType> |
2206 | 18 | <RootNamespace>NUnit.UiKit</RootNamespace> | 18 | <RootNamespace>NUnit.UiKit</RootNamespace> |
2207 | 19 | <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent> | 19 | <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent> |
2208 | 20 | <FileUpgradeFlags> | 20 | <FileUpgradeFlags> |
2209 | 21 | </FileUpgradeFlags> | 21 | </FileUpgradeFlags> |
2210 | 22 | <UpgradeBackupLocation> | 22 | <UpgradeBackupLocation> |
2211 | 23 | </UpgradeBackupLocation> | 23 | </UpgradeBackupLocation> |
2212 | 24 | <OldToolsVersion>3.5</OldToolsVersion> | 24 | <OldToolsVersion>3.5</OldToolsVersion> |
2213 | 25 | <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> | 25 | <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> |
2214 | 26 | <PublishUrl>publish\</PublishUrl> | 26 | <PublishUrl>publish\</PublishUrl> |
2215 | 27 | <Install>true</Install> | 27 | <Install>true</Install> |
2216 | 28 | <InstallFrom>Disk</InstallFrom> | 28 | <InstallFrom>Disk</InstallFrom> |
2217 | 29 | <UpdateEnabled>false</UpdateEnabled> | 29 | <UpdateEnabled>false</UpdateEnabled> |
2218 | 30 | <UpdateMode>Foreground</UpdateMode> | 30 | <UpdateMode>Foreground</UpdateMode> |
2219 | 31 | <UpdateInterval>7</UpdateInterval> | 31 | <UpdateInterval>7</UpdateInterval> |
2220 | 32 | <UpdateIntervalUnits>Days</UpdateIntervalUnits> | 32 | <UpdateIntervalUnits>Days</UpdateIntervalUnits> |
2221 | 33 | <UpdatePeriodically>false</UpdatePeriodically> | 33 | <UpdatePeriodically>false</UpdatePeriodically> |
2222 | 34 | <UpdateRequired>false</UpdateRequired> | 34 | <UpdateRequired>false</UpdateRequired> |
2223 | 35 | <MapFileExtensions>true</MapFileExtensions> | 35 | <MapFileExtensions>true</MapFileExtensions> |
2224 | 36 | <ApplicationRevision>0</ApplicationRevision> | 36 | <ApplicationRevision>0</ApplicationRevision> |
2225 | 37 | <ApplicationVersion>1.0.0.%2a</ApplicationVersion> | 37 | <ApplicationVersion>1.0.0.%2a</ApplicationVersion> |
2226 | 38 | <IsWebBootstrapper>false</IsWebBootstrapper> | 38 | <IsWebBootstrapper>false</IsWebBootstrapper> |
2227 | 39 | <UseApplicationTrust>false</UseApplicationTrust> | 39 | <UseApplicationTrust>false</UseApplicationTrust> |
2228 | 40 | <BootstrapperEnabled>true</BootstrapperEnabled> | 40 | <BootstrapperEnabled>true</BootstrapperEnabled> |
2229 | 41 | </PropertyGroup> | 41 | </PropertyGroup> |
2230 | 42 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | 42 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
2231 | 43 | <OutputPath>..\..\..\bin\Debug\lib\</OutputPath> | 43 | <OutputPath>..\..\..\bin\Debug\lib\</OutputPath> |
2232 | 44 | <BaseAddress>285212672</BaseAddress> | 44 | <BaseAddress>285212672</BaseAddress> |
2233 | 45 | <ConfigurationOverrideFile> | 45 | <ConfigurationOverrideFile> |
2234 | 46 | </ConfigurationOverrideFile> | 46 | </ConfigurationOverrideFile> |
2235 | 47 | <DefineConstants>TRACE;DEBUG;CLR_2_0,NET_2_0,CS_3_0</DefineConstants> | 47 | <DefineConstants>TRACE;DEBUG;CLR_2_0,NET_2_0,CS_3_0</DefineConstants> |
2236 | 48 | <DocumentationFile> | 48 | <DocumentationFile> |
2237 | 49 | </DocumentationFile> | 49 | </DocumentationFile> |
2238 | 50 | <DebugSymbols>true</DebugSymbols> | 50 | <DebugSymbols>true</DebugSymbols> |
2239 | 51 | <FileAlignment>4096</FileAlignment> | 51 | <FileAlignment>4096</FileAlignment> |
2240 | 52 | <NoWarn>1699</NoWarn> | 52 | <NoWarn>1699</NoWarn> |
2241 | 53 | <Optimize>false</Optimize> | 53 | <Optimize>false</Optimize> |
2242 | 54 | <RegisterForComInterop>false</RegisterForComInterop> | 54 | <RegisterForComInterop>false</RegisterForComInterop> |
2243 | 55 | <RemoveIntegerChecks>false</RemoveIntegerChecks> | 55 | <RemoveIntegerChecks>false</RemoveIntegerChecks> |
2244 | 56 | <WarningLevel>4</WarningLevel> | 56 | <WarningLevel>4</WarningLevel> |
2245 | 57 | <DebugType>full</DebugType> | 57 | <DebugType>full</DebugType> |
2246 | 58 | <ErrorReport>prompt</ErrorReport> | 58 | <ErrorReport>prompt</ErrorReport> |
2247 | 59 | <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> | 59 | <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> |
2248 | 60 | </PropertyGroup> | 60 | </PropertyGroup> |
2249 | 61 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | 61 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
2250 | 62 | <OutputPath>..\..\..\bin\Release\lib\</OutputPath> | 62 | <OutputPath>..\..\..\bin\Release\lib\</OutputPath> |
2251 | 63 | <BaseAddress>285212672</BaseAddress> | 63 | <BaseAddress>285212672</BaseAddress> |
2252 | 64 | <ConfigurationOverrideFile> | 64 | <ConfigurationOverrideFile> |
2253 | 65 | </ConfigurationOverrideFile> | 65 | </ConfigurationOverrideFile> |
2254 | 66 | <DefineConstants>TRACE;CLR_2_0,NET_2_0,CS_3_0</DefineConstants> | 66 | <DefineConstants>TRACE;CLR_2_0,NET_2_0,CS_3_0</DefineConstants> |
2255 | 67 | <DocumentationFile> | 67 | <DocumentationFile> |
2256 | 68 | </DocumentationFile> | 68 | </DocumentationFile> |
2257 | 69 | <FileAlignment>4096</FileAlignment> | 69 | <FileAlignment>4096</FileAlignment> |
2258 | 70 | <NoWarn>1699</NoWarn> | 70 | <NoWarn>1699</NoWarn> |
2259 | 71 | <Optimize>true</Optimize> | 71 | <Optimize>true</Optimize> |
2260 | 72 | <RegisterForComInterop>false</RegisterForComInterop> | 72 | <RegisterForComInterop>false</RegisterForComInterop> |
2261 | 73 | <RemoveIntegerChecks>false</RemoveIntegerChecks> | 73 | <RemoveIntegerChecks>false</RemoveIntegerChecks> |
2262 | 74 | <WarningLevel>4</WarningLevel> | 74 | <WarningLevel>4</WarningLevel> |
2263 | 75 | <DebugType>none</DebugType> | 75 | <DebugType>none</DebugType> |
2264 | 76 | <ErrorReport>prompt</ErrorReport> | 76 | <ErrorReport>prompt</ErrorReport> |
2265 | 77 | <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> | 77 | <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> |
2266 | 78 | </PropertyGroup> | 78 | </PropertyGroup> |
2267 | 79 | <ItemGroup> | 79 | <ItemGroup> |
2268 | 80 | <Reference Include="System"> | 80 | <Reference Include="System"> |
2269 | 81 | <Name>System</Name> | 81 | <Name>System</Name> |
2270 | 82 | </Reference> | 82 | </Reference> |
2271 | 83 | <Reference Include="System.Data"> | 83 | <Reference Include="System.Data"> |
2272 | 84 | <Name>System.Data</Name> | 84 | <Name>System.Data</Name> |
2273 | 85 | </Reference> | 85 | </Reference> |
2274 | 86 | <Reference Include="System.Drawing"> | 86 | <Reference Include="System.Drawing"> |
2275 | 87 | <Name>System.Drawing</Name> | 87 | <Name>System.Drawing</Name> |
2276 | 88 | </Reference> | 88 | </Reference> |
2277 | 89 | <Reference Include="System.Windows.Forms"> | 89 | <Reference Include="System.Windows.Forms"> |
2278 | 90 | <Name>System.Windows.Forms</Name> | 90 | <Name>System.Windows.Forms</Name> |
2279 | 91 | </Reference> | 91 | </Reference> |
2280 | 92 | <Reference Include="System.Xml"> | 92 | <Reference Include="System.Xml"> |
2281 | 93 | <Name>System.XML</Name> | 93 | <Name>System.XML</Name> |
2282 | 94 | </Reference> | 94 | </Reference> |
2283 | 95 | <ProjectReference Include="..\..\ClientUtilities\util\nunit.util.dll.csproj"> | 95 | <ProjectReference Include="..\..\ClientUtilities\util\nunit.util.dll.csproj"> |
2284 | 96 | <Name>nunit.util.dll</Name> | 96 | <Name>nunit.util.dll</Name> |
2285 | 97 | <Project>{61CE9CE5-943E-44D4-A381-814DC1406767}</Project> | 97 | <Project>{61CE9CE5-943E-44D4-A381-814DC1406767}</Project> |
2286 | 98 | <Private>False</Private> | 98 | <Private>False</Private> |
2287 | 99 | </ProjectReference> | 99 | </ProjectReference> |
2288 | 100 | <ProjectReference Include="..\..\NUnitCore\core\nunit.core.dll.csproj"> | 100 | <ProjectReference Include="..\..\NUnitCore\core\nunit.core.dll.csproj"> |
2289 | 101 | <Project>{EBD43A7F-AFCA-4281-BB53-5CDD91F966A3}</Project> | 101 | <Project>{EBD43A7F-AFCA-4281-BB53-5CDD91F966A3}</Project> |
2290 | 102 | <Name>nunit.core.dll</Name> | 102 | <Name>nunit.core.dll</Name> |
2291 | 103 | <Private>False</Private> | 103 | <Private>False</Private> |
2292 | 104 | </ProjectReference> | 104 | </ProjectReference> |
2293 | 105 | <ProjectReference Include="..\..\NUnitCore\interfaces\nunit.core.interfaces.dll.csproj"> | 105 | <ProjectReference Include="..\..\NUnitCore\interfaces\nunit.core.interfaces.dll.csproj"> |
2294 | 106 | <Name>nunit.core.interfaces.dll</Name> | 106 | <Name>nunit.core.interfaces.dll</Name> |
2295 | 107 | <Project>{435428F8-5995-4CE4-8022-93D595A8CC0F}</Project> | 107 | <Project>{435428F8-5995-4CE4-8022-93D595A8CC0F}</Project> |
2296 | 108 | <Private>False</Private> | 108 | <Private>False</Private> |
2297 | 109 | </ProjectReference> | 109 | </ProjectReference> |
2298 | 110 | <ProjectReference Include="..\..\GuiException\UiException\nunit.uiexception.dll.csproj"> | 110 | <ProjectReference Include="..\..\GuiException\UiException\nunit.uiexception.dll.csproj"> |
2299 | 111 | <Project>{3E87A106-EB20-4147-84C8-95B0BB43A1D4}</Project> | 111 | <Project>{3E87A106-EB20-4147-84C8-95B0BB43A1D4}</Project> |
2300 | 112 | <Name>nunit.uiexception.dll</Name> | 112 | <Name>nunit.uiexception.dll</Name> |
2301 | 113 | <Private>False</Private> | 113 | <Private>False</Private> |
2302 | 114 | </ProjectReference> | 114 | </ProjectReference> |
2303 | 115 | </ItemGroup> | 115 | </ItemGroup> |
2304 | 116 | <ItemGroup> | 116 | <ItemGroup> |
2305 | 117 | <Compile Include="..\..\CommonAssemblyInfo.cs"> | 117 | <Compile Include="..\..\CommonAssemblyInfo.cs"> |
2306 | 118 | <Link>CommonAssemblyInfo.cs</Link> | 118 | <Link>CommonAssemblyInfo.cs</Link> |
2307 | 119 | </Compile> | 119 | </Compile> |
2308 | 120 | <Compile Include="AddConfigurationDialog.cs"> | 120 | <Compile Include="AddConfigurationDialog.cs"> |
2309 | 121 | <SubType>Form</SubType> | 121 | <SubType>Form</SubType> |
2310 | 122 | </Compile> | 122 | </Compile> |
2311 | 123 | <Compile Include="AddTabPageDialog.cs"> | 123 | <Compile Include="AddTabPageDialog.cs"> |
2312 | 124 | <SubType>Form</SubType> | 124 | <SubType>Form</SubType> |
2313 | 125 | </Compile> | 125 | </Compile> |
2314 | 126 | <Compile Include="AppContainer.cs" /> | 126 | <Compile Include="AppContainer.cs" /> |
2315 | 127 | <Compile Include="AssemblyInfo.cs" /> | 127 | <Compile Include="AssemblyInfo.cs" /> |
2316 | 128 | <Compile Include="ConfigurationEditor.cs"> | 128 | <Compile Include="ConfigurationEditor.cs"> |
2317 | 129 | <SubType>Form</SubType> | 129 | <SubType>Form</SubType> |
2318 | 130 | </Compile> | 130 | </Compile> |
2319 | 131 | <Compile Include="EditTabPagesDialog.cs"> | 131 | <Compile Include="EditTabPagesDialog.cs"> |
2320 | 132 | <SubType>Form</SubType> | 132 | <SubType>Form</SubType> |
2321 | 133 | </Compile> | 133 | </Compile> |
2322 | 134 | <Compile Include="ErrorDisplay.cs"> | 134 | <Compile Include="ErrorDisplay.cs"> |
2323 | 135 | <SubType>UserControl</SubType> | 135 | <SubType>UserControl</SubType> |
2324 | 136 | </Compile> | 136 | </Compile> |
2325 | 137 | <Compile Include="ExpandingLabel.cs"> | 137 | <Compile Include="ExpandingLabel.cs"> |
2326 | 138 | <SubType>Component</SubType> | 138 | <SubType>Component</SubType> |
2327 | 139 | </Compile> | 139 | </Compile> |
2328 | 140 | <Compile Include="ExpandingTextBox.cs"> | 140 | <Compile Include="ExpandingTextBox.cs"> |
2329 | 141 | <SubType>Component</SubType> | 141 | <SubType>Component</SubType> |
2330 | 142 | </Compile> | 142 | </Compile> |
2331 | 143 | <Compile Include="GuiAttachedConsole.cs" /> | 143 | <Compile Include="GuiAttachedConsole.cs" /> |
2332 | 144 | <Compile Include="GuiTestEventDispatcher.cs" /> | 144 | <Compile Include="GuiTestEventDispatcher.cs" /> |
2333 | 145 | <Compile Include="IMessageDisplay.cs" /> | 145 | <Compile Include="IMessageDisplay.cs" /> |
2334 | 146 | <Compile Include="LongRunningOperationDisplay.cs"> | 146 | <Compile Include="LongRunningOperationDisplay.cs"> |
2335 | 147 | <SubType>Form</SubType> | 147 | <SubType>Form</SubType> |
2336 | 148 | </Compile> | 148 | </Compile> |
2337 | 149 | <Compile Include="NotRunTree.cs"> | 149 | <Compile Include="NotRunTree.cs"> |
2338 | 150 | <SubType>Component</SubType> | 150 | <SubType>Component</SubType> |
2339 | 151 | </Compile> | 151 | </Compile> |
2340 | 152 | <Compile Include="NUnitFormBase.cs"> | 152 | <Compile Include="NUnitFormBase.cs"> |
2341 | 153 | <SubType>Form</SubType> | 153 | <SubType>Form</SubType> |
2342 | 154 | </Compile> | 154 | </Compile> |
2343 | 155 | <Compile Include="ProgressBar.cs"> | 155 | <Compile Include="ProgressBar.cs"> |
2344 | 156 | <SubType>Component</SubType> | 156 | <SubType>Component</SubType> |
2345 | 157 | </Compile> | 157 | </Compile> |
2346 | 158 | <Compile Include="RenameConfigurationDialog.cs"> | 158 | <Compile Include="RenameConfigurationDialog.cs"> |
2347 | 159 | <SubType>Form</SubType> | 159 | <SubType>Form</SubType> |
2348 | 160 | </Compile> | 160 | </Compile> |
2349 | 161 | <Compile Include="ResultTabs.cs"> | 161 | <Compile Include="ResultTabs.cs"> |
2350 | 162 | <SubType>UserControl</SubType> | 162 | <SubType>UserControl</SubType> |
2351 | 163 | </Compile> | 163 | </Compile> |
2352 | 164 | <Compile Include="ScrollingTextDisplayForm.cs"> | 164 | <Compile Include="ScrollingTextDisplayForm.cs"> |
2353 | 165 | <SubType>Form</SubType> | 165 | <SubType>Form</SubType> |
2354 | 166 | </Compile> | 166 | </Compile> |
2355 | 167 | <Compile Include="SettingsDialogBase.cs"> | 167 | <Compile Include="SettingsDialogBase.cs"> |
2356 | 168 | <SubType>Form</SubType> | 168 | <SubType>Form</SubType> |
2357 | 169 | </Compile> | 169 | </Compile> |
2358 | 170 | <Compile Include="SettingsPage.cs"> | 170 | <Compile Include="SettingsPage.cs"> |
2359 | 171 | <SubType>UserControl</SubType> | 171 | <SubType>UserControl</SubType> |
2360 | 172 | </Compile> | 172 | </Compile> |
2361 | 173 | <Compile Include="SimpleSettingsDialog.cs"> | 173 | <Compile Include="SimpleSettingsDialog.cs"> |
2362 | 174 | <SubType>Form</SubType> | 174 | <SubType>Form</SubType> |
2363 | 175 | </Compile> | 175 | </Compile> |
2364 | 176 | <Compile Include="StatusBar.cs"> | 176 | <Compile Include="StatusBar.cs"> |
2365 | 177 | <SubType>Component</SubType> | 177 | <SubType>Component</SubType> |
2366 | 178 | </Compile> | 178 | </Compile> |
2367 | 179 | <Compile Include="TabbedSettingsDialog.cs"> | 179 | <Compile Include="TabbedSettingsDialog.cs"> |
2368 | 180 | <SubType>Form</SubType> | 180 | <SubType>Form</SubType> |
2369 | 181 | </Compile> | 181 | </Compile> |
2370 | 182 | <Compile Include="TestPropertiesDialog.cs"> | 182 | <Compile Include="TestPropertiesDialog.cs"> |
2371 | 183 | <SubType>Form</SubType> | 183 | <SubType>Form</SubType> |
2372 | 184 | </Compile> | 184 | </Compile> |
2373 | 185 | <Compile Include="TestPropertiesDialog.Designer.cs"> | 185 | <Compile Include="TestPropertiesDialog.Designer.cs"> |
2374 | 186 | <DependentUpon>TestPropertiesDialog.cs</DependentUpon> | 186 | <DependentUpon>TestPropertiesDialog.cs</DependentUpon> |
2375 | 187 | </Compile> | 187 | </Compile> |
2376 | 188 | <Compile Include="TestSuiteTreeNode.cs" /> | 188 | <Compile Include="TestSuiteTreeNode.cs" /> |
2377 | 189 | <Compile Include="TestSuiteTreeView.cs"> | 189 | <Compile Include="TestSuiteTreeView.cs"> |
2378 | 190 | <SubType>Component</SubType> | 190 | <SubType>Component</SubType> |
2379 | 191 | </Compile> | 191 | </Compile> |
2380 | 192 | <Compile Include="TestTree.cs"> | 192 | <Compile Include="TestTree.cs"> |
2381 | 193 | <SubType>UserControl</SubType> | 193 | <SubType>UserControl</SubType> |
2382 | 194 | </Compile> | 194 | </Compile> |
2383 | 195 | <Compile Include="TextBoxDisplay.cs"> | 195 | <Compile Include="TextBoxDisplay.cs"> |
2384 | 196 | <SubType>Component</SubType> | 196 | <SubType>Component</SubType> |
2385 | 197 | </Compile> | 197 | </Compile> |
2386 | 198 | <Compile Include="TextDisplayContent.cs" /> | 198 | <Compile Include="TextDisplayContent.cs" /> |
2387 | 199 | <Compile Include="TextDisplay.cs" /> | 199 | <Compile Include="TextDisplay.cs" /> |
2388 | 200 | <Compile Include="TextDisplayTabPage.cs"> | 200 | <Compile Include="TextDisplayTabPage.cs"> |
2389 | 201 | <SubType>Component</SubType> | 201 | <SubType>Component</SubType> |
2390 | 202 | </Compile> | 202 | </Compile> |
2391 | 203 | <Compile Include="TextDisplayTabSettings.cs" /> | 203 | <Compile Include="TextDisplayTabSettings.cs" /> |
2392 | 204 | <Compile Include="TextDisplayWriter.cs" /> | 204 | <Compile Include="TextDisplayWriter.cs" /> |
2393 | 205 | <Compile Include="TextOutputSettingsPage.cs"> | 205 | <Compile Include="TextOutputSettingsPage.cs"> |
2394 | 206 | <SubType>UserControl</SubType> | 206 | <SubType>UserControl</SubType> |
2395 | 207 | </Compile> | 207 | </Compile> |
2396 | 208 | <Compile Include="TipWindow.cs"> | 208 | <Compile Include="TipWindow.cs"> |
2397 | 209 | <SubType>Form</SubType> | 209 | <SubType>Form</SubType> |
2398 | 210 | </Compile> | 210 | </Compile> |
2399 | 211 | <Compile Include="TreeBasedSettingsDialog.cs"> | 211 | <Compile Include="TreeBasedSettingsDialog.cs"> |
2400 | 212 | <SubType>Form</SubType> | 212 | <SubType>Form</SubType> |
2401 | 213 | </Compile> | 213 | </Compile> |
2402 | 214 | <Compile Include="MessageDisplay.cs" /> | 214 | <Compile Include="MessageDisplay.cs" /> |
2403 | 215 | <Compile Include="VisualState.cs" /> | 215 | <Compile Include="VisualState.cs" /> |
2404 | 216 | <Compile Include="WaitCursor.cs" /> | 216 | <Compile Include="WaitCursor.cs" /> |
2405 | 217 | </ItemGroup> | 217 | </ItemGroup> |
2406 | 218 | <ItemGroup> | 218 | <ItemGroup> |
2407 | 219 | <EmbeddedResource Include="AddConfigurationDialog.resx"> | 219 | <EmbeddedResource Include="AddConfigurationDialog.resx"> |
2408 | 220 | <DependentUpon>AddConfigurationDialog.cs</DependentUpon> | 220 | <DependentUpon>AddConfigurationDialog.cs</DependentUpon> |
2409 | 221 | <SubType>Designer</SubType> | 221 | <SubType>Designer</SubType> |
2410 | 222 | </EmbeddedResource> | 222 | </EmbeddedResource> |
2411 | 223 | <EmbeddedResource Include="AddTabPageDialog.resx"> | 223 | <EmbeddedResource Include="AddTabPageDialog.resx"> |
2412 | 224 | <DependentUpon>AddTabPageDialog.cs</DependentUpon> | 224 | <DependentUpon>AddTabPageDialog.cs</DependentUpon> |
2413 | 225 | <SubType>Designer</SubType> | 225 | <SubType>Designer</SubType> |
2414 | 226 | </EmbeddedResource> | 226 | </EmbeddedResource> |
2415 | 227 | <EmbeddedResource Include="ConfigurationEditor.resx"> | 227 | <EmbeddedResource Include="ConfigurationEditor.resx"> |
2416 | 228 | <DependentUpon>ConfigurationEditor.cs</DependentUpon> | 228 | <DependentUpon>ConfigurationEditor.cs</DependentUpon> |
2417 | 229 | <SubType>Designer</SubType> | 229 | <SubType>Designer</SubType> |
2418 | 230 | </EmbeddedResource> | 230 | </EmbeddedResource> |
2419 | 231 | <EmbeddedResource Include="EditTabPagesDialog.resx"> | 231 | <EmbeddedResource Include="EditTabPagesDialog.resx"> |
2420 | 232 | <DependentUpon>EditTabPagesDialog.cs</DependentUpon> | 232 | <DependentUpon>EditTabPagesDialog.cs</DependentUpon> |
2421 | 233 | <SubType>Designer</SubType> | 233 | <SubType>Designer</SubType> |
2422 | 234 | </EmbeddedResource> | 234 | </EmbeddedResource> |
2423 | 235 | <EmbeddedResource Include="ErrorDisplay.resx"> | 235 | <EmbeddedResource Include="ErrorDisplay.resx"> |
2424 | 236 | <DependentUpon>ErrorDisplay.cs</DependentUpon> | 236 | <DependentUpon>ErrorDisplay.cs</DependentUpon> |
2425 | 237 | <SubType>Designer</SubType> | 237 | <SubType>Designer</SubType> |
2426 | 238 | </EmbeddedResource> | 238 | </EmbeddedResource> |
2427 | 239 | <EmbeddedResource Include="ExpandingLabel.resx"> | 239 | <EmbeddedResource Include="ExpandingLabel.resx"> |
2428 | 240 | <DependentUpon>ExpandingLabel.cs</DependentUpon> | 240 | <DependentUpon>ExpandingLabel.cs</DependentUpon> |
2429 | 241 | <SubType>Designer</SubType> | 241 | <SubType>Designer</SubType> |
2430 | 242 | </EmbeddedResource> | 242 | </EmbeddedResource> |
2431 | 243 | <EmbeddedResource Include="ExpandingTextBox.resx"> | 243 | <EmbeddedResource Include="ExpandingTextBox.resx"> |
2432 | 244 | <DependentUpon>ExpandingTextBox.cs</DependentUpon> | 244 | <DependentUpon>ExpandingTextBox.cs</DependentUpon> |
2433 | 245 | <SubType>Designer</SubType> | 245 | <SubType>Designer</SubType> |
2434 | 246 | </EmbeddedResource> | 246 | </EmbeddedResource> |
2435 | 247 | <EmbeddedResource Include="LongRunningOperationDisplay.resx"> | 247 | <EmbeddedResource Include="LongRunningOperationDisplay.resx"> |
2436 | 248 | <DependentUpon>LongRunningOperationDisplay.cs</DependentUpon> | 248 | <DependentUpon>LongRunningOperationDisplay.cs</DependentUpon> |
2437 | 249 | <SubType>Designer</SubType> | 249 | <SubType>Designer</SubType> |
2438 | 250 | </EmbeddedResource> | 250 | </EmbeddedResource> |
2439 | 251 | <EmbeddedResource Include="NotRunTree.resx"> | 251 | <EmbeddedResource Include="NotRunTree.resx"> |
2440 | 252 | <DependentUpon>NotRunTree.cs</DependentUpon> | 252 | <DependentUpon>NotRunTree.cs</DependentUpon> |
2441 | 253 | <SubType>Designer</SubType> | 253 | <SubType>Designer</SubType> |
2442 | 254 | </EmbeddedResource> | 254 | </EmbeddedResource> |
2443 | 255 | <EmbeddedResource Include="ProgressBar.resx"> | 255 | <EmbeddedResource Include="ProgressBar.resx"> |
2444 | 256 | <DependentUpon>ProgressBar.cs</DependentUpon> | 256 | <DependentUpon>ProgressBar.cs</DependentUpon> |
2445 | 257 | <SubType>Designer</SubType> | 257 | <SubType>Designer</SubType> |
2446 | 258 | </EmbeddedResource> | 258 | </EmbeddedResource> |
2447 | 259 | <EmbeddedResource Include="RenameConfigurationDialog.resx"> | 259 | <EmbeddedResource Include="RenameConfigurationDialog.resx"> |
2448 | 260 | <DependentUpon>RenameConfigurationDialog.cs</DependentUpon> | 260 | <DependentUpon>RenameConfigurationDialog.cs</DependentUpon> |
2449 | 261 | <SubType>Designer</SubType> | 261 | <SubType>Designer</SubType> |
2450 | 262 | </EmbeddedResource> | 262 | </EmbeddedResource> |
2451 | 263 | <EmbeddedResource Include="ResultTabs.resx"> | 263 | <EmbeddedResource Include="ResultTabs.resx"> |
2452 | 264 | <DependentUpon>ResultTabs.cs</DependentUpon> | 264 | <DependentUpon>ResultTabs.cs</DependentUpon> |
2453 | 265 | <SubType>Designer</SubType> | 265 | <SubType>Designer</SubType> |
2454 | 266 | </EmbeddedResource> | 266 | </EmbeddedResource> |
2455 | 267 | <EmbeddedResource Include="SettingsDialogBase.resx"> | 267 | <EmbeddedResource Include="SettingsDialogBase.resx"> |
2456 | 268 | <DependentUpon>SettingsDialogBase.cs</DependentUpon> | 268 | <DependentUpon>SettingsDialogBase.cs</DependentUpon> |
2457 | 269 | <SubType>Designer</SubType> | 269 | <SubType>Designer</SubType> |
2458 | 270 | </EmbeddedResource> | 270 | </EmbeddedResource> |
2459 | 271 | <EmbeddedResource Include="SettingsPage.resx"> | 271 | <EmbeddedResource Include="SettingsPage.resx"> |
2460 | 272 | <DependentUpon>SettingsPage.cs</DependentUpon> | 272 | <DependentUpon>SettingsPage.cs</DependentUpon> |
2461 | 273 | <SubType>Designer</SubType> | 273 | <SubType>Designer</SubType> |
2462 | 274 | </EmbeddedResource> | 274 | </EmbeddedResource> |
2463 | 275 | <EmbeddedResource Include="SimpleSettingsDialog.resx"> | 275 | <EmbeddedResource Include="SimpleSettingsDialog.resx"> |
2464 | 276 | <DependentUpon>SimpleSettingsDialog.cs</DependentUpon> | 276 | <DependentUpon>SimpleSettingsDialog.cs</DependentUpon> |
2465 | 277 | <SubType>Designer</SubType> | 277 | <SubType>Designer</SubType> |
2466 | 278 | </EmbeddedResource> | 278 | </EmbeddedResource> |
2467 | 279 | <EmbeddedResource Include="StatusBar.resx"> | 279 | <EmbeddedResource Include="StatusBar.resx"> |
2468 | 280 | <DependentUpon>StatusBar.cs</DependentUpon> | 280 | <DependentUpon>StatusBar.cs</DependentUpon> |
2469 | 281 | <SubType>Designer</SubType> | 281 | <SubType>Designer</SubType> |
2470 | 282 | </EmbeddedResource> | 282 | </EmbeddedResource> |
2471 | 283 | <EmbeddedResource Include="TabbedSettingsDialog.resx"> | 283 | <EmbeddedResource Include="TabbedSettingsDialog.resx"> |
2472 | 284 | <DependentUpon>TabbedSettingsDialog.cs</DependentUpon> | 284 | <DependentUpon>TabbedSettingsDialog.cs</DependentUpon> |
2473 | 285 | <SubType>Designer</SubType> | 285 | <SubType>Designer</SubType> |
2474 | 286 | </EmbeddedResource> | 286 | </EmbeddedResource> |
2475 | 287 | <EmbeddedResource Include="TestPropertiesDialog.resx"> | 287 | <EmbeddedResource Include="TestPropertiesDialog.resx"> |
2476 | 288 | <DependentUpon>TestPropertiesDialog.cs</DependentUpon> | 288 | <DependentUpon>TestPropertiesDialog.cs</DependentUpon> |
2477 | 289 | </EmbeddedResource> | 289 | </EmbeddedResource> |
2478 | 290 | <EmbeddedResource Include="TestSuiteTreeView.resx"> | 290 | <EmbeddedResource Include="TestSuiteTreeView.resx"> |
2479 | 291 | <DependentUpon>TestSuiteTreeView.cs</DependentUpon> | 291 | <DependentUpon>TestSuiteTreeView.cs</DependentUpon> |
2480 | 292 | <SubType>Designer</SubType> | 292 | <SubType>Designer</SubType> |
2481 | 293 | </EmbeddedResource> | 293 | </EmbeddedResource> |
2482 | 294 | <EmbeddedResource Include="TestTree.resx"> | 294 | <EmbeddedResource Include="TestTree.resx"> |
2483 | 295 | <DependentUpon>TestTree.cs</DependentUpon> | 295 | <DependentUpon>TestTree.cs</DependentUpon> |
2484 | 296 | <SubType>Designer</SubType> | 296 | <SubType>Designer</SubType> |
2485 | 297 | </EmbeddedResource> | 297 | </EmbeddedResource> |
2486 | 298 | <EmbeddedResource Include="TextOutputSettingsPage.resx"> | 298 | <EmbeddedResource Include="TextOutputSettingsPage.resx"> |
2487 | 299 | <DependentUpon>TextOutputSettingsPage.cs</DependentUpon> | 299 | <DependentUpon>TextOutputSettingsPage.cs</DependentUpon> |
2488 | 300 | <SubType>Designer</SubType> | 300 | <SubType>Designer</SubType> |
2489 | 301 | </EmbeddedResource> | 301 | </EmbeddedResource> |
2490 | 302 | <EmbeddedResource Include="TipWindow.resx"> | 302 | <EmbeddedResource Include="TipWindow.resx"> |
2491 | 303 | <DependentUpon>TipWindow.cs</DependentUpon> | 303 | <DependentUpon>TipWindow.cs</DependentUpon> |
2492 | 304 | <SubType>Designer</SubType> | 304 | <SubType>Designer</SubType> |
2493 | 305 | </EmbeddedResource> | 305 | </EmbeddedResource> |
2494 | 306 | <EmbeddedResource Include="TreeBasedSettingsDialog.resx"> | 306 | <EmbeddedResource Include="TreeBasedSettingsDialog.resx"> |
2495 | 307 | <DependentUpon>TreeBasedSettingsDialog.cs</DependentUpon> | 307 | <DependentUpon>TreeBasedSettingsDialog.cs</DependentUpon> |
2496 | 308 | <SubType>Designer</SubType> | 308 | <SubType>Designer</SubType> |
2497 | 309 | </EmbeddedResource> | 309 | </EmbeddedResource> |
2498 | 310 | <EmbeddedResource Include="Images\pinned.gif" /> | 310 | <EmbeddedResource Include="Images\pinned.gif" /> |
2499 | 311 | <EmbeddedResource Include="Images\unpinned.gif" /> | 311 | <EmbeddedResource Include="Images\unpinned.gif" /> |
2500 | 312 | </ItemGroup> | 312 | </ItemGroup> |
2501 | 313 | <ItemGroup> | 313 | <ItemGroup> |
2502 | 314 | <Content Include="Images\Tree\Classic\Ignored.jpg"> | 314 | <EmbeddedResource Include="Images\search.png" /> |
2503 | 315 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 315 | <Content Include="Images\Tree\Classic\Ignored.jpg"> |
2504 | 316 | </Content> | 316 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
2505 | 317 | <Content Include="Images\Ellipsis.gif" /> | 317 | </Content> |
2506 | 318 | <Content Include="Images\Tree\Circles\Inconclusive.jpg"> | 318 | <Content Include="Images\Ellipsis.gif" /> |
2507 | 319 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 319 | <Content Include="Images\Tree\Circles\Inconclusive.jpg"> |
2508 | 320 | </Content> | 320 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
2509 | 321 | <Content Include="Images\Tree\Circles\Skipped.jpg"> | 321 | </Content> |
2510 | 322 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 322 | <Content Include="Images\Tree\Circles\Skipped.jpg"> |
2511 | 323 | </Content> | 323 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
2512 | 324 | <Content Include="Images\Tree\Circles\Success.jpg"> | 324 | </Content> |
2513 | 325 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 325 | <Content Include="Images\Tree\Circles\Success.jpg"> |
2514 | 326 | </Content> | 326 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
2515 | 327 | <Content Include="Images\Tree\Circles\Failure.jpg"> | 327 | </Content> |
2516 | 328 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 328 | <Content Include="Images\Tree\Circles\Failure.jpg"> |
2517 | 329 | </Content> | 329 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
2518 | 330 | <Content Include="Images\Tree\Circles\Ignored.jpg"> | 330 | </Content> |
2519 | 331 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 331 | <Content Include="Images\Tree\Circles\Ignored.jpg"> |
2520 | 332 | </Content> | 332 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
2521 | 333 | <Content Include="Images\Tree\Classic\Failure.jpg"> | 333 | </Content> |
2522 | 334 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 334 | <Content Include="Images\Tree\Classic\Failure.jpg"> |
2523 | 335 | </Content> | 335 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
2524 | 336 | <Content Include="Images\Tree\Classic\Skipped.jpg"> | 336 | </Content> |
2525 | 337 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 337 | <Content Include="Images\Tree\Classic\Skipped.jpg"> |
2526 | 338 | </Content> | 338 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
2527 | 339 | <Content Include="Images\Tree\Default\Failure.png"> | 339 | </Content> |
2528 | 340 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 340 | <Content Include="Images\Tree\Default\Failure.png"> |
2529 | 341 | </Content> | 341 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
2530 | 342 | <Content Include="Images\Tree\Default\Ignored.png"> | 342 | </Content> |
2531 | 343 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 343 | <Content Include="Images\Tree\Default\Ignored.png"> |
2532 | 344 | </Content> | 344 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
2533 | 345 | <Content Include="Images\Tree\Classic\Inconclusive.jpg"> | 345 | </Content> |
2534 | 346 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 346 | <Content Include="Images\Tree\Classic\Inconclusive.jpg"> |
2535 | 347 | </Content> | 347 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
2536 | 348 | <Content Include="Images\Tree\Default\Inconclusive.png"> | 348 | </Content> |
2537 | 349 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 349 | <Content Include="Images\Tree\Default\Inconclusive.png"> |
2538 | 350 | </Content> | 350 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
2539 | 351 | <Content Include="Images\Tree\Default\Skipped.png"> | 351 | </Content> |
2540 | 352 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 352 | <Content Include="Images\Tree\Default\Skipped.png"> |
2541 | 353 | </Content> | 353 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
2542 | 354 | <Content Include="Images\Tree\Classic\Success.jpg"> | 354 | </Content> |
2543 | 355 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 355 | <Content Include="Images\Tree\Classic\Success.jpg"> |
2544 | 356 | </Content> | 356 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
2545 | 357 | <Content Include="Images\Tree\Default\Success.png"> | 357 | </Content> |
2546 | 358 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 358 | <Content Include="Images\Tree\Default\Success.png"> |
2547 | 359 | </Content> | 359 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
2548 | 360 | </ItemGroup> | 360 | </Content> |
2549 | 361 | <ItemGroup> | 361 | </ItemGroup> |
2550 | 362 | <Content Include="Images\Tree\Visual Studio\Failure.png"> | 362 | <ItemGroup> |
2551 | 363 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 363 | <Content Include="Images\Tree\Visual Studio\Failure.png"> |
2552 | 364 | </Content> | 364 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
2553 | 365 | <Content Include="Images\Tree\Visual Studio\Ignored.png"> | 365 | </Content> |
2554 | 366 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 366 | <Content Include="Images\Tree\Visual Studio\Ignored.png"> |
2555 | 367 | </Content> | 367 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
2556 | 368 | <Content Include="Images\Tree\Visual Studio\Inconclusive.png"> | 368 | </Content> |
2557 | 369 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 369 | <Content Include="Images\Tree\Visual Studio\Inconclusive.png"> |
2558 | 370 | </Content> | 370 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
2559 | 371 | <Content Include="Images\Tree\Visual Studio\Skipped.png"> | 371 | </Content> |
2560 | 372 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 372 | <Content Include="Images\Tree\Visual Studio\Skipped.png"> |
2561 | 373 | </Content> | 373 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
2562 | 374 | <Content Include="Images\Tree\Visual Studio\Success.png"> | 374 | </Content> |
2563 | 375 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | 375 | <Content Include="Images\Tree\Visual Studio\Success.png"> |
2564 | 376 | </Content> | 376 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
2565 | 377 | <None Include="nunit.uikit.build" /> | 377 | </Content> |
2566 | 378 | </ItemGroup> | 378 | <None Include="nunit.uikit.build" /> |
2567 | 379 | <ItemGroup> | 379 | </ItemGroup> |
2568 | 380 | <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> | 380 | <ItemGroup> |
2569 | 381 | <Visible>False</Visible> | 381 | <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> |
2570 | 382 | <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName> | 382 | <Visible>False</Visible> |
2571 | 383 | <Install>false</Install> | 383 | <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName> |
2572 | 384 | </BootstrapperPackage> | 384 | <Install>false</Install> |
2573 | 385 | <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> | 385 | </BootstrapperPackage> |
2574 | 386 | <Visible>False</Visible> | 386 | <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> |
2575 | 387 | <ProductName>.NET Framework 3.5 SP1</ProductName> | 387 | <Visible>False</Visible> |
2576 | 388 | <Install>true</Install> | 388 | <ProductName>.NET Framework 3.5 SP1</ProductName> |
2577 | 389 | </BootstrapperPackage> | 389 | <Install>true</Install> |
2578 | 390 | <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> | 390 | </BootstrapperPackage> |
2579 | 391 | <Visible>False</Visible> | 391 | <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> |
2580 | 392 | <ProductName>Windows Installer 3.1</ProductName> | 392 | <Visible>False</Visible> |
2581 | 393 | <Install>true</Install> | 393 | <ProductName>Windows Installer 3.1</ProductName> |
2582 | 394 | </BootstrapperPackage> | 394 | <Install>true</Install> |
2583 | 395 | </ItemGroup> | 395 | </BootstrapperPackage> |
2584 | 396 | <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | 396 | </ItemGroup> |
2585 | 397 | <PropertyGroup> | 397 | <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> |
2586 | 398 | <PreBuildEvent> | 398 | <PropertyGroup> |
2587 | 399 | </PreBuildEvent> | 399 | <PreBuildEvent> |
2588 | 400 | <PostBuildEvent> | 400 | </PreBuildEvent> |
2589 | 401 | </PostBuildEvent> | 401 | <PostBuildEvent> |
2590 | 402 | </PropertyGroup> | 402 | </PostBuildEvent> |
2591 | 403 | </PropertyGroup> | ||
2592 | 403 | </Project> | 404 | </Project> |
2593 | 404 | \ No newline at end of file | 405 | \ No newline at end of file |
The build fails on my machine with error:
[exec] 1) Test Error : NUnit.UiKit. Tests.TestTreeT ests.SameCatego ryShouldNotBeSe lectedMoreThanO ArgumentExcepti on : Resource 'Images.search.png' cannot be found in class 'NUn
nce
[exec] System.
it.UiKit.TestTree'.
The reason is that although we have .csproj files to use in Visual Studio the build is done with NAnt scripts, so you would need to modify the nunit.uikit.build by including the new image in the patternset node with id resource-files.
After building successfully I can't run tests any longer in the GUI. For instance I open the NUnitTests.nunit project file and leaving aside the new search feature I try hitting the Run button. I get a null reference exception, and pretty much the same for anything else I try to run via the UI, either by right clicking a node or selecting one and clicking the Run button.