Skip to content

Commit

Permalink
Review Unit Test projects #567
Browse files Browse the repository at this point in the history
- reviewed SemanticData.UAModelDesignExport.UnitTest
  • Loading branch information
mpostol committed Apr 7, 2021
1 parent ee5aab7 commit 1d39251
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 189 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
//___________________________________________________________________________________
//
// Copyright (C) 2019, Mariusz Postol LODZ POLAND.
// Copyright (C) 2021, Mariusz Postol LODZ POLAND.
//
// To be in touch join the community at GITTER: https://gitter.im/mpostol/OPC-UA-OOI
//___________________________________________________________________________________

using System;
using UAOOI.SemanticData.UAModelDesignExport.XML;

namespace UAOOI.SemanticData.UAModelDesignExport.Instrumentation
{
internal static class Extensions
{
internal static string Key(this Reference value)
{
return value.ReferenceType.ToString() + " " + value.TargetId.ToString();
}
internal static bool AreEqual(this string first, string second)
{
if (String.IsNullOrEmpty(first))
return String.IsNullOrEmpty(second);
return String.Compare(first, second) == 0;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public ModelDesign CreateInstance(FileInfo filePath, string URI)
{
if (!filePath.Exists)
throw new FileNotFoundException("The imported file does not exist", filePath.FullName);
IAddressSpaceContext _as = AddressSpaceFactory.GetAddressSpace(TraceDiagnostic);
IAddressSpaceContext _as = AddressSpaceFactory.GetAddressSpace(TraceDiagnostic);
ModelFactory _factory = new ModelFactory(TraceDiagnostic);
_as.InformationModelFactory = _factory;
_as.ImportUANodeSet(filePath);
Expand Down Expand Up @@ -51,4 +51,4 @@ private void TraceDiagnostic(TraceMessage msg)
TraceList.Add(msg);
}
}
}
}
130 changes: 0 additions & 130 deletions SemanticData/UAModelDesignExport.UnitTest/Instrumentation/XmlFile.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
</ItemGroup>
<ItemGroup>
<Compile Include="ExtensionsUnitTest.cs" />
<Compile Include="Instrumentation\AddressSpaceContextService.cs" />
<Compile Include="Instrumentation\Extensions.cs" />
<Compile Include="Instrumentation\IStylesheetNameProvider.cs" />
<Compile Include="Instrumentation\TracedAddressSpaceContext.cs" />
Expand Down

0 comments on commit 1d39251

Please sign in to comment.