initialize
This commit is contained in:
@@ -0,0 +1,152 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{DC81DE43-498F-4C74-9174-DF6FE4CCD122}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>OibAdapterUnitTests</RootNamespace>
|
||||
<AssemblyName>OibAdapterUnitTests</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
|
||||
<IsCodedUITest>False</IsCodedUITest>
|
||||
<TestProjectType>UnitTest</TestProjectType>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="artes-dotnet">
|
||||
<HintPath>..\lib\artes-dotnet.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ASM.AS.OIB.Client">
|
||||
<HintPath>..\lib\ASM.AS.OIB.Client.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ASM.AS.OIB.Client.CustomExtensions">
|
||||
<HintPath>..\lib\ASM.AS.OIB.Client.CustomExtensions.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Asm.As.Oib.Common">
|
||||
<HintPath>..\lib\Asm.As.Oib.Common.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Asm.As.Oib.Common.Proxy">
|
||||
<HintPath>..\lib\Asm.As.Oib.Common.Proxy.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ASM.AS.OIB.DisplayService.Contracts">
|
||||
<HintPath>..\lib\ASM.AS.OIB.DisplayService.Contracts.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="ASM.AS.OIB.DisplayService.Proxy">
|
||||
<HintPath>..\lib\ASM.AS.OIB.DisplayService.Proxy.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Asm.As.Oib.Monitoring.Contracts">
|
||||
<HintPath>..\lib\Asm.As.Oib.Monitoring.Contracts.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Asm.As.Oib.Monitoring.Proxy">
|
||||
<HintPath>..\lib\Asm.As.Oib.Monitoring.Proxy.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Asm.As.Oib.SIPLACEPro.Contracts">
|
||||
<HintPath>..\lib\Asm.As.Oib.SIPLACEPro.Contracts.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Asm.As.Oib.SIPLACEPro.LineControl.Contracts">
|
||||
<HintPath>..\lib\Asm.As.Oib.SIPLACEPro.LineControl.Contracts.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Asm.As.Oib.SIPLACEPro.LineControl.Proxy">
|
||||
<HintPath>..\lib\Asm.As.Oib.SIPLACEPro.LineControl.Proxy.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Asm.As.Oib.SIPLACEPro.Proxy">
|
||||
<HintPath>..\lib\Asm.As.Oib.SIPLACEPro.Proxy.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Asm.As.Oib.SIPLACESetupCenter.Contracts">
|
||||
<HintPath>..\lib\Asm.As.Oib.SIPLACESetupCenter.Contracts.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Asm.As.Oib.SiplaceSetupCenter.Proxy">
|
||||
<HintPath>..\lib\Asm.As.Oib.SiplaceSetupCenter.Proxy.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Asm.As.Oib.WS.Common">
|
||||
<HintPath>..\lib\Asm.As.Oib.WS.Common.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Asm.As.Oib.WS.Eventing.Contracts">
|
||||
<HintPath>..\lib\Asm.As.Oib.WS.Eventing.Contracts.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="AsmApi">
|
||||
<HintPath>..\lib\AsmApi.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="log4net">
|
||||
<HintPath>..\lib\log4net.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
</ItemGroup>
|
||||
<Choose>
|
||||
<When Condition="('$(VisualStudioVersion)' == '10.0' or '$(VisualStudioVersion)' == '') and '$(TargetFrameworkVersion)' == 'v3.5'">
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
|
||||
</ItemGroup>
|
||||
</When>
|
||||
<Otherwise>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework">
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</Otherwise>
|
||||
</Choose>
|
||||
<ItemGroup>
|
||||
<Compile Include="src\SiplaceProBoardHelperTest.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="src\SiplaceProSetupHelperTests.cs" />
|
||||
<Compile Include="src\SiplaceProLineHelperTests.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\oibV3.1.proxy.csproj">
|
||||
<Project>{a0b3e1ad-dddf-4117-a13d-0f61db3c0f02}</Project>
|
||||
<Name>oibV3.1.proxy</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Choose>
|
||||
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.VisualStudio.QualityTools.CodedUITestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.VisualStudio.TestTools.UITest.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.VisualStudio.TestTools.UITest.Extension, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.VisualStudio.TestTools.UITesting, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
|
||||
<Private>False</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
</When>
|
||||
</Choose>
|
||||
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// Allgemeine Informationen über eine Assembly werden über folgende
|
||||
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
||||
// die einer Assembly zugeordnet sind.
|
||||
[assembly: AssemblyTitle("OibAdapterUnitTests")]
|
||||
[assembly: AssemblyDescription("Tests for OIB Adapter")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("OibAdapterUnitTests")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2018")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Wenn ComVisible auf "false" festgelegt wird, sind die Typen innerhalb dieser Assembly
|
||||
// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
|
||||
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
|
||||
[assembly: Guid("dc81de43-498f-4c74-9174-df6fe4ccd122")]
|
||||
|
||||
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
||||
//
|
||||
// Hauptversion
|
||||
// Nebenversion
|
||||
// Buildnummer
|
||||
// Revision
|
||||
//
|
||||
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
||||
// übernehmen, indem Sie "*" eingeben:
|
||||
// [Assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
@@ -0,0 +1,77 @@
|
||||
using com.itac.oib.siplacepro;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace OibAdapterUnitTests
|
||||
{
|
||||
[TestClass]
|
||||
public class SiplaceProBoardHelperTest
|
||||
{
|
||||
[TestMethod]
|
||||
public void shouldNotFailWhenBoardElementsAreNull()
|
||||
{
|
||||
com.itac.oib.siplacepro.data.BoardElement[] result = BoardElementHelper.get(null);
|
||||
Assert.IsNotNull(result);
|
||||
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void shouldNotFailWhenBoardElementIsNull()
|
||||
{
|
||||
com.itac.oib.siplacepro.data.BoardElement result = BoardElementHelper.getBoardElement(null);
|
||||
Assert.IsNull(result);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void shouldNotFailWhenBoardIsNull()
|
||||
{
|
||||
com.itac.oib.siplacepro.data.Board result = BoardElementHelper.DoBoard(null);
|
||||
Assert.IsNull(result);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void shouldNotFailWhenBoardsideIsNull()
|
||||
{
|
||||
com.itac.oib.siplacepro.data.BoardSide result = BoardElementHelper.DoBoardside(null);
|
||||
Assert.IsNull(result);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void shouldReturnEmptyArrayWhenChildPanelsAreNull()
|
||||
{
|
||||
com.itac.oib.siplacepro.data.PanelMatrix[] result = BoardElementHelper.DoChildPanels(null);
|
||||
Assert.IsNotNull(result);
|
||||
Assert.AreEqual(0, result.Length);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void shouldNotFailWhenPanelMatrixIsNull()
|
||||
{
|
||||
com.itac.oib.siplacepro.data.PanelMatrix result = BoardElementHelper.DoPanelMatrix(null);
|
||||
Assert.IsNull(result);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void shouldNotFailWhenPanelIsNull()
|
||||
{
|
||||
com.itac.oib.siplacepro.data.Panel result = BoardElementHelper.DoPanel(null);
|
||||
Assert.IsNull(result);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void shouldReturnEmptyArrayWhenPanelMatrixListIsNull()
|
||||
{
|
||||
com.itac.oib.siplacepro.data.PanelMatrix[] result = BoardElementHelper.DoPanelMatrixList(null);
|
||||
Assert.IsNotNull(result);
|
||||
Assert.AreEqual(0, result.Length);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void shouldReturnEmptyArrayWhenPlacementListNull()
|
||||
{
|
||||
com.itac.oib.siplacepro.data.Placement[] result = BoardElementHelper.DoPlacementList(null);
|
||||
Assert.IsNotNull(result);
|
||||
Assert.AreEqual(0, result.Length);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using com.itac.oib.siplacepro;
|
||||
using com.itac.oib.siplacepro.data;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace OibAdapterUnitTests
|
||||
{
|
||||
[TestClass]
|
||||
public class SiplaceProLineHelperTests
|
||||
{
|
||||
[TestMethod]
|
||||
public void shouldNotFailWhenLineIsNull()
|
||||
{
|
||||
Line result = SiplaceProLineHelper.get(null);
|
||||
Assert.IsNull(result);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using com.itac.oib.siplacepro;
|
||||
using com.itac.oib.siplacepro.data;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace OibAdapterUnitTests
|
||||
{
|
||||
[TestClass]
|
||||
public class SiplaceProSetupHelperTests
|
||||
{
|
||||
|
||||
[TestMethod]
|
||||
public void shouldNotFailWhenSetupIsNull()
|
||||
{
|
||||
Setup result = SiplaceProSetupHelper.get(null);
|
||||
Assert.IsNull(result);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user