Example #1
0
 public static IMustAssertable UsingData <T>(
     this IMustAssertable must,
     string name,
     Func <T> getValue)
 {
     return(UsingData(must, () => MustAssertionData.Create(name, getValue())));
 }
Example #2
0
 private static IEnumerable <MustAssertionData> _GetDataFromContainer(object dataContainer)
 {
     return(dataContainer == null
         ? Enumerable.Empty <MustAssertionData>()
         : dataContainer
            .GetType()
            .GetRuntimeProperties()
            .Select(_property => MustAssertionData.Create(_property.Name, _property.PropertyType, _property.GetValue(dataContainer))));
 }