コード例 #1
0
    public void AddsNonDuplicateVertex()
    {
        List <Vector2> verts = new List <Vector2>();

        verts = GenerationUtility.AddNonDuplicateVertex(verts, Vector2.up);

        Assert.AreEqual(verts.Count, 1);

        verts = GenerationUtility.AddNonDuplicateVertex(verts, Vector2.up);

        Assert.AreEqual(verts.Count, 1);
    }