Esempio n. 1
0
 public void ExecuteGivenAs_ShouldUseCorrectAbility(ActionExecuteGiven sut, Mock <IActor> actor, TestAbility expected)
 {
     //arrange
     //act
     sut.ExecuteGivenAs(actor.Object, expected);
     //assert
     Assert.Equal(expected, sut.Ability);
 }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
        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);
        }