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 Apr 20, 2022
1 parent 4ab21ba commit a64c029
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>() });
#pragma warning disable CS0612 // Type or member is obsolete
workflow.Workflow.Add(new ExternalizedTimeSpan<int>());
Expand Down Expand Up @@ -56,6 +57,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 a64c029

Please sign in to comment.