public void ExecuteGivenAs_ShouldUseCorrectAbility(ActionExecuteGiven sut, Mock <IActor> actor, TestAbility expected) { //arrange //act sut.ExecuteGivenAs(actor.Object, expected); //assert Assert.Equal(expected, sut.Ability); }
public void ExecuteWhenAs_ShouldCallActorExecute([Frozen] IAction <Unit> expected, ActionExecuteWhen sut, Mock <IActor> actor, TestAbility ability) { //arrange //act sut.ExecuteWhenAs(actor.Object, ability); //assert actor.Verify(a => a.Execute(expected)); }
public void ExecuteGivenAs_ShouldUseCorrectActor(ActionExecuteGiven sut, Mock <IActor> actor, TestAbility ability) { //arrange var expected = actor.Object; //act sut.ExecuteGivenAs(actor.Object, ability); //assert Assert.Equal(expected, sut.Actor); }