public void returns_darkened_right_facing_animator_enum() { //arrange IAnimatorBlendSwitching component = Substitute.For <IAnimatorBlendSwitching>(); AnimatorBlendStateSwitching behaviour = new AnimatorBlendStateSwitching(component); component.lightsOn.Returns(false); component.currentFacingDirection.Returns(new Vector2(1, 0)); //act var calculatedEnum = behaviour.CalculatingAnimatorBlendState(); //assert Assert.AreEqual((float)Enums.AnimatorBlendStates.DarkenedFacingRight, calculatedEnum); }
public AnimatorBlendStateSwitching(IAnimatorBlendSwitching component) { this.component = component; }