public void OnSelectionChange_InformsViewOnChange() { m_Controller.Activate(); SpriteCache sprite = Substitute.For <SpriteCache>(); m_Model.GetAllVisibility().Returns(false); var skeletonCache = Substitute.For <SkeletonCache>(); m_Model.GetSelectedSkeleton().Returns(skeletonCache); m_Model.ClearReceivedCalls(); m_View.ClearReceivedCalls(); m_EventSystem.selectedSpriteChanged.Invoke(sprite); m_Model.Received(1).GetSelectedSkeleton(); m_Model.Received(1).GetBoneSeletion(); m_View.Received(1).OnSelectionChange(Arg.Is <SkeletonCache>(x => x == skeletonCache)); m_View.Received(1).OnBoneSelectionChange(Arg.Any <SkeletonSelection>()); }