Exemplo n.º 1
0
        public void CanRemoveAnAnimationToTheAnimationStore()
        {
            var animationStore = default(SingleAnimationStore);
            var result = default(IEnumerable<IAnimation>);

            "Given I have added an animation and then removed an animation to the animation store".Context(() =>
            {
                animationStore = new SingleAnimationStore();
                IAnimation animation = A.Fake<IAnimation>();
                animationStore.Add(animation);
                animationStore.Remove(animation);
            });

            "When I remove the animation".Do(() => result = animationStore.GetCurrentAnimations());

            "Then 0 animations should be returned".Observation(() => result.Count().ShouldEqual(0));
        }