// Copyright (C) Stichting Deltares 2018. All rights reserved.
//
// This file is part of Ringtoets.
//
// Ringtoets is free software: you can redistribute it and/or modify
// it under the terms of the GNU 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 General Public License for more details.
//
// You should have received a copy of the GNU 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 Core.Common.TestUtil;
using NUnit.Framework;
using Riskeer.AssemblyTool.IO.Model.Enums;
namespace Riskeer.AssemblyTool.IO.Test.Model.Enums
{
[TestFixture]
public class SerializableAssemblyMethodTest : EnumWithXmlEnumNameTestFixture
{
protected override IDictionary ExpectedValueForEnumValues
{
get
{
return new Dictionary
{
{
SerializableAssemblyMethod.WBI0E1, 1
},
{
SerializableAssemblyMethod.WBI0E3, 2
},
{
SerializableAssemblyMethod.WBI0G1, 3
},
{
SerializableAssemblyMethod.WBI0G3, 4
},
{
SerializableAssemblyMethod.WBI0G4, 5
},
{
SerializableAssemblyMethod.WBI0G5, 6
},
{
SerializableAssemblyMethod.WBI0G6, 7
},
{
SerializableAssemblyMethod.WBI0T1, 8
},
{
SerializableAssemblyMethod.WBI0T3, 9
},
{
SerializableAssemblyMethod.WBI0T4, 10
},
{
SerializableAssemblyMethod.WBI0T5, 11
},
{
SerializableAssemblyMethod.WBI0T6, 12
},
{
SerializableAssemblyMethod.WBI0T7, 13
},
{
SerializableAssemblyMethod.WBI0A1, 14
},
{
SerializableAssemblyMethod.WBI1A1, 15
},
{
SerializableAssemblyMethod.WBI1B1, 16
},
{
SerializableAssemblyMethod.WBI2A1, 17
},
{
SerializableAssemblyMethod.WBI2B1, 18
},
{
SerializableAssemblyMethod.WBI2C1, 19
},
{
SerializableAssemblyMethod.WBI3A1, 20
},
{
SerializableAssemblyMethod.WBI3B1, 21
},
{
SerializableAssemblyMethod.WBI3C1, 22
}
};
}
}
protected override IDictionary ExpectedDisplayNameForEnumValues
{
get
{
return new Dictionary
{
{
SerializableAssemblyMethod.WBI0E1, "WBI-0E-1"
},
{
SerializableAssemblyMethod.WBI0E3, "WBI-0E-3"
},
{
SerializableAssemblyMethod.WBI0G1, "WBI-0G-1"
},
{
SerializableAssemblyMethod.WBI0G3, "WBI-0G-3"
},
{
SerializableAssemblyMethod.WBI0G4, "WBI-0G-4"
},
{
SerializableAssemblyMethod.WBI0G5, "WBI-0G-5"
},
{
SerializableAssemblyMethod.WBI0G6, "WBI-0G-6"
},
{
SerializableAssemblyMethod.WBI0T1, "WBI-0T-1"
},
{
SerializableAssemblyMethod.WBI0T3, "WBI-0T-3"
},
{
SerializableAssemblyMethod.WBI0T4, "WBI-0T-4"
},
{
SerializableAssemblyMethod.WBI0T5, "WBI-0T-5"
},
{
SerializableAssemblyMethod.WBI0T6, "WBI-0T-6"
},
{
SerializableAssemblyMethod.WBI0T7, "WBI-0T-7"
},
{
SerializableAssemblyMethod.WBI0A1, "WBI-0A-1"
},
{
SerializableAssemblyMethod.WBI1A1, "WBI-1A-1"
},
{
SerializableAssemblyMethod.WBI1B1, "WBI-1B-1"
},
{
SerializableAssemblyMethod.WBI2A1, "WBI-2A-1"
},
{
SerializableAssemblyMethod.WBI2B1, "WBI-2B-1"
},
{
SerializableAssemblyMethod.WBI2C1, "WBI-2C-1"
},
{
SerializableAssemblyMethod.WBI3A1, "WBI-3A-1"
},
{
SerializableAssemblyMethod.WBI3B1, "WBI-3B-1"
},
{
SerializableAssemblyMethod.WBI3C1, "WBI-3C-1"
}
};
}
}
}
}