Visual Studio C#: Unable to use IntelliTest to generate unit tests on a method within a class?

Solution for Visual Studio C#: Unable to use IntelliTest to generate unit tests on a method within a class?
is Given Below:

I am trying to use IntelliTest to generate unit tests on a class’ function (testFunction(int p1)). However, when I try to run IntelliTest, no unit tests are generated, and when I try to create an IntelliTest, I get the following error message, stating that IntelliTest is supported only on a class or method:

enter image description here

Below is my code:

namespace Transcoding
{
    public class Transcode1
    {
        public int testFunction(int p1)
        {
            if (p1 < 5)
            {
                return 6;
            }
            return 3;
        }
    }
}

Visual Studio C#: Unable to use IntelliTest to generate unit tests on a method within a class?

Solution for Visual Studio C#: Unable to use IntelliTest to generate unit tests on a method within a class?
is Given Below:

I am trying to use IntelliTest to generate unit tests on a class’ function (testFunction(int p1)). However, when I try to run IntelliTest, no unit tests are generated, and when I try to create an IntelliTest, I get the following error message, stating that IntelliTest is supported only on a class or method:

enter image description here

Below is my code:

namespace Transcoding
{
    public class Transcode1
    {
        public int testFunction(int p1)
        {
            if (p1 < 5)
            {
                return 6;
            }
            return 3;
        }
    }
}