// Copyright (C) Stichting Deltares 2025. All rights reserved.
//
// This file is part of the Dam Engine.
//
// The Dam Engine is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
// All names, logos, and references to "Deltares" are registered trademarks of
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
using System.Collections.Generic;
using System.Globalization;
namespace Deltares.DamEngine.Data.Tests.Standard;
///
/// Test data object to test ObjectCopier
///
public class ClassWithDifferentProperties
{
// initilise arrays
///
/// The double array
///
public double[] DoubleArray = new double[5];
///
/// The int array
///
public int[] IntArray = new int[5];
///
/// The string array
///
public string[] StrArray = new string[5];
///
/// The bool array
///
public bool[] BoolArray = new bool[5];
// initialise lists
///
/// The double list
///
public List DoubleList = new List();
///
/// The int list
///
public List IntList = new List();
///
/// The string list
///
public List StrList = new List();
///
/// The bool list
///
public List BoolList = new List();
// initialise Dictionaries
///
/// The double dictionary
///
public Dictionary DoubleDictionary = new Dictionary();
///
/// The int dictionary
///
public Dictionary IntDictionary = new Dictionary();
///
/// The string dictionary
///
public Dictionary StrDictionary = new Dictionary();
///
/// The bool dictionary
///
public Dictionary BoolDictionary = new Dictionary();
///
/// Assigns the array values.
///
public void AssignArrayValues()
{
for (var i = 0; i < 5; i++)
{
DoubleArray[i] = i;
IntArray[i] = i;
StrArray[i] = i.ToString(CultureInfo.InvariantCulture);
BoolArray[i] = true;
}
}
///
/// Assigns the list values.
///
public void AssignListValues()
{
for (var i = 0; i < 5; i++)
{
DoubleList.Add(i);
IntList.Add(i);
StrList.Add(i.ToString(CultureInfo.InvariantCulture));
BoolList.Add(true);
}
}
///
/// Assigns the dictionary values.
///
public void AssignDictionaryValues()
{
for (var i = 0; i < 5; i++)
{
DoubleDictionary.Add(i, i);
IntDictionary.Add(i, i);
StrDictionary.Add(i.ToString(CultureInfo.InvariantCulture), i.ToString(CultureInfo.InvariantCulture));
BoolDictionary.Add(i, true);
}
}
}