-4

I have the following method in C#.

public void LoadFromDataSet(DataSet dataset)
{
      if (dataset == null)
         return;

      LoadDynamicForm(dataset);
      LoadDynamicFormFields(dataset);
}

I would like to unit test the first 2 lines using the Microsoft Uni testing framework. How should I go about it?

tRuEsAtM
  • 3,517
  • 6
  • 43
  • 83

1 Answers1

-1

If LoadDynamicForm or LoadDynamicFormFields has object you can mock so you can see that the mock object function weren’t called, look for moq nugget for mor information

Gal I.
  • 201
  • 3
  • 12