Skip to content

Commit f5ba21d

Browse files
committed
Code Cleanup, mostly removing Usings
1 parent e54b0b3 commit f5ba21d

File tree

8 files changed

+28
-34
lines changed

8 files changed

+28
-34
lines changed

FXBTests/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414

1515
// [assembly: AssemblyVersion("1.0.*")]
1616
[assembly: AssemblyVersion("1.0.0.0")]
17-
[assembly: AssemblyFileVersion("1.0.0.0")]
17+
[assembly: AssemblyFileVersion("1.0.0.0")]

FXBTests/TestUrls.cs

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Microsoft.VisualStudio.TestTools.UnitTesting;
2-
using Rappen.XTB.FetchXmlBuilder.AppCode;
32

43
namespace FXBTests
54
{
@@ -15,32 +14,32 @@ public class TestUrls
1514
private const string randomUrl = "https://fetchxmlbuilder.com";
1615
private const string randomUrlResult = "https://fetchxmlbuilder.com/?utm_source=FetchXMLBuilder&utm_medium=XrmToolBox";
1716

18-
//[TestMethod]
19-
//public void TestDocsUrl()
20-
//{
21-
// var result = Utils.ProcessURL(docsUrl);
22-
// Assert.AreEqual(docsUrlResult, result);
23-
//}
17+
[TestMethod]
18+
public void TestDocsUrl()
19+
{
20+
var result = Utils.ProcessURL(docsUrl);
21+
Assert.AreEqual(docsUrlResult, result);
22+
}
2423

25-
//[TestMethod]
26-
//public void TestDocsUrlWithAnchor()
27-
//{
28-
// var result = Utils.ProcessURL(docsUrlWithAnchor);
29-
// Assert.AreEqual(docsUrlWithAnchorResult, result);
30-
//}
24+
[TestMethod]
25+
public void TestDocsUrlWithAnchor()
26+
{
27+
var result = Utils.ProcessURL(docsUrlWithAnchor);
28+
Assert.AreEqual(docsUrlWithAnchorResult, result);
29+
}
3130

32-
//[TestMethod]
33-
//public void TestDocsUrlWithQueryAndAnchor()
34-
//{
35-
// var result = Utils.ProcessURL(docsUrlWithQueryAndAnchor);
36-
// Assert.AreEqual(docsUrlWithQueryAndAnchorResult, result);
37-
//}
31+
[TestMethod]
32+
public void TestDocsUrlWithQueryAndAnchor()
33+
{
34+
var result = Utils.ProcessURL(docsUrlWithQueryAndAnchor);
35+
Assert.AreEqual(docsUrlWithQueryAndAnchorResult, result);
36+
}
3837

39-
//[TestMethod]
40-
//public void TestRandomUrl()
41-
//{
42-
// var result = Utils.ProcessURL(randomUrl);
43-
// Assert.AreEqual(randomUrlResult, result);
44-
//}
38+
[TestMethod]
39+
public void TestRandomUrl()
40+
{
41+
var result = Utils.ProcessURL(randomUrl);
42+
Assert.AreEqual(randomUrlResult, result);
43+
}
4544
}
4645
}

FetchXmlBuilder/Controls/conditionControl.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
using Rappen.XTB.Helpers.ControlItems;
1212
using System;
1313
using System.Collections.Generic;
14-
using System.Diagnostics;
1514
using System.Globalization;
1615
using System.Linq;
1716
using System.ServiceModel;

FetchXmlBuilder/Converters/LCG/FabienDehopreIdentifier.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static class IdentifierExtensions
5656
public static bool IsValidIdentifier(this string identifier)
5757
{
5858
if (String.IsNullOrWhiteSpace(identifier)) return false;
59-
59+
6060
var normalizedIdentifier = identifier.Normalize();
6161

6262
// 1. check that the identifier match the validIdentifer regex and it's not a C# keyword

FetchXmlBuilder/Converters/ODataCodeGenerator.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using MarkMpn.FetchXmlToWebAPI;
2-
using McTools.Xrm.Connection;
32
using Microsoft.Xrm.Sdk.Metadata;
43
using Rappen.XTB.FetchXmlBuilder.AppCode;
54
using System;

FetchXmlBuilder/FetchXmlBuilder.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using McTools.Xrm.Connection;
22
using Rappen.XRM.Helpers.Extensions;
33
using Rappen.XRM.Helpers.FetchXML;
4-
using Rappen.XTB.FetchXmlBuilder.AppCode;
54
using Rappen.XTB.FetchXmlBuilder.Builder;
65
using Rappen.XTB.FetchXmlBuilder.Converters;
76
using Rappen.XTB.FetchXmlBuilder.DockControls;
@@ -12,7 +11,6 @@
1211
using Rappen.XTB.XmlEditorUtils;
1312
using System;
1413
using System.Collections.Generic;
15-
using System.Diagnostics;
1614
using System.IO;
1715
using System.Linq;
1816
using System.Reflection;

FetchXmlBuilder/Forms/Welcome.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using Rappen.XTB.FetchXmlBuilder.AppCode;
2-
using Rappen.XTB.Helpers;
1+
using Rappen.XTB.Helpers;
32
using System;
43
using System.Reflection;
54
using System.Windows.Forms;

FetchXmlBuilder/GlobalSuppressions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
// Project-level suppressions either have no target or are given
44
// a specific target and scoped to a namespace, type, member, etc.
55

6-
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "S100:Methods and properties should be named in camel case", Justification = "<Pending>", Scope = "member", Target = "~M:Rappen.XTB.FetchXmlBuilder.SQLQueryGenerator.GetSQLQuery(Rappen.XTB.FetchXmlBuilder.FetchType)~System.String")]
6+
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Naming", "S100:Methods and properties should be named in camel case", Justification = "<Pending>", Scope = "member", Target = "~M:Rappen.XTB.FetchXmlBuilder.SQLQueryGenerator.GetSQLQuery(Rappen.XTB.FetchXmlBuilder.FetchType)~System.String")]

0 commit comments

Comments
 (0)