-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathResharperCADtestTemplates.DotSettings
208 lines (202 loc) · 14.8 KB
/
ResharperCADtestTemplates.DotSettings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=63A430EB6CBD234EBC696587434EC598/@KeyIndexDefined">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=63A430EB6CBD234EBC696587434EC598/Applicability/=File/@EntryIndexedValue">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=63A430EB6CBD234EBC696587434EC598/Categories/=AutoCAD/@EntryIndexedValue">AutoCAD</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=63A430EB6CBD234EBC696587434EC598/Categories/=Test/@EntryIndexedValue">Test</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=63A430EB6CBD234EBC696587434EC598/CustomProperties/=Extension/@EntryIndexedValue">cs</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=63A430EB6CBD234EBC696587434EC598/CustomProperties/=FileName/@EntryIndexedValue">NewFile</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=63A430EB6CBD234EBC696587434EC598/CustomProperties/=ValidateFileName/@EntryIndexedValue">True</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=63A430EB6CBD234EBC696587434EC598/Description/@EntryValue">CADtest class</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=63A430EB6CBD234EBC696587434EC598/Field/=CLASS/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=63A430EB6CBD234EBC696587434EC598/Field/=CLASS/Expression/@EntryValue">getFileNameWithoutExtension()</s:String>
<s:Int64 x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=63A430EB6CBD234EBC696587434EC598/Field/=CLASS/Order/@EntryValue">2</s:Int64>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=63A430EB6CBD234EBC696587434EC598/Field/=HEADER/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=63A430EB6CBD234EBC696587434EC598/Field/=HEADER/Expression/@EntryValue">fileheader()</s:String>
<s:Int64 x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=63A430EB6CBD234EBC696587434EC598/Field/=HEADER/Order/@EntryValue">0</s:Int64>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=63A430EB6CBD234EBC696587434EC598/Field/=NAMESPACE/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=63A430EB6CBD234EBC696587434EC598/Field/=NAMESPACE/Expression/@EntryValue">fileDefaultNamespace()</s:String>
<s:Int64 x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=63A430EB6CBD234EBC696587434EC598/Field/=NAMESPACE/Order/@EntryValue">1</s:Int64>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=63A430EB6CBD234EBC696587434EC598/Scope/=E8F0594528C33E45BBFEC6CFE851095D/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=63A430EB6CBD234EBC696587434EC598/Scope/=E8F0594528C33E45BBFEC6CFE851095D/Type/@EntryValue">InCSharpProjectFile</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=63A430EB6CBD234EBC696587434EC598/Text/@EntryValue">#define AutoCAD
$HEADER$

using System;
using System.Collections.Generic;
using System.Diagnostics;

#if BricsCAD

using Bricscad.ApplicationServices.Application;
using Bricscad.ApplicationServices;
using Bricscad.EditorInput;
using Bricscad.Runtime; // bug: maybe wrong ??
using Bricscad.Windows;
using Bricscad;
using Teigha.Colors;
using Teigha.DatabaseServices;
using Teigha.Geometry;
using Teigha.GraphicsInterface;
using Teigha.Runtime;
using Teigha;

#elif NANOCAD
using HostMgd.ApplicationServices.Application;
using HostMgd.ApplicationServices;
using HostMgd.EditorInput;
using HostMgd.Runtime; // bug: maybe wrong ??
using HostMgd.Windows;
using HostMgd;
using Teigha.Colors;
using Teigha.DatabaseServices;
using Teigha.Geometry;
using Teigha.GraphicsInterface;
using Teigha.Runtime;
using Teigha;

#elif ARES
// todo:

#elif ZWCAD

#elif TURBOCAD // not likely at $500 for LTE Pro

#elif DRAFTSIGHT

#elif ACAD || AutoCAD
using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.Colors;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoCAD.GraphicsInterface;
using Autodesk.AutoCAD.Internal;
using Autodesk.AutoCAD.Runtime;
using Autodesk.AutoCAD.Windows;
using Autodesk.AutoCAD;
// aliases
#if (ACAD2006 || ACAD2007 || ACAD2008 || ACAD2009|| ACAD2010|| ACAD2011 || ACAD2012)
using Autodesk.AutoCAD.ApplicationServices.Application;
#else
using Autodesk.AutoCAD.ApplicationServices.Core;
#endif
#endif

using NUnit.Framework; 


namespace $NAMESPACE$
{
[TestFixture, Apartment(ApartmentState.STA)]
public class $CLASS$ 
{
// todo: use CADtest R# shortcut to add Test Methods
$END$
}
}</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=A0D12789A8A55D498AF2A39CE3D83064/@KeyIndexDefined">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=A0D12789A8A55D498AF2A39CE3D83064/Applicability/=Surround/@EntryIndexedValue">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=A0D12789A8A55D498AF2A39CE3D83064/Categories/=AutoCAD/@EntryIndexedValue">AutoCAD</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=A0D12789A8A55D498AF2A39CE3D83064/Categories/=Test/@EntryIndexedValue">Test</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=A0D12789A8A55D498AF2A39CE3D83064/Description/@EntryValue">CADtest surround</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=A0D12789A8A55D498AF2A39CE3D83064/Field/=Test_005Fmethod_005Fname/@KeyIndexDefined">True</s:Boolean>
<s:Int64 x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=A0D12789A8A55D498AF2A39CE3D83064/Field/=Test_005Fmethod_005Fname/Order/@EntryValue">0</s:Int64>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=A0D12789A8A55D498AF2A39CE3D83064/Reformat/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=A0D12789A8A55D498AF2A39CE3D83064/Scope/=C3001E7C0DA78E4487072B7E050D86C5/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=A0D12789A8A55D498AF2A39CE3D83064/Scope/=C3001E7C0DA78E4487072B7E050D86C5/CustomProperties/=minimumLanguageVersion/@EntryIndexedValue">2.0</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=A0D12789A8A55D498AF2A39CE3D83064/Scope/=C3001E7C0DA78E4487072B7E050D86C5/Type/@EntryValue">InCSharpFile</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=A0D12789A8A55D498AF2A39CE3D83064/ShortenQualifiedReferences/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=A0D12789A8A55D498AF2A39CE3D83064/Text/@EntryValue">[Test]
public void $Test_method_name$()
{
// Arrange
$END$
// Act
Database db = HostApplicationServices.WorkingDatabase;
Document doc = Application.DocumentManager.GetDocument(db);
using (doc.LockDocument())
{
using (db.TransactionManager.StartTransaction())
{
$SELECTION$
//todo: create object(s)
Entity entity = new Entity(); // todo: change this to the type you are using
//todo: add to DataBase
//todo: Test Objects in the Database
ObjectId entityObjectId = CADtest.Helpers.DbEntity.AddToModelSpace(entity, db);
Entity testEntity = entityObjectId.Open(OpenMode.ForRead, false) as Entity; // todo: as above
// todo: get properties to test
}
}
// Assert
Assert.Fail("Write this test");
}</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B39BBD61954E9545BCB69E5DB667D7D1/@KeyIndexDefined">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B39BBD61954E9545BCB69E5DB667D7D1/Applicability/=Live/@EntryIndexedValue">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B39BBD61954E9545BCB69E5DB667D7D1/Categories/=AutoCAD/@EntryIndexedValue">AutoCAD</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B39BBD61954E9545BCB69E5DB667D7D1/Categories/=Test/@EntryIndexedValue">Test</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B39BBD61954E9545BCB69E5DB667D7D1/Description/@EntryValue">Class for NUnit Testing CAD stuffs</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B39BBD61954E9545BCB69E5DB667D7D1/Field/=CLASS/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B39BBD61954E9545BCB69E5DB667D7D1/Field/=CLASS/Expression/@EntryValue">JoarOyenLiveTemplateMacros.ValidIdentifier()</s:String>
<s:Int64 x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B39BBD61954E9545BCB69E5DB667D7D1/Field/=CLASS/Order/@EntryValue">1</s:Int64>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B39BBD61954E9545BCB69E5DB667D7D1/Field/=NAMESPACE/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B39BBD61954E9545BCB69E5DB667D7D1/Field/=NAMESPACE/Expression/@EntryValue">fileDefaultNamespace()</s:String>
<s:Int64 x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B39BBD61954E9545BCB69E5DB667D7D1/Field/=NAMESPACE/Order/@EntryValue">0</s:Int64>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B39BBD61954E9545BCB69E5DB667D7D1/Reformat/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B39BBD61954E9545BCB69E5DB667D7D1/Scope/=C3001E7C0DA78E4487072B7E050D86C5/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B39BBD61954E9545BCB69E5DB667D7D1/Scope/=C3001E7C0DA78E4487072B7E050D86C5/CustomProperties/=minimumLanguageVersion/@EntryIndexedValue">2.0</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B39BBD61954E9545BCB69E5DB667D7D1/Scope/=C3001E7C0DA78E4487072B7E050D86C5/Type/@EntryValue">InCSharpFile</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B39BBD61954E9545BCB69E5DB667D7D1/Shortcut/@EntryValue">CADtestClass</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B39BBD61954E9545BCB69E5DB667D7D1/ShortenQualifiedReferences/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B39BBD61954E9545BCB69E5DB667D7D1/Text/@EntryValue">using NUnit.Framework; 


namespace $NAMESPACE$
{
[TestFixture, Apartment(ApartmentState.STA)]
public class $CLASS$ 
{
// todo: use CADtest R# shortcut to add Test Methods
$END$
}
}</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B7ADA03151419D4EB2F142E78E6692C4/@KeyIndexDefined">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B7ADA03151419D4EB2F142E78E6692C4/Applicability/=Live/@EntryIndexedValue">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B7ADA03151419D4EB2F142E78E6692C4/Categories/=AutoCAD/@EntryIndexedValue">AutoCAD</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B7ADA03151419D4EB2F142E78E6692C4/Categories/=Test/@EntryIndexedValue">Test</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B7ADA03151419D4EB2F142E78E6692C4/Description/@EntryValue">CADtest test method, replaces spaces with underscores</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B7ADA03151419D4EB2F142E78E6692C4/Field/=Test_005Fmethod_005Fname/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B7ADA03151419D4EB2F142E78E6692C4/Field/=Test_005Fmethod_005Fname/Expression/@EntryValue">JoarOyenLiveTemplateMacros.ValidIdentifier()</s:String>
<s:Int64 x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B7ADA03151419D4EB2F142E78E6692C4/Field/=Test_005Fmethod_005Fname/Order/@EntryValue">0</s:Int64>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B7ADA03151419D4EB2F142E78E6692C4/Reformat/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B7ADA03151419D4EB2F142E78E6692C4/Scope/=C3001E7C0DA78E4487072B7E050D86C5/@KeyIndexDefined">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B7ADA03151419D4EB2F142E78E6692C4/Scope/=C3001E7C0DA78E4487072B7E050D86C5/CustomProperties/=minimumLanguageVersion/@EntryIndexedValue">2.0</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B7ADA03151419D4EB2F142E78E6692C4/Scope/=C3001E7C0DA78E4487072B7E050D86C5/Type/@EntryValue">InCSharpFile</s:String>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B7ADA03151419D4EB2F142E78E6692C4/Shortcut/@EntryValue">CADtest</s:String>
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B7ADA03151419D4EB2F142E78E6692C4/ShortenQualifiedReferences/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=B7ADA03151419D4EB2F142E78E6692C4/Text/@EntryValue">[Test]
public void $Test_method_name$()
{
// Arrange
$END$
// Act
Database db = HostApplicationServices.WorkingDatabase;
Document doc = Application.DocumentManager.GetDocument(db);
using (doc.LockDocument())
{
using (db.TransactionManager.StartTransaction())
{
$SELECTION$
//todo: create object(s)
Entity entity = new Entity(); // todo: change this to the type you are using
//todo: add to DataBase
//todo: Test Objects in the Database
ObjectId entityObjectId = CADtest.Helpers.DbEntity.AddToModelSpace(entity, db);
Entity testEntity = entityObjectId.Open(OpenMode.ForRead, false) as Entity; // todo: as above
// todo: get properties to test
}
}
// Assert
Assert.Fail("Write this test");
}</s:String>
</wpf:ResourceDictionary>