Skip to content

Commit 032ce97

Browse files
committed
everything compiles, but many tests fail because of reflection
1 parent 19cbc38 commit 032ce97

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
{
@@ -496,56 +478,6 @@ public void should_fail_with_the_exception_from_the_equality_comparer()
496478
}
497479
}
498480

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

0 commit comments

Comments
 (0)