Skip to content

Commit

Permalink
Merge branch 'Roald87-code-cleanup'
Browse files Browse the repository at this point in the history
  • Loading branch information
sagatowski committed May 15, 2020
2 parents 6bbbe51 + f70a80b commit 1af2b96
Show file tree
Hide file tree
Showing 30 changed files with 26 additions and 150 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TCatSysManagerLib;
using TCatSysManagerLib;

namespace TcUnit.Verifier
{
Expand All @@ -19,7 +14,6 @@ class AutomationInterface
private ITcSmTreeItem plcTreeItem = null;
private ITcSmTreeItem routesTreeItem = null;


public AutomationInterface(EnvDTE.Project project)
{
sysManager = (ITcSysManager10)project.Object;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TcUnit.Verifier
namespace TcUnit.Verifier
{
static class Constants
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using EnvDTE80;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace TcUnit.Verifier
{
Expand All @@ -16,7 +12,6 @@ public FB_TestNumberOfAssertionsCalculation(IEnumerable<ErrorList.Error> errors,
TestWith44FailedAssertions();
TestWith45SuccessfulArrayAssertions();
TestWith46FailedArrayAssertions();

}

private void TestMixed33SuccessulAnd9FailedAssertions()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace TcUnit.Verifier
{
Expand Down Expand Up @@ -31,7 +27,6 @@ public FB_WriteProtectedFunctions(IEnumerable<ErrorList.Error> errors, string te
Test_WRITE_PROTECTED_USINT();
Test_WRITE_PROTECTED_ULINT();
Test_WRITE_PROTECTED_WORD();

}

private void Test_WRITE_PROTECTED_BOOL()
Expand Down Expand Up @@ -152,6 +147,5 @@ private void Test_WRITE_PROTECTED_WORD()
string testMessage = "PRG_TEST." + _testFunctionBlockInstance + "@Test_WRITE_PROTECTED_WORD";
AssertDoesNotContainMessage(testMessage, EnvDTE80.vsBuildErrorLevel.vsBuildErrorLevelHigh);
}

}
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace TcUnit.Verifier {
namespace TcUnit.Verifier
{
public class MessageFilter : IOleMessageFilter {
// Class containing the IOleMessageFilter
// thread error-handling functions.
Expand All @@ -23,7 +20,6 @@ public static void Revoke() {
CoRegisterMessageFilter(null, out oldFilter);
}

//
// IOleMessageFilter functions.
// Handle incoming thread requests.
int IOleMessageFilter.HandleInComingCall(int dwCallType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Globalization;
using System.IO;
using System.Runtime.Serialization;
using System.Security.Permissions;
Expand All @@ -143,9 +142,10 @@
using NDesk.Options;
#endif

namespace NDesk.Options {
namespace NDesk.Options
{

public class OptionValueCollection : IList, IList<string> {
public class OptionValueCollection : IList, IList<string> {

List<string> values = new List<string> ();
OptionContext c;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
using NDesk.Options;
using log4net;
using log4net.Config;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TCatSysManagerLib;
using System.Threading;
using EnvDTE80;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
using EnvDTE80;
using log4net;
using log4net.Config;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TcUnit.Verifier
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
using EnvDTE80;
using log4net;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using TCatSysManagerLib;

namespace TcUnit.Verifier
Expand Down Expand Up @@ -91,7 +86,6 @@ public void Close()
loaded = false;
}


/// <summary>
/// Opens the main *.sln-file and finds the version of VS used for creation of the solution
/// </summary>
Expand Down Expand Up @@ -177,12 +171,6 @@ public EnvDTE80.DTE2 GetDevelopmentToolsEnvironment()
return this.dte;
}

public void CleanAndBuildSolution()
{
this.visualStudioSolution.SolutionBuild.Clean(true);
this.visualStudioSolution.SolutionBuild.Build(true);
}

public void CleanSolution()
{
visualStudioSolution.SolutionBuild.Clean(true);
Expand Down

0 comments on commit 1af2b96

Please sign in to comment.