This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1 @@
12

View File

@@ -0,0 +1 @@
12

View File

@@ -0,0 +1,104 @@
using GroupList.Model;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DTS.Common.DataModel.Tests
{
[TestFixture]
public class GroupShould
{
[Test]
public void Filter_ShouldReturnTrueOnEmptyTerm()
{
Group sut = new Group();
var res = sut.Filter("");
Assert.That(res, Is.True);
}
[Test]
public void Filter_ShouldReturnTrueOnNullTerm()
{
Group sut = new Group();
var res = sut.Filter(null);
Assert.That(res, Is.True);
}
[Test]
public void Filter_ShouldReturnTrueWhenAssociatedTestSetupsIsNull()
{
Group sut = new Group();
var res = sut.Filter("abc");
Assert.That(res, Is.True);
}
[Test]
public void Filter_ShouldReturnTrueWhenfindTerm()
{
Group sut = new Group();
sut.DisplayName = "defabchy";
var res = sut.Filter("abc");
Assert.That(res, Is.True);
}
[Test]
public void Filter_ShouldReturnTrueWhenfindTermDescription()
{
Group sut = new Group();
sut.Description = "defabchy";
var res = sut.Filter("abc");
Assert.That(res, Is.True);
}
[Test]
public void Filter_ShouldReturnTrueWhenfindTermChannelCount()
{
Group sut = new Group();
sut.AssociatedTestSetups = new List<Interface.Groups.GroupList.TestSetupParentHelper>();
sut.ChannelCount = 3;
var res = sut.Filter("3");
Assert.That(res, Is.True);
}
[Test]
public void Filter_ShouldReturnTrueWhenfindTermNotfound()
{
Group sut = new Group();
sut.AssociatedTestSetups = new List<Interface.Groups.GroupList.TestSetupParentHelper>();
var res = sut.Filter("178");
Assert.That(res, Is.False);
}
[Test]
public void Filter_ShouldReturnTrueWhenfindTermLastModifiedfound()
{
Group sut = new Group();
sut.AssociatedTestSetups = new List<Interface.Groups.GroupList.TestSetupParentHelper>();
var now = DateTime.Now;
sut.LastModified = now;
var res = sut.Filter(now.ToString());
Assert.That(res, Is.True);
}
[Test]
public void Filter_ShouldReturnTrueWhenfindTermLastModifiedNotfound()
{
Group sut = new Group();
sut.AssociatedTestSetups = new List<Interface.Groups.GroupList.TestSetupParentHelper>();
var now = DateTime.Now;
sut.LastModified = now.AddMonths(5);
var res = sut.Filter(now.ToString());
Assert.That(res, Is.False);
}
[Test]
public void ConvertToEmbedded_ShouldThrowNoExceptionIfEmbeddedAlready()
{
Group sut = new Group();
sut.Embedded = true;
sut.ConvertToEmbedded(new List<Interface.Channels.IGroupChannel>().ToArray());
Assert.That(sut.Embedded, Is.True);
}
}
}

View File

@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{1FFCA92D-A1B0-4425-9074-7A1B91C04CB9}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DTS.Common.DataModel.Tests</RootNamespace>
<AssemblyName>DTS.Common.DataModel.Tests</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<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>x64</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>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework">
<HintPath>..\..\packages\NUnit.3.12.0\lib\net45\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="NUnit3.TestAdapter">
<HintPath>..\..\packages\NUnit3TestAdapter.3.14.0\build\net35\NUnit3.TestAdapter.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="GroupShould.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Common\DTS.Common.DataModel\DTS.Common.DataModel.csproj">
<Project>{2a2f03a9-bf85-4360-a06a-cf3016d2633b}</Project>
<Name>DTS.Common.DataModel</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Common\DTS.Common\DTS.Common.csproj">
<Project>{f7a0804f-61a4-40ae-83d0-f1137622b592}</Project>
<Name>DTS.Common</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("DTS.Common.DataModel.Tests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DTS.Common.DataModel.Tests")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("1ffca92d-a1b0-4425-9074-7a1b91c04cb9")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

Binary file not shown.

View File

@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{1FFCA92D-A1B0-4425-9074-7A1B91C04CB9}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DTS.Common.DataModel.Tests</RootNamespace>
<AssemblyName>DTS.Common.DataModel.Tests</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
<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>x64</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>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework">
<HintPath>..\..\packages\NUnit.3.12.0\lib\net45\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="NUnit3.TestAdapter">
<HintPath>..\..\packages\NUnit3TestAdapter.3.14.0\build\net35\NUnit3.TestAdapter.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="GroupShould.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Common\DTS.Common.DataModel\DTS.Common.DataModel.csproj">
<Project>{2a2f03a9-bf85-4360-a06a-cf3016d2633b}</Project>
<Name>DTS.Common.DataModel</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\Common\DTS.Common\DTS.Common.csproj">
<Project>{f7a0804f-61a4-40ae-83d0-f1137622b592}</Project>
<Name>DTS.Common</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@@ -0,0 +1,104 @@
using GroupList.Model;
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DTS.Common.DataModel.Tests
{
[TestFixture]
public class GroupShould
{
[Test]
public void Filter_ShouldReturnTrueOnEmptyTerm()
{
Group sut = new Group();
var res = sut.Filter("");
Assert.That(res, Is.True);
}
[Test]
public void Filter_ShouldReturnTrueOnNullTerm()
{
Group sut = new Group();
var res = sut.Filter(null);
Assert.That(res, Is.True);
}
[Test]
public void Filter_ShouldReturnTrueWhenAssociatedTestSetupsIsNull()
{
Group sut = new Group();
var res = sut.Filter("abc");
Assert.That(res, Is.True);
}
[Test]
public void Filter_ShouldReturnTrueWhenfindTerm()
{
Group sut = new Group();
sut.DisplayName = "defabchy";
var res = sut.Filter("abc");
Assert.That(res, Is.True);
}
[Test]
public void Filter_ShouldReturnTrueWhenfindTermDescription()
{
Group sut = new Group();
sut.Description = "defabchy";
var res = sut.Filter("abc");
Assert.That(res, Is.True);
}
[Test]
public void Filter_ShouldReturnTrueWhenfindTermChannelCount()
{
Group sut = new Group();
sut.AssociatedTestSetups = new List<Interface.Groups.GroupList.TestSetupParentHelper>();
sut.ChannelCount = 3;
var res = sut.Filter("3");
Assert.That(res, Is.True);
}
[Test]
public void Filter_ShouldReturnTrueWhenfindTermNotfound()
{
Group sut = new Group();
sut.AssociatedTestSetups = new List<Interface.Groups.GroupList.TestSetupParentHelper>();
var res = sut.Filter("178");
Assert.That(res, Is.False);
}
[Test]
public void Filter_ShouldReturnTrueWhenfindTermLastModifiedfound()
{
Group sut = new Group();
sut.AssociatedTestSetups = new List<Interface.Groups.GroupList.TestSetupParentHelper>();
var now = DateTime.Now;
sut.LastModified = now;
var res = sut.Filter(now.ToString());
Assert.That(res, Is.True);
}
[Test]
public void Filter_ShouldReturnTrueWhenfindTermLastModifiedNotfound()
{
Group sut = new Group();
sut.AssociatedTestSetups = new List<Interface.Groups.GroupList.TestSetupParentHelper>();
var now = DateTime.Now;
sut.LastModified = now.AddMonths(5);
var res = sut.Filter(now.ToString());
Assert.That(res, Is.False);
}
[Test]
public void ConvertToEmbedded_ShouldThrowNoExceptionIfEmbeddedAlready()
{
Group sut = new Group();
sut.Embedded = true;
sut.ConvertToEmbedded(new List<Interface.Channels.IGroupChannel>().ToArray());
Assert.That(sut.Embedded, Is.True);
}
}
}

View File

@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("DTS.Common.DataModel.Tests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DTS.Common.DataModel.Tests")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("1ffca92d-a1b0-4425-9074-7a1b91c04cb9")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = "")]

View File

@@ -0,0 +1 @@
e66b2b2bbd82ccd73fa03b4bc269003c474e9b85

View File

@@ -0,0 +1,2 @@
D:\DTS\Code\DP\BRANCH_MAINT_4_04\DataPRO\UnitTest\DTS.Common.DataModel.Tests\obj\Debug\DTS.Common.DataModel.Tests.csproj.AssemblyReference.cache
D:\DTS\Code\DP\BRANCH_MAINT_4_04\DataPRO\UnitTest\DTS.Common.DataModel.Tests\obj\Debug\DTS.Common.DataModel.Tests.csproj.CoreCompileInputs.cache