Example #1
0
 public void ValidateHeaderFields_Checks_For_Min_Required_Fields(VnaFileSection state, string[] headerNames, bool expectedResult)
 {
     string mssg = null;
     var reader = new VnaAdjListReader();
     bool result = reader.ValidateHeaderFields(headerNames, state, out mssg);
     Assert.Equal(expectedResult, result);
     if (expectedResult)
         Assert.Null(mssg);
     else
         Assert.NotNull(mssg);
 }