Skip to content

Instantly share code, notes, and snippets.

@aallbrig
Last active February 19, 2022 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aallbrig/477a3477879b66fd11ce03fb2fd6ab44 to your computer and use it in GitHub Desktop.
Save aallbrig/477a3477879b66fd11ce03fb2fd6ab44 to your computer and use it in GitHub Desktop.
public class VanillaCSharpUnitTests
{
[Test]
public void Inverter_ReturnSuccess_WhenChildFails()
{
var spy = new BehaviorSpy(() => Behavior.Status.Failure);
var sut = new Inverter(spy);
BehaviorTestHarness.RunToComplete(sut);
Assert.AreEqual(Behavior.Status.Success, sut.CurrentStatus);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment