Skip to content

Commit

Permalink
Add generic builder regression test for #850
Browse files Browse the repository at this point in the history
  • Loading branch information
glopesdev committed Feb 20, 2022
1 parent 1e8c650 commit 4a55f20
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Bonsai.Core.Tests/TypeMappingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public void Serialize_Nameclash_DifferentNamespaces()
var workflow = new WorkflowBuilder();
var builder = new StringBuilder();
workflow.Workflow.Add(new CombinatorBuilder() { Combinator = new MappingCombinator() });
workflow.Workflow.Add(new CombinatorBuilder() { Combinator = new GenericMappingCombinator<int>() });
workflow.Workflow.Add(new AddBuilder { Operand = new WorkflowProperty<int>() });
workflow.Workflow.Add(new ExternalizedTimeSpan<int>());
workflow.Workflow.Add(new PropertySource<Bonsai.Reactive.ElementCountWindow, int>());
Expand Down Expand Up @@ -54,6 +55,14 @@ public override IObservable<TSource> Process<TSource>(IObservable<TSource> sourc
}
}

public class GenericMappingCombinator<T> : Combinator
{
public override IObservable<TSource> Process<TSource>(IObservable<TSource> source)
{
throw new NotImplementedException();
}
}

namespace MappingNamespace1
{
public class Vector2
Expand Down

0 comments on commit 4a55f20

Please sign in to comment.