public void ReturnsNullAsLastActiveStateWhenStateWasNeverSet()
        {
            var stateContainer = new StateContainer <string, int>("container");

            stateContainer.SetLastActiveStateFor("A", A.Fake <IStateDefinition <string, int> >());

            stateContainer.GetLastActiveStateOrNullFor("B").Should().BeNull();
        }
        public void ReturnsStateDefinitionXAsLastActiveStateWhenStateDefinitionXWasSetBefore()
        {
            var stateContainer  = new StateContainer <string, int>("container");
            var lastActiveState = A.Fake <IStateDefinition <string, int> >();

            stateContainer.SetLastActiveStateFor("A", lastActiveState);

            stateContainer.GetLastActiveStateOrNullFor("A").Should().Be(lastActiveState);
        }