Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

created stackover flow test #4

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions LinqSpecs.Tests/StackoverflowTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using NUnit.Framework;

namespace LinqSpecs.Tests
{
public class StackoverflowTest
{
[Test]
public void RecreateStackOverFlow()
{
var customSpec = new CustomSpec("Jose");
Assert.True(true); //!!!!Put a break point here and let it sit for a second or two, you'll stack overflow
}
}


public class CustomSpec : Specification<string>
{
public string Name { get; set; }

public CustomSpec(string name)
{
Name = name;
}

public override Expression<Func<string, bool>> ToExpression()
{
return s => s == Name;
}
}
}