コード例 #1
0
        public void SelectVertex_WithAdditiveSelectionTrue_WithSelectedHoveredVertex_DoesNotClearSelection_UnselectsHoveredVertex()
        {
            m_SpriteMeshDataController.CreateVertex(Vector2.zero);
            m_HoveredVertex = 0;
            m_SelectedVertices.Add(0);

            bool additive;

            m_View.DoSelectVertex(out additive).Returns(x =>
            {
                x[0] = true;
                return(true);
            });

            m_SpriteMeshController.OnGUI();

            m_Selection.DidNotReceive().Clear();
            m_Selection.Received(1).Select(m_HoveredVertex, false);
            m_CacheUndo.Received().BeginUndoOperation(Arg.Any <string>());
        }