Exemplo n.º 1
0
        public void BuildParams_WhenCalledWithTransitions_VerifyExpectedOutput(
            TransitionProperties properties,
            Transition transition,
            string expected)
        {
            // Arrange
            _rotator.Transition = transition;
            _rotator.Params     = properties;

            // Act
            string result = _rotator.GetType().CallMethod(BuildParams, new object[0], _rotator) as string;

            // Assert
            result.ShouldSatisfyAllConditions(
                () => result.ShouldNotBeNull(),
                () => result.ShouldBe(expected),
                () => _rotator.IsContentMatched(new Rotator
            {
                Transition = transition,
                Params     = properties
            }, nameof(Rotator.Params)).ShouldBeTrue()
                );
        }