Skip to content

Commit 8f94944

Browse files
committed
everything compiles, but many tests fail because of reflection
1 parent 3eba4ec commit 8f94944

File tree

1 file changed

+0
-68
lines changed

1 file changed

+0
-68
lines changed

src/FluentNHibernate.Testing/Testing/Values/ListSpecs.cs

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -113,24 +113,6 @@ public override void should_set_the_list_items()
113113
}
114114
}
115115

116-
[TestFixture]
117-
public class When_a_set_property_with_a_public_setter_is_set : When_a_list_property_with_is_set_successfully
118-
{
119-
protected override Expression<Func<ListEntity, IEnumerable>> GetPropertyExpression()
120-
{
121-
return x => x.Set;
122-
}
123-
124-
[Test]
125-
public override void should_set_the_list_items()
126-
{
127-
foreach (var listItem in listItems)
128-
{
129-
target.Set.Contains(listItem).ShouldBeTrue();
130-
}
131-
}
132-
}
133-
134116
[TestFixture]
135117
public class When_a_typed_set_property_with_a_public_setter_is_set : When_a_list_property_with_is_set_successfully
136118
{
@@ -498,56 +480,6 @@ public void should_fail_with_the_exception_from_the_equality_comparer()
498480
}
499481
}
500482

501-
[TestFixture]
502-
public class When_the_checked_typed_set_is_equal_to_the_expected_list : With_initialized_list
503-
{
504-
public override void establish_context()
505-
{
506-
property = ReflectionHelper.GetAccessor((Expression<Func<ListEntity, IEnumerable<string>>>)(x => x.TypedSet));
507-
target = new ListEntity();
508-
509-
sut = new List<ListEntity, string>(property, new[] {"foo", "bar", "baz"});
510-
511-
target.TypedSet.AddAll(new[] {"foo", "bar", "baz"});
512-
}
513-
514-
public override void because()
515-
{
516-
sut.CheckValue(target);
517-
}
518-
519-
[Test]
520-
public void should_succeed()
521-
{
522-
thrown_exception.ShouldBeNull();
523-
}
524-
}
525-
526-
[TestFixture]
527-
public class When_the_checked_set_is_equal_to_the_expected_list : With_initialized_list
528-
{
529-
public override void establish_context()
530-
{
531-
property = ReflectionHelper.GetAccessor((Expression<Func<ListEntity, IEnumerable>>)(x => x.Set));
532-
target = new ListEntity();
533-
534-
sut = new List<ListEntity, string>(property, new[] {"foo", "bar", "baz"});
535-
536-
target.Set.AddAll(new[] {"foo", "bar", "baz"});
537-
}
538-
539-
public override void because()
540-
{
541-
sut.CheckValue(target);
542-
}
543-
544-
[Test]
545-
public void should_succeed()
546-
{
547-
thrown_exception.ShouldBeNull();
548-
}
549-
}
550-
551483
[TestFixture]
552484
public class When_the_collection_is_equal_to_the_expected_list : With_initialized_list
553485
{

0 commit comments

Comments
 (0)