src/Kingdom.OrTools.Sat.Parameters.Tests/ParameterTestFixtureBase.cs
// TODO: TBD: did some refactoring in the test cases...
// TODO: TBD: circle around on this one after rinsing that one out...
// ReSharper disable PossibleMultipleEnumeration
/// <summary>
/// Verifies that the <paramref name="collection"/> is <paramref name="rendered"/>
/// correctly and that it reflects the <paramref name="expected"/>
/// <see cref="IParameter"/> elements.
/// </summary>
/// <param name="collection"></param>
/// <param name="expected"></param>
/// <param name="rendered"></param>
Verifies that the  is
correctly and that it reflects the  elements.
Verifies that the is correctly and that it reflects the elements .
[Theory, ClassData(typeof(ParameterCollectionRenderingTestCases))]
        public void Parameter_Collection_Renders_Correctly(IParameterCollection collection, IEnumerable<IParameter> expected, string rendered)
        {
            collection.AssertNotNull().AssertEqual(expected.AssertNotNull().Count(), x => x.Count);
            collection.Zip(expected, (x, y) => new {x, y}).ToList().ForEach(zipped => zipped.x.AssertSame(zipped.y));
            collection.ToString().AssertNotNull().AssertEqual(rendered.AssertNotNull());
        }
[ Theory , ClassData ( typeof ( ParameterCollectionRenderingTestCases ) ) ] public void Parameter_Collection_Renders_Correctly ( IParameterCollection collection , IEnumerable < IParameter > expected , string rendered ) { collection . AssertNotNull ( ) . AssertEqual ( expected . AssertNotNull ( ) . Count ( ) , x => x . Count ) ; collection . Zip ( expected , ( x , y ) => new { x , y } ) . ToList ( ) . ForEach ( zipped => zipped . x . AssertSame ( zipped . y ) ) ; collection . ToString ( ) . AssertNotNull ( ) . AssertEqual ( rendered . AssertNotNull ( ) ) ; }
Verifies that the  is
correctly and that it reflects the  elements.
Verifies that the is correctly and that it reflects the elements .
collection
IParameterCollection
None
expected
IEnumerable<IParameter>
None
rendered
string
None