0

I tried to test this method with UnitTest, but when I run the test I received the System.MissingMethodException.

My method:

public void LoadData()
{
    while ((line = stream.ReadLine()) != null)
    {
        var words = line.Split('\t',StringSplitOptions.None);
    }
}

My test:

[TestMethod]
public void Test_Resource_Load_Data()
{
    int idListato = 3;
    SDictionary sDictionary = new SDictionary(idListato);
    sDictionary.LoadData();            
}

I tried many solutions but without success, any suggestions?

Brandon Minnick
  • 13,342
  • 15
  • 65
  • 123
  • Are you using any Nuget package in your project? If yes, try to upgrade packages. And check if there is any old dll in your project. Refer to the thread [System.MissingMethodException: Method not found?](https://stackoverflow.com/questions/8058832/system-missingmethodexception-method-not-found). – 大陸北方網友 May 11 '21 at 07:17
  • I resolved using a Regex. I have tried to Update NuGet packages but don't fix the problem. – Alessandro Bellotti May 12 '21 at 09:44

0 Answers0