public void Runs_When_Not_Empty() { Region region = new Region((object obj) => { return(obj); }); RegionPipe target = new RegionPipe(); target.Add(region); object result = target.Run("Result"); Assert.AreEqual(result, "Result", "The RegionPipe Run method does not returns the correct value"); }
public void Return_Value_Is_Same_Object_Than_Input() { Region region = new Region((object obj) => { return(obj); }); RegionPipe target = new RegionPipe(); target.Add(region); object inputObj = new object(); object result = target.Run(inputObj); Assert.AreSame(result, inputObj, "The RegionPipe Run method did not return the same object(reference) as the input"); }